*** stack smashing detected ***: warzone2100 terminated

Bug #520432 reported by Paul_M
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
warzone2100 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: warzone2100

1) Ubuntu 9.10
2) warzone2100 version 2.2.2

*** stack smashing detected ***: warzone2100 terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7fc35714b647]
/lib/libc.so.6(__fortify_fail+0x0)[0x7fc35714b610]
warzone2100[0x5e504b]
warzone2100(openWarzoneKey+0x13)[0x5e5233]
warzone2100(loadConfig+0x26)[0x48f3a6]
warzone2100(main+0x20a)[0x4f70da]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fc357072abd]
warzone2100[0x47c5a9]
======= Memory map: ========
00400000-00691000 r-xp 00000000 08:01 903087 /usr/games/warzone2100
00890000-00891000 r--p 00290000 08:01 903087 /usr/games/warzone2100
00891000-008b5000 rw-p 00291000 08:01 903087 /usr/games/warzone2100
008b5000-01355000 rw-p 00000000 00:00 0
02ab2000-02af0000 rw-p 00000000 00:00 0 [heap]
7fc354899000-7fc3548ac000 r--p 00000000 08:01 1147878 /usr/share/locale/nl/LC_MESSAGES/warzone2100.mo
7fc3548ac000-7fc3548eb000 r--p 00000000 08:01 1090388 /usr/lib/locale/nl_NL.utf8/LC_CTYPE
7fc3548eb000-7fc3548ec000 r--p 00000000 08:01 1008352 /usr/lib/locale/nl_NL.utf8/LC_NUMERIC
7fc3548ec000-7fc3548ed000 r--p 00000000 08:01 1081346 /usr/lib/locale/nl_NL.utf8/LC_TIME
7fc3548ed000-7fc3549d8000 r--p 00000000 08:01 1090391 /usr/lib/locale/nl_NL.utf8/LC_COLLATE
7fc3549d8000-7fc3549d9000 r--p 00000000 08:01 1008353 /usr/lib/locale/nl_NL.utf8/LC_MONETARY
7fc3549d9000-7fc3549da000 r--p 00000000 08:01 925878 /usr/lib/locale/nl_NL.utf8/LC_MESSAGES/SYS_LC_MESSAGES
7fc3549da000-7fc3549db000 r--p 00000000 08:01 926223 /usr/lib/locale/nl_NL.utf8/LC_PAPER
7fc3549db000-7fc3549dc000 r--p 00000000 08:01 926221 /usr/lib/locale/nl_NL.utf8/LC_NAME
7fc3549dc000-7fc3549dd000 r--p 00000000 08:01 1008899 /usr/lib/locale/nl_NL.utf8/LC_ADDRESS
7fc3549dd000-7fc3549de000 r--p 00000000 08:01 1008900 /usr/lib/locale/nl_NL.utf8/LC_TELEPHONE
7fc3549de000-7fc3549df000 r--p 00000000 08:01 926219 /usr/lib/locale/nl_NL.utf8/LC_MEASUREMENT
7fc3549df000-7fc3549e6000 r--s 00000000 08:01 909322 /usr/lib/gconv/gconv-modules.cache
7fc3549e6000-7fc3549e7000 r--p 00000000 08:01 1008901 /usr/lib/locale/nl_NL.utf8/LC_IDENTIFICATION
7fc3549e7000-7fc3549f0000 r--s 00000000 08:01 10641733 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86-64.cache-2
7fc3549f0000-7fc3549f2000 r--s 00000000 08:01 10642555 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-x86-64.cache-2
7fc3549f2000-7fc3549f5000 r--s 00000000 08:01 10642526 /var/cache/fontconfig/f24b2111ab8703b4e963115a8cf14259-x86-64.cache-2
7fc3549f5000-7fc3549fd000 r--s 00000000 08:01 10642553 /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86-64.cache-2
7fc3549fd000-7fc354a02000 r--s 00000000 08:01 10642534 /var/cache/fontconfig/062808c12e6e608270f93bb230aed730-x86-64.cache-2
7fc354a02000-7fc354a06000 r--s 00000000 08:01 10642548 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86-64.cache-2
7fc354a06000-7fc354a0f000 r--s 00000000 08:01 10642547 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86-64.cache-2
7fc354a0f000-7fc354a1a000 r--s 00000000 08:01 10642546 /var/cache/fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86-64.cache-2
7fc354a1a000-7fc354a2a000 r--s 00000000 08:01 10642525 /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86-64.cache-2
7fc354a2a000-7fc354a2f000 r-xp 00000000 08:01 901384 /usr/lib/libXdmcp.so.6.0.0
7fc354a2f000-7fc354c2e000 ---p 00005000 08:01 901384 /usr/lib/libXdmcp.so.6.0.0
7fc354c2e000-7fc354c2f000 rw-p 00004000 08:01 901384 /usr/lib/libXdmcp.so.6.0.0
7fc354c2f000-7fc354c31000 r-xp 00000000 08:01 902567 /usr/lib/libXau.so.6.0.0
7fc354c31000-7fc354e30000 ---p 00002000 08:01 902567 /usr/lib/libXau.so.6.0.0
7fc354e30000-7fc354e31000 r--p 00001000 08:01 902567 /usr/lib/libXau.so.6.0.0
7fc354e31000-7fc354e32000 rw-p 00002000 08:01 902567 /usr/lib/libXau.so.6.0.0
7fc354e32000-7fc354e58000 r-xp 00000000 08:01 2949259 /lib/libexpat.so.1.5.2
7fc354e58000-7fc355058000 ---p 00026000 08:01 2949259 /lib/libexpat.so.1.5.2
7fc355058000-7fc35505a000 r--p 00026000 08:01 2949259 /lib/libexpat.so.1.5.2
7fc35505a000-7fc35505b000 rw-p 00028000 08:01 2949259 /lib/libexpat.so.1.5.2
7fc35505b000-7fc355062000 r-xp 00000000 08:01 2950046 /lib/librt-2.10.1.so
7fc355062000-7fc355261000 ---p 00007000 08:01 2950046 /lib/librt-2.10.1.so
7fc355261000-7fc355262000 r--p 00006000 08:01 2950046 /lib/librt-2.10.1.so
7fc355262000-7fc355263000 rw-p 00007000 08:01 2950046 /lib/librt-2.10.1.so
7fc355263000-7fc35527e000 r-xp 00000000 08:01 902120 /usr/lib/libxcb.so.1.1.0
7fc35527e000-7fc35547d000 ---p 0001b000 08:01 902120 /usr/lib/libxcb.so.1.1.0
7fc35547d000-7fc35547e000 r--p 0001a000 08:01 902120 /usr/lib/libxcb.so.1.1.0
7fc35547e000-7fc35547f000 rw-p 0001b000 08:01 902120 /usr/lib/libxcb.so.1.1.0
7fc35547f000-7fc355490000 r-xp 00000000 08:01 901122 /usr/lib/libXext.so.6.4.0
7fc355490000-7fc35568f000 ---p 00011000 08:01 901122 /usr/lib/libXext.so.6.4.0
7fc35568f000-7fc355690000 r--p 00010000 08:01 901122 /usr/lib/libXext.so.6.4.0
7fc355690000-7fc355691000 rw-p 00011000 08:01 901122 /usr/lib/libXext.so.6.4.0
7fc355691000-7fc35569f000 r-xp 00000000 08:01 902868 /usr/lib/libfribidi.so.0.0.0
7fc35569f000-7fc35589e000 ---p 0000e000 08:01 902868 /usr/lib/libfribidi.so.0.0.0Saved dump file to '/tmp/warzone2100.gdmp-c15KJm'
If you create a bugreport regardings this crash, please include this file.

