Okay, gdb got it.

Program received signal SIGSEGV, Segmentation fault.
add_name (add=0x9c64640 "192.168.0.2/24", old=<optimized out>) at client.c:490
490             if (cp && *cp) {

Looking again at the gcc lines, it was compiling itself with the -O2 flag and 
there were no warnings about client.c.

So I tried compiling with CFLAGS='-g -O0' to see what <optimized out> was, and 
there was no segfault!

Compiling again with -O1 also eliminated the segfault, so the problem lies 
somewhere in the -O2 optimization flags.

So until we can come up with a better solution, issuing

make CFLAGS='-g -O1'

appears to be a fix for this problem.                                     
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to