[IRC-DEV] Segfault en ircd (u2.10.H.09.25 CVS)
Victor Roman
daijo at unixevil.info
Wed Oct 27 10:31:40 CEST 2004
Buenas,
si el IRCD version u2.10.H.09.25 (obtenido del CVS) es compilado con
soporte de depuracion (debugmode), al lanzarlo con los parametros -x9 -t
el servidor se inicia correctamente, sin embargo cuando un cliente conecta:
daijo at saint ~/bin $ ./ircd -x9 -t
[...]
Next check_ping() call at: Wed Oct 27 09:31:29 2004, 90 1098862289
1098862200
RunMalloc(776) = 0x816accc
Segmentation fault (core dumped)
daijo at saint ~/bin $
Siguiendo el core mediante GDB:
daijo at saint ~/bin $ gdb ircd core
[...]
Core was generated by `./ircd -x9 -t'.
[...]
#0 0x0804a5c6 in IPbusca_clones_cptr (cptr=0x0) at IPcheck.c:545
545 for (i = 0, hname = hp->h_name; hname; hname =
hp->h_aliases[i++])
Program terminated with signal 11, Segmentation fault.
(gdb) run
Program exited normally.
[...]
(gdb) backtrace
#0 0x0804a5c6 in IPbusca_clones_cptr (cptr=0x0) at IPcheck.c:545
#1 0x0804a682 in IPcheck_local_connect (cptr=0x816accc) at IPcheck.c:293
#2 0x0806df74 in add_connection (cptr=0x816d794, fd=9, type=1) at
s_bsd.c:1497
#3 0x0806f73f in read_message (delay=60) at s_bsd.c:2062
#4 0x0805c74d in main (argc=3, argv=0xbffff224) at ircd.c:935
(gdb) quit
daijo at saint #bin $
El fallo parece encontrarse en el bucle FOR de IPCHeck.c.
More information about the IRC-Dev
mailing list