Author Topic: Segfault on Disconnect  (Read 7243 times)

Offline SunOS

  • First timer
  • *
  • Posts: 1
    • View Profile
Segfault on Disconnect
« on: July 24, 2009, 03:44:46 am »
When i disconnect from the server, It causes this...

Program received signal SIGSEGV, Segmentation fault.
close_connection (client_p=0x7f2700000000) at s_bsd.c:1358
1358        local[client_p->fd] = NULL;
(gdb) backtrace full
#0  close_connection (client_p=0x7f2700000000) at s_bsd.c:1358
        aconf = <value optimized out>
#1  0x0000000000430f86 in exit_client (client_p=0x7f2730ad9838, source_p=0x7f2730ad9838, from=0x7f2730ad9838,
    comment=0x7fff38c30ec0 "Client exited") at s_misc.c:843
        on_for = <value optimized out>
        logfile = -1
        lasttime = 1248395940
#2  0x0000000000446b44 in m_quit (client_p=0x7f2730ad9838, source_p=0x7f2730ad9838, parc=<value optimized out>, parv=<value optimized out>)
    at s_user.c:3007
        reason = <value optimized out>
        comment = "Client exited\000\000\0000\017Ã8ÿ\177\000\000Ä\231­0?", '\0' <repeats 11 times>, "8\230­0'\177\000\0008\230­0'\177\000\000`i~\000\000\000\000\000S\002\202\000\000\000\000\000àöD\000\000\000\000\000\020\000\000\0000\000\000\000ð\017Ã8ÿ\177\000\0000\017Ã8ÿ\177\000\000S\002\202\000\000\000\000\000Ë\230­0'\177\000\000Ð\017Ã8ÿ\177\000\000S\002\202\000\000\000\000\000S\002\202\000\000\000\000\000Å\231­0'\177\000\000        À\231­0\000\000\000\000Ë\230­0'\177\000\000S\002\202\000\000\000\000\000:\000\000\000\000\000\000\000ç\226­0'\177\000\000\035"...
#3  0x0000000000420925 in client_dopacket (client_p=0x7f2730ad9838, buffer=<value optimized out>, length=0) at packet.c:260
No locals.
#4  0x0000000000424c6e in do_client_queue (client_p=0x7f2730ad9838) at s_bsd.c:1940
        dolen = 0
        done = <value optimized out>
#5  0x0000000000426260 in readwrite_client (client_p=0x7f2730ad9838, isread=1, iswrite=0) at s_bsd.c:2257
        length = <value optimized out>
#6  0x000000000045278d in engine_read_message (delay=<value optimized out>) at socketengine_poll.c:187
        rr = 0
        rw = 0
        pfd = (struct pollfd *) 0x7edf78
        nfds = 0
        i = 7
        fdflags = 1
        fdtype = 0
        fdvalue = (void *) 0x7f2730ad9838
        client_p = (aClient *) 0x3ed
        poll_fdarray = {{fd = 1, events = 25, revents = 0}, {fd = 4, events = 25, revents = 0}, {fd = 5, events = 25, revents = 0}, {fd = 6,
    events = 25, revents = 0}, {fd = 7, events = 25, revents = 0}, {fd = 3, events = 25, revents = 0}, {fd = 8, events = 25, revents = 0}, {
---Type <return> to continue, or q <return> to quit---
    fd = 9, events = 25, revents = 1}, {fd = 10, events = 29, revents = 0}, {fd = 0, events = 0, revents = 0} <repeats 1015 times>}
#7  0x0000000000418dd8 in io_loop () at ircd.c:1618
        to_send = "@\025Ã8ÿ\177\000\000\f\026Ã8ÿ\177\000\000\030\000\000\0000\000\000\000 \026Ã8ÿ\177\000\[email protected]\025Ã8ÿ\177\000\000°tÂ0'\177\000\000\000\000\000\000\000\000\000\000ÿÿÿÿ\000\000\000\000\207\f\000\000\000\000\000\000Pñ\0210'\177\000\000responseÿþþþþþþ~í\003\000\000\000\000\000\000í\003", '\0' <repeats 14 times>, "Ê!¢0'\177\000\000\001\000\000\000ÿ\177\000\000\000\000\000\000\000\000\000\000?\000\000\000\000\000\000\000À\000\000\000\000\000\000\000ÐK\0060'\177\000\000\b", '\0' <repeats 15 times>, "\022\200¢0'\177\000\000\b\000\000\000\000\000\000"
        lasttime = 1248395933
        lastrecvK = 2
        lrv = <value optimized out>
        lastbwcalc = 1248395937
        lastbwSK = 5
        lastbwRK = 2
        lasttimeofday = <value optimized out>
        delay = <value optimized out>
#8  0x000000000041a0ea in main (argc=0, argv=0x7fff38c31840) at ircd.c:1343
        uid = 1005
        euid = 1005
        portarg = 0
        fd = <value optimized out>
        mcsfp = <value optimized out>
        star = "*"