URL:
  <http://gna.org/bugs/?19800>

                 Summary: Server crash after reading "multiplayer.serv" or
"civ.serv"
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: mar. 12 juin 2012 12:36:30 CEST
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: S2_3
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

I get a crash when quitting the server after having loaded "multiplayer" or
"civ2" rulesets at first turn.


*** glibc detected *** /usr/local/bin/freeciv-server: free(): invalid next
size (fast): 0x0883c438 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x73e42)[0x1e8e42]
/usr/local/bin/freeciv-server[0x8088fcc]
/usr/local/bin/freeciv-server[0x80b87fd]
/usr/local/bin/freeciv-server[0x805159a]
/usr/local/bin/freeciv-server[0x80516b2]
/usr/local/bin/freeciv-server[0x805ccb5]
/usr/local/bin/freeciv-server[0x8100998]
/usr/local/bin/freeciv-server[0x80b1a5f]
/usr/local/bin/freeciv-server[0x804fe92]
/usr/local/bin/freeciv-server[0x80dea16]
/usr/local/bin/freeciv-server[0x8051ded]
/usr/local/bin/freeciv-server[0x804b68c]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x18e4d3]
/usr/local/bin/freeciv-server[0x804bc65]
======= Memory map: ========
00110000-00130000 r-xp 00000000 08:01 8388653   
/lib/i386-linux-gnu/ld-2.15.so
00130000-00131000 r--p 0001f000 08:01 8388653   
/lib/i386-linux-gnu/ld-2.15.so
00131000-00132000 rw-p 00020000 08:01 8388653   
/lib/i386-linux-gnu/ld-2.15.so
00132000-00133000 r-xp 00000000 00:00 0          [vdso]
00133000-00147000 r-xp 00000000 08:01 8388673   
/lib/i386-linux-gnu/libz.so.1.2.3.4
00147000-00148000 r--p 00013000 08:01 8388673   
/lib/i386-linux-gnu/libz.so.1.2.3.4
00148000-00149000 rw-p 00014000 08:01 8388673   
/lib/i386-linux-gnu/libz.so.1.2.3.4
00149000-00173000 r-xp 00000000 08:01 8393785   
/lib/i386-linux-gnu/libm-2.15.so
00173000-00174000 r--p 00029000 08:01 8393785   
/lib/i386-linux-gnu/libm-2.15.so
00174000-00175000 rw-p 0002a000 08:01 8393785   
/lib/i386-linux-gnu/libm-2.15.so
00175000-00314000 r-xp 00000000 08:01 8393781   
/lib/i386-linux-gnu/libc-2.15.so
00314000-00316000 r--p 0019f000 08:01 8393781   
/lib/i386-linux-gnu/libc-2.15.so
00316000-00317000 rw-p 001a1000 08:01 8393781   
/lib/i386-linux-gnu/libc-2.15.so
00317000-0031a000 rw-p 00000000 00:00 0 
0031a000-00325000 r-xp 00000000 08:01 8393790   
/lib/i386-linux-gnu/libnss_files-2.15.so
00325000-00326000 r--p 0000a000 08:01 8393790   
/lib/i386-linux-gnu/libnss_files-2.15.so
00326000-00327000 rw-p 0000b000 08:01 8393790   
/lib/i386-linux-gnu/libnss_files-2.15.so
00327000-00343000 r-xp 00000000 08:01 8388853   
/lib/i386-linux-gnu/libgcc_s.so.1
00343000-00344000 r--p 0001b000 08:01 8388853   
/lib/i386-linux-gnu/libgcc_s.so.1
00344000-00345000 rw-p 0001c000 08:01 8388853   
/lib/i386-linux-gnu/libgcc_s.so.1
08048000-0826f000 r-xp 00000000 08:01 10890857  
/usr/local/bin/freeciv-server
0826f000-08270000 r--p 00226000 08:01 10890857  
/usr/local/bin/freeciv-server
08270000-08274000 rw-p 00227000 08:01 10890857  
/usr/local/bin/freeciv-server
08274000-0936e000 rw-p 00000000 00:00 0          [heap]
b7c69000-b7cd3000 rw-p 00000000 00:00 0 
b7cd3000-b7cda000 r--s 00000000 08:01 10496484  
/usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
b7cda000-b7de2000 r--p 00000000 08:01 11014208  
/usr/local/share/locale/fr/LC_MESSAGES/freeciv.mo
b7de2000-b7fe2000 r--p 00000000 08:01 10487192  
/usr/lib/locale/locale-archive
b7fe2000-b7fe4000 rw-p 00000000 00:00 0 
b7ffd000-b7ffe000 r--p 002cc000 08:01 10487192  
/usr/lib/locale/locale-archive
b7ffe000-b8000000 rw-p 00000000 00:00 0 
bffb6000-c0000000 rw-p 00000000 00:00 0          [stack]

