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

                 Summary: Segfault when issuing huge goto
                 Project: Freeciv
            Submitted by: dmarks
            Submitted on: Friday 10/22/2010 at 07:25
                Category: None
                Severity: 4 - Important
                Priority: 3 - Low
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

There's a deterministic segfault issuing huge goto commands in trunk, gtk2
client. Repro's at 961 turns, but not at 920.

Testable with ultralonggoto savegame from bug #16792.

At one point during testing, I got this output in the terminal:

*** stack smashing detected ***: ./client/freeciv-gtk2 terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0xe6c390]
/lib/tls/i686/cmov/libc.so.6(+0xe233a)[0xe6c33a]
./client/freeciv-gtk2[0x816a2ed]
[0xf8886840]
======= Memory map: ========
00110000-004dd000 r-xp 00000000 08:01 2696191   
/usr/lib/libgtk-x11-2.0.so.0.2000.1
004dd000-004e1000 r--p 003cd000 08:01 2696191   
/usr/lib/libgtk-x11-2.0.so.0.2000.1
004e1000-004e3000 rw-p 003d1000 08:01 2696191   
/usr/lib/libgtk-x11-2.0.so.0.2000.1
004e3000-004e5000 rw-p 00000000 00:00 0 
004e5000-004fe000 r-xp 00000000 08:01 2696572   
/usr/lib/libatk-1.0.so.0.3009.1
004fe000-004ff000 ---p 00019000 08:01 2696572   
/usr/lib/libatk-1.0.so.0.3009.1
004ff000-00500000 r--p 00019000 08:01 2696572   
/usr/lib/libatk-1.0.so.0.3009.1
00500000-00501000 rw-p 0001a000 08:01 2696572   
/usr/lib/libatk-1.0.so.0.3009.1
00501000-00519000 r-xp 00000000 08:01 2700061   
/usr/lib/libgdk_pixbuf-2.0.so.0.2000.1
00519000-0051a000 r--p 00017000 08:01 2700061   
/usr/lib/libgdk_pixbuf-2.0.so.0.2000.1
0051a000-0051b000 rw-p 00018000 08:01 2700061   
/usr/lib/libgdk_pixbuf-2.0.so.0.2000.1
0051b000-00525000 r-xp 00000000 08:01 2696846   
/usr/lib/libpangocairo-1.0.so.0.2800.0
00525000-00526000 r--p 00009000 08:01 2696846   
/usr/lib/libpangocairo-1.0.so.0.2800.0
00526000-00527000 rw-p 0000a000 08:01 2696846   
/usr/lib/libpangocairo-1.0.so.0.2800.0
00527000-0059e000 r-xp 00000000 08:01 2695331   
/usr/lib/libcairo.so.2.10800.10
0059e000-005a0000 r--p 00076000 08:01 2695331   
/usr/lib/libcairo.so.2.10800.10
005a0000-005a1000 rw-p 00078000 08:01 2695331   
/usr/lib/libcairo.so.2.10800.10
005a1000-005e1000 r-xp 00000000 08:01 2696809   
/usr/lib/libpango-1.0.so.0.2800.0
005e1000-005e2000 ---p 00040000 08:01 2696809   
/usr/lib/libpango-1.0.so.0.2800.0
005e2000-005e3000 r--p 00040000 08:01 2696809   
/usr/lib/libpango-1.0.so.0.2800.0
005e3000-005e4000 rw-p 00041000 08:01 2696809   
/usr/lib/libpango-1.0.so.0.2800.0
005e4000-005eb000 r-xp 00000000 08:01 6465885   
/lib/tls/i686/cmov/librt-2.11.1.so
005eb000-005ec000 r--p 00006000 08:01 6465885   
/lib/tls/i686/cmov/librt-2.11.1.so
005ec000-005ed000 rw-p 00007000 08:01 6465885   
/lib/tls/i686/cmov/librt-2.11.1.so
005ed000-00602000 r-xp 00000000 08:01 6465883    /lib/tls/i686/cmov/libpt***
stack smashing detected ***: ./server/freeciv-server terminated
hread-2.11.1.so
00602000-00603000 r--p 00014000 08:01 6465883   
/lib/tls/i686/cmov/libpthread-2.11.1.so
00603000-00604000 rw-p 00015000 08:01 6465883   
/lib/tls/i686/cmov/libpthread-2.11.1.so
00604000-00606000 rw-p 00000000 00:00 0 
00606000-0060c000 r-xp 00000000 08:01 2695376    /usr/lib/libXrandr.so.2.2.0
0060c000-0060d000 r--p 00005000 08:01 2695376    /usr/lib/libXrandr.so.2.2.0
0060d000-0060e000 rw-p 00006000 08:01 2695376    /usr/lib/libXrandr.so.2.2.0
0060e000-00610000 r-xp 00000000 08:01 2697695   
/usr/lib/libXcomposite.so.1.0.0
00610000-00611000 r--p 00001000 08:01 2697695   
/usr/lib/libXcomposite.so.1.0.0
00611000-00612000 rw-p 00002000 08:01 2697695   
/usr/lib/libXcomposite.so.1.0.0
00613000-0062e000 r-xp 00000000 08:01 6447165    /lib/ld-2.11.1.so
0062e000-0062f000 r--p 0001a000 08:01 6447165    /lib/ld-2.11.1.so
0062f000-00630000 rw-p 0001b000 08:01 6447165    /lib/ld-2.11.1.so
00630000-0066d000 r-xp 00000000 08:01 2695334   
/usr/lib/libgobject-2.0.so.0.2400.1
0066d000-0066e000 r--p 0003c000 08:01 2695334   
/usr/lib/libgobject-2.0.so.0.2400.1
0066e000-0066f000 rw-p 0003d000 08:01 2695334   
/usr/lib/libgobject-2.0.so.0.2400.1
0066f000-0067d000 r-xp 00000000 08:01 10060230   /usr/lib/libXext.so.6.4.0
0067d000-0067e000 r--p 0000d000 08:01 10060230   /usr/lib/libXext.so.6.4.0
0067e000-0067f000 rw-p 0000e000 08:01 10060230   /usr/lib/libXext.so.6.4.0
0067f000-0068b000 r-xp 00000000 08:01 2695179    /usr/lib/libXi.so.6.1.0
0068b000-0068c000 r--p 0000c000 08:01 2695179    /usr/lib/libXi.so.6.1.0
0068c000-0068d000 rw-p 0000d000 08:01 2695179    /usr/lib/libXi.so.6.1.0
0068f000-006bd000 r-xp 00000000 08:01 2695784   
/usr/lib/libfontconfig.so.1.4.4
006bd000-006be000 r--p 0002d000 08:01 2695784   
/usr/lib/libfontconfig.so.1.4.4
006be000-006bf000 rw-p 0002e000 08:01 2695784   
/usr/lib/libfontconfig.so.1.4.4
006bf000-00787000 r-xp 00000000 08:01 6447142   
/lib/libglib-2.0.so.0.2400.1
00787000-00788000 r--p 000c7000 08:01 6447142   
/lib/libglib-2.0.so.0.2400.1
00788000-00789000 rw-p 000c8000 08:01 6447142   
/lib/libglib-2.0.so.0.2400.1
00789000-00791000 r-xp 00000000 08:01 2697913   
/usr/lib/libXcursor.so.1.0.2
00791000-00792000 r--p 00007000 08:01 2697913   
/usr/lib/libXcursor.so.1.0.2
00792000-00793000 rw-p 00008000 08:01 2697913   
/usr/lib/libXcursor.so.1.0.2
00793000-00797000 r-xp 00000000 08:01 2695302    /usr/lib/libXfixes.so.3.1.0
00797000-00798000 r--p 00003000 08:01 2695302    /usr/lib/libXfixes.so.3.1.0
00798000-00799000 rw-p 00004000 08:01 2695302    /usr/lib/libXfixes.so.3.1.0
00799000-0079b000 r-xp 00000000 08:01 6465872   
/lib/tls/i686/cmov/libdl-2.11.1.so
0079b000-0079c000 r--p 00001000 08:01 6465872   
/lib/tls/i686/cmov/libdl-2.11.1.so
0079c000-0079d000 rw-p 00002000 08:01 6465872   
/lib/tls/i686/cmov/libdl-2.11.1.so
0079d000-007cc000 r-xp 00000000 08:01 6449104    /lib/libpcre.so.3.12.1
007cc000-007cd000 r--p 0002e000 08:01 6449104    /lib/libpcre.so.3.12.1
007cd000-007ce000 rw-p 0002f000 08:01 6449104    /lib/libpcre.so.3.12.1
007ce000-007d6000 r-xp 00000000 08:01 10060251  
/usr/lib/libfusion-1.2.so.0.8.0
007d6000-007d7000 r--p 00007000 08:01 10060251  
/usr/lib/libfusion-1.2.so.0.8.0
007d7000-007d8000 rw-p 00008000 08:01 10060251  
/usr/lib/libfusion-1.2.so.0.8.0
007d8000-007db000 r-xp 00000000 08:01 2696236   
/usr/lib/libxcb-render-util.so.0.0.0
007db000-007dc000 r--p 00002000 08:01 2696236   
/usr/lib/libxcb-render-util.so.0.0.0
007dc000-007dd000 rw-p 00003000 08:01 2696236   
/usr/lib/libxcb-render-util.so.0.0.0
007dd000-007e3000 r-xp 00000000 08:01 2696209   
/usr/lib/libxcb-render.so.0.0.0
007e3000-007e4000 r--p 00005000 08:01 2696209   
/usr/lib/libxcb-render.so.0.0.0
007e4000-007e5000 rw-p 00006000 08:01 2696209   
/usr/lib/libxcb-render.so.0.0.0
007e5000-007e7000 r-xp 00000000 08:01 10059906   /usr/lib/libXau.so.6.0.0
007e7000-007e8000 r--p 00001000 08:01 10059906   /usr/lib/libXau.so.6.0.0
007e8000-007e9000 rw-p 00002000 08:01 10059906   /usr/lib/libXau.so.6.0.0
007e9000-00802000 r-xp 00000000 08:01 6447140    /lib/libselinux.so.1
00802000-00803000 r--p 00018000 08:01
644/lib/tls/i686/cmov/libc.so.6(+0xe233a7140    /lib/libselinux.so.1
00803000-00804000 rw-p 00019000 08:01 6447140    /lib/libselinux.so.1
00804000-0085b000 r-xp 00000000 08:01 2695974   
/usr/lib/libpixman-1.so.0.16.4
0085b000-0085d000 r--p 00057000 08:01 2695974   
/usr/lib/libpixman-1.so.0.16.4
0085d000-0085e000 rw-p 00059000 08:01 2695974   
/usr/lib/libpixman-1.so.0.16.4
0085e000-00862000 r-xp 00000000 08:01 10060001   /usr/lib/libXdmcp.so.6.0.0
00862000-00863000 r--p 00003000 08:01 10060001   /usr/lib/libXdmcp.so.6.0.0
00863000-00864000 rw-p 00004000 08:01 10060001   /usr/lib/libXdmcp.so.6.0.0
00865000-00866000 r-xp 00000000 00:00 0          [vdso]Aborted




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to