Help debugging

Eric S. Raymond esr at thyrsus.com
Wed Feb 20 02:50:32 UTC 2019


Hal Murray via devel <devel at ntpsec.org>:
> Here is the main thread:
> (gdb) thread 1
> [Switching to thread 1 (Thread 0x7ffff784f740 (LWP 24041))]
> #0  0x00007ffff7a41ef7 in __nptl_setxid () from /lib64/libpthread.so.0
> (gdb) bt
> #0  0x00007ffff7a41ef7 in __nptl_setxid () from /lib64/libpthread.so.0
> #1  0x00007ffff7939f6a in setgroups () from /lib64/libc.so.6
> #2  0x00007ffff7939e96 in initgroups () from /lib64/libc.so.6
> #3  0x000055555556ee19 in sandbox (droproot=<optimized out>, 
>     user=0x5555555bc260 "ntp", group=0x5555555bc280 "ntp", chrootdir=0x0, 
>     want_dynamic_interface_tracking=<optimized out>)
>     at ../../ntpd/ntp_sandbox.c:175
> #4  0x0000555555572c61 in ntpdmain (argc=4, argv=0x7fffffffdb98)
>     at ../../ntpd/ntpd.c:903
> #5  0x0000555555572eb7 in main (argc=<optimized out>, argv=<optimized out>)
>     at ../../ntpd/ntpd.c:422
> (gdb) 
> 
> That doesn't make sense.  It's long past the initialization stage.
> 
> Anybody familiar with debugging this sort of thing?

I am.

That "optimized out" tells me you should reconfigure with --enable-debug-gdb
and rebuild.  You are likely to get saner behavior then.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.




More information about the devel mailing list