Revision history for this message
Paul_M (paul-m) wrote :
Revision history for this message
Paul Wise (Debian) (pabs) wrote :

The dump doesn't contain enough info to debug this.

Please install the libc6 and warzone2100 debug symbols (libc6-dbg, warzone2100-dbg or the special Ubuntu stuff) and try again.

Changed in warzone2100 (Ubuntu):
status: New → Incomplete
Revision history for this message
Paul Wise (Debian) (pabs) wrote :

A possible fix was just committed to upstream's trunk and 2.3 branches.

<CIA-28> cypr * r10086 /trunk/lib/framework/configfile.c:
<CIA-28> Use bigger buffers in registry_load, to avoid stack overflow if a key is longer than 31 bytes.
<CIA-28> Probably closes ticket:https://bugs.launchpad.net/ubuntu/+source/warzone2100/+bug/520432
<CIA-28> cypr * r10087 /branches/2.3/lib/framework/configfile.c: 2.3: Use bigger buffers in registry_load, to avoid stack overflow if a key is longer than 31 bytes.

Please test again when 2.3 is released.

Changed in warzone2100 (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Paul Wise (Debian) (pabs) wrote :

I just uploaded 2.3.1 to Debian sid, please test it when it reaches Ubuntu.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package warzone2100 - 2.3.1-1

---------------
warzone2100 (2.3.1-1) unstable; urgency=low

  * New upstream release (Closes: #579282) (LP: #593443)
    - Stable release so uploading to unstable
    - No longer FTBFS with binutils-gold (Closes: #556919)
    - Fixes "stack smashing detected" problem (LP: #520432)
    - Fixes error in pt_BR translation (Closes: #583163)
  * Bump Standards-Version, no changes needed
  * Update watch file to also report rc/beta with letters in the version
  * Mention the new videos in the package description and point people
    at the upstream website for downloading and installing them since
    Debian does not yet have a good solution for distributing them.
    (Closes: #439736) (LP: #587909)
  * Use the system GLee and remove the embedded version during build
  * Explicitly use dpkg-source 1.0 format
  * Drop some build-depends:
    - libsdl-net1.2-dev: no longer used upstream
    - autotools: no longer used by the packaging

warzone2100 (2.3~beta7-1) experimental; urgency=low

  * New upstream beta release
    - Added missing shortcuts for "go to transport" and "guard position"
      commands. (Closes: #540846)
  * Adjust watch file to new version scheme
  * Drop warzone2100-video recommends, the package name will be
    different anyway. (Closes: #546539)

warzone2100 (2.3~beta3-1) experimental; urgency=low

  * New upstream beta release
 -- Ubuntu Archive Auto-Sync <email address hidden> Mon, 21 Jun 2010 18:56:54 +0100

Changed in warzone2100 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.