Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10994) auth fail and disconnect causes a segfault
Home

[Freeciv-Dev] (PR#10994) auth fail and disconnect causes a segfault

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#10994) auth fail and disconnect causes a segfault
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Nov 2004 19:06:36 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10994 >

Loaded symbols for /lib/libresolv.so.2
#0  0x0809a7c1 in conn_clear_packet_cache (pc=0x8179c90) at
connection.c:638                                       
638         if (pc->phs.sent[i] != NULL) {
(gdb) #0  0x0809a7c1 in conn_clear_packet_cache (pc=0x8179c90) at
connection.c:638      
#1  0x0809a645 in free_packet_hashes (pc=0x8179c90) at connection.c:571         
                                   
#2  0x080868ee in close_connection (pconn=0x8179c90) at sernet.c:200            
                                   
#3  0x08064191 in unfail_authentication (pconn=0x8179c90) at
connecthand.c:367                                     
#4  0x08086fb9 in sniff_packets () at sernet.c:463                              
                                   
#5  0x0804f5cd in main_loop () at srv_main.c:1554                               
                                   
#6  0x0804f781 in srv_main () at srv_main.c:1647                                
                                   
#7  0x0804a604 in main (argc=12, argv=0xbffff684) at civserver.c:170            
                                   
#8  0x400641c4 in __libc_start_main () from /lib/libc.so.6                      
             

caused because a client disconnects during the last failed auth period
right before the rejection. -> double free()

-mike





[Prev in Thread] Current Thread [Next in Thread]