Program received signal SIGABRT, Aborted.
0x00132416 in __kernel_vsyscall ()
(gdb) bt
#0  0x00132416 in __kernel_vsyscall ()
#1  0x001a31ef in __GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x001a6835 in __GI_abort () at abort.c:91
#3  0x001de2fa in __libc_message (do_abort=2, 
    fmt=0x2d63bc "*** glibc detected *** %s: %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
#4  0x001e8e42 in malloc_printerr (action=<optimized out>, 
    str=<optimized out>, ptr=0x883c438) at malloc.c:5007
#5  0x08088fcc in ai_data_close (pplayer=0x8958428) at advdata.c:905
#6  0x080b87fd in server_remove_player (pplayer=0x8958428) at plrhand.c:1182
#7  0x0805159a in server_game_free () at srv_main.c:2529
#8  0x080516b2 in server_quit () at srv_main.c:1308
#9  0x0805ccb5 in quit_game (check=false, caller=0x827cd80) at
stdinhand.c:3866
#10 handle_stdin_input_real (caller=0x827cd80, str=<optimized out>, 
    check=false, read_recursion=0) at stdinhand.c:4110
#11 0x08100998 in handle_chat_msg_req (pconn=0x827cd80, 
    message=0x897e0f8 "/quit") at handchat.c:343
#12 0x080b1a5f in server_handle_packet (type=PACKET_CHAT_MSG_REQ, 
    packet=0x897e0f8, pplayer=0x0, pconn=0x827cd80) at hand_gen.c:40
#13 0x0804fe92 in server_packet_input (pconn=0x827cd80, packet=0x897e0f8, 
    type=26) at srv_main.c:1510
#14 0x080dea16 in incoming_client_packets (pconn=<optimized out>)
    at sernet.c:448
#15 server_sniff_all_input () at sernet.c:825
#16 0x08051ded in srv_running () at srv_main.c:2174
#17 srv_main () at srv_main.c:2574
#18 0x0804b68c in main (argc=1, argv=0xbffff394) at civserver.c:377
(gdb) bt full
#0  0x00132416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x001a31ef in __GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = <optimized out>
        resultvar = <optimized out>
        pid = 3235828
        selftid = 4609
#2  0x001a6835 in __GI_abort () at abort.c:91
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x3, sa_sigaction = 0x3}, 
          sa_mask = {__val = {134513092, 134513132, 3221203196, 1369, 
              3221203228, 2455982, 0, 0, 1790285, 3235828, 3235828, 14, 
              3221204660, 2577802, 11, 3221203124, 4, 0, 3221222252, 0, 3, 0,

              6, 3221203228, 3221203220, 4, 2966248, 2966252, 1631200, 3, 
              1631443, 4}}, sa_flags = 5, sa_restorer = 0x2d1dbf}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0x001de2fa in __libc_message (do_abort=2, 
    fmt=0x2d63bc "*** glibc detected *** %s: %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
        ap = 0xb7c69000 ""
        ap_copy = 0xb7c69000 ""
        fd = 11
        on_2 = <optimized out>
        list = <optimized out>
        nlist = <optimized out>
        cp = <optimized out>
        written = <optimized out>
#4  0x001e8e42 in malloc_printerr (action=<optimized out>, 
    str=<optimized out>, ptr=0x883c438) at malloc.c:5007
        buf = "0883c438"
        cp = <optimized out>
#5  0x08088fcc in ai_data_close (pplayer=0x8958428) at advdata.c:905
        ai = 0x853d478
#6  0x080b87fd in server_remove_player (pplayer=0x8958428) at plrhand.c:1182
        pslot = <optimized out>
        __FUNCTION__ = "server_remove_player"
#7  0x0805159a in server_game_free () at srv_main.c:2529
        pplayer = <optimized out>
        _pslot = 0x8484f58
#8  0x080516b2 in server_quit () at srv_main.c:1308
No locals.
#9  0x0805ccb5 in quit_game (check=false, caller=0x827cd80) at
stdinhand.c:3866
No locals.
#10 handle_stdin_input_real (caller=0x827cd80, str=<optimized out>, 
    check=false, read_recursion=0) at stdinhand.c:4110






    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19800>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to