--enable-shared-modules segfaults

Joseph Sebestyen jozef at sk.e-group.org
Wed Sep 8 10:33:34 EDT 2004


Hi,

If I compile ircd-hybrid-7.0.3 with just ./configure it segfaults for a PASS 
command: echo "PASS x" | nc localhost 6667

I wanted to fix it (find out why is dst=0xc1) so i compiled ircd with  
--disable-shared-modules then it runs fine.

I can always reproduce the problem and wonder if other people have the same 
problem.

Thanx

Joe

P.S.:

(gdb) set args -foreground
(gdb) r
Starting program: /home/joe/work/ircd-hybrid-7.0.3/src/ircd -foreground
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
ircd: version hybrid-7.0.3
ircd: pid 16679
ircd: running in foreground mode from /usr/local/ircd

Program received signal SIGSEGV, Segmentation fault.
0x0805eb14 in strlcpy (dst=0xc1 <Address 0xc1 out of bounds>, src=0x8252085 
"XXX", siz=20) at irc_string.c:684
684                             if ((*d++ = *s++) == 0)
(gdb) bt full
#0  0x0805eb14 in strlcpy (dst=0xc1 <Address 0xc1 out of bounds>, 
src=0x8252085 "XXX", siz=20) at irc_string.c:684
        d = 0xc1 <Address 0xc1 out of bounds>
        s = 0x8252086 "XX"
        n = 19
#1  0x404b1a4f in ?? ()
No symbol table info available.
#2  0x000000c1 in ?? ()
No symbol table info available.
#3  0x08252085 in readBuf ()
No symbol table info available.
#4  0x40016738 in ?? ()
No symbol table info available.
#5  0x00000007 in ?? ()
No symbol table info available.
#6  0x40016a40 in ?? ()
No symbol table info available.
#7  0x40016a80 in ?? ()
No symbol table info available.
#8  0x00000002 in ?? ()
No symbol table info available.
#9  0x404b2b20 in ?? ()
No symbol table info available.
#10 0x40355eb0 in ?? ()
No symbol table info available.
#11 0xbfffec38 in ?? ()
No symbol table info available.
#12 0x0806451c in handle_command (mptr=0x82560a0, client_p=0x40355eb0, 
from=0x8252085, i=1078668328, hpara=0x8252080)
    at parse.c:394
        handler = 0x13
Previous frame identical to this frame (corrupt stack?)
(gdb) q



More information about the hybrid mailing list