How to print details of dns_name_t* when hitting a gdb breakpoint in dns_name_equal
Kees Bakker
keesb at ghs.com
Thu Dec 5 11:05:26 UTC 2024
On 04-12-2024 21:41, Petr Špaček wrote:
> [...]
> It sounds like you are able to reproduce it fairly easily, right?
Yes, fairly easy.
>
> If that's the case I would recommend running `named` under RR debugger.
>
> In case you are not familiar with it have a look at
> https://rr-project.org/ - it is an _awesome_ debugger
> Once you get `rr record` functional on your system (which might require
> a bit of fiddling, but definitely worth it!) ... go and modify command
> to run BIND from:
> named -c ...
> to something like:
> rr record named -n1 -g -c ...
A quick question.
The normal way (on a FreeIPA system) that named is executed is with "-u
named".
When I want to run rr, I get:
# rr record /usr/sbin/named -n1 -g -u named -c /etc/named.conf -E pkcs11
...
src/preload/syscallbuf.c:630: Fatal error: Failed to perf_event_open
Is that perhaps because I have "-u named"?
If yes, how safe is it to run named as "root". I mean, is it going to write
files as "root" that I then need to chown later?
--
Kees
More information about the bind-users
mailing list