Author Topic: [lacks info] Segfault with Annex (MG 3.5.2)  (Read 942 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[lacks info] Segfault with Annex (MG 3.5.2)
« on: 27 August 2011, 21:55:27 »
Code: [Select]
In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 574] Error detected: signal 11:
*** glibc detected *** ./megaglest: malloc(): memory corruption (fast): 0x00007f5790005dc0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x76bb6)[0x7f57b70c4bb6]
/lib/x86_64-linux-gnu/libc.so.6(+0x79e78)[0x7f57b70c7e78]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x6e)[0x7f57b70ca31e]
/lib/x86_64-linux-gnu/libc.so.6(__strdup+0x22)[0x7f57b70d02f2]
/lib/x86_64-linux-gnu/libc.so.6(+0x9eb85)[0x7f57b70ecb85]
/lib/x86_64-linux-gnu/libc.so.6(+0x9eeeb)[0x7f57b70eceeb]
./megaglest(_ZN6Shared4Util11SystemFlags11handleDebugENS1_9DebugTypeEPKcz+0x213)[0x894f73]
./megaglest(_ZN5Glest4Game16ExceptionHandler18handleRuntimeErrorEPKc+0x76)[0x657066]
./megaglest(_ZN5Glest4Game13handleSIGSEGVEi+0x82)[0x642572]
/lib/x86_64-linux-gnu/libc.so.6(+0x33d80)[0x7f57b7081d80]
/lib/x86_64-linux-gnu/libc.so.6(memcpy+0x286)[0x7f57b70d8be6]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSs9_M_mutateEmmm+0x102)[0x7f57b791a132]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSs14_M_replace_auxEmmmc+0x4a)[0x7f57b791a4da]
./megaglest(_ZN5Glest4Game19MenuStateCustomGame8keyPressEc+0x144)[0x6fef74]
./megaglest(_ZN5Glest4Game10MainWindow13eventKeyPressEc+0x5a)[0x6422ca]
./megaglest(_ZN6Shared8Platform6Window11handleEventEv+0x3b9)[0x8a8309]
./megaglest(_ZN5Glest4Game9glestMainEiPPc+0x4419)[0x654619]
./megaglest(_ZN5Glest4Game16glestMainWrapperEiPPc+0x24)[0x655c14]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff)[0x7f57b706ceff]
./megaglest[0x574429]
======= Memory map: ========
00400000-00c41000 r-xp 00000000 fc:02 14160458                           /home/user1/annex_beta_v_1/megaglest
00e40000-00e42000 r--p 00840000 fc:02 14160458                           /home/user1/annex_beta_v_1/megaglest
00e42000-00e65000 rw-p 00842000 fc:02 14160458                           /home/user1/annex_beta_v_1/megaglest
00e65000-00e79000 rw-p 00000000 00:00 0
0180b000-025d8000 rw-p 00000000 00:00 0                                  [heap]
7f5790000000-7f5790058000 rw-p 00000000 00:00 0
7f5790058000-7f5794000000 ---p 00000000 00:00 0
7f57967fd000-7f57967fe000 ---p 00000000 00:00 0
7f57967fe000-7f5796ffe000 rw-p 00000000 00:00 0
7f5796ffe000-7f5796fff000 ---p 00000000 00:00 0
7f5796fff000-7f57977ff000 rw-p 00000000 00:00 0
7f57977ff000-7f5797800000 ---p 00000000 00:00 0
7f5797800000-7f5798000000 rw-p 00000000 00:00 0
7f5798000000-7f57987c0000 rw-p 00000000 00:00 0
7f57987c0000-7f579c000000 ---p 00000000 00:00 0
7f579c111000-7f579c11c000 r-xp 00000000 fc:01 655422                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f579c11c000-7f579c31b000 ---p 0000b000 fc:01 655422                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f579c31b000-7f579c31c000 r--p 0000a000 fc:01 655422                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f579c31c000-7f579c31d000 rw-p 0000b000 fc:01 655422                     /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f579c31d000-7f579c325000 r-xp 00000000 fc:01 655416                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f579c325000-7f579c524000 ---p 00008000 fc:01 655416                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f579c524000-7f579c525000 r--p 00007000 fc:01 655416                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f579c525000-7f579c526000 rw-p 00008000 fc:01 655416                     /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f579c771000-7f579c772000 ---p 00000000 00:00 0
7f579c772000-7f579cf72000 rw-p 00000000 00:00 0
7f579cf72000-7f579cf73000 ---p 00000000 00:00 0
7f579cf73000-7f579d773000 rw-p 00000000 00:00 0
7f579d773000-7f579d774000 ---p 00000000 00:00 0
7f579d774000-7f579df74000 rw-p 00000000 00:00 0
7f579df74000-7f579df75000 ---p 00000000 00:00 0
7f579df75000-7f579e775000 rw-p 00000000 00:00 0
7f579e775000-7f579e776000 ---p 00000000 00:00 0
7f579e776000-7f579ef76000 rw-p 00000000 00:00 0
7f579ef76000-7f579ef77000 ---p 00000000 00:00 0
7f579ef77000-7f579f777000 rw-p 00000000 00:00 0
7f579f777000-7f579f778000 ---p 00000000 00:00 0
7f579f778000-7f579ff78000 rw-p 00000000 00:00 0
7f579ff78000-7f579ff79000 ---p 00000000 00:00 0
7f579ff79000-7f57a0779000 rw-p 00000000 00:00 0
7f57a0779000-7f57a077a000 ---p 00000000 00:00 0
7f57a077a000-7f57a0f7a000 rw-p 00000000 00:00 0
7f57a0f7a000-7f57a0f81000 r-xp 00000000 fc:01 655417                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f57a0f81000-7f57a1180000 ---p 00007000 fc:01 655417                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f57a1180000-7f57a1181000 r--p 00006000 fc:01 655417                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f57a1181000-7f57a1182000 rw-p 00007000 fc:01 655417                     /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f57a1182000-7f57a1184000 r-xp 00000000 fc:01 667108                     /lib/libnss_mdns4_minimal.so.2
7f57a1184000-7f57a1383000 ---p 00002000 fc:01 667108                     /lib/libnss_mdns4_minimal.so.2
7f57a1383000-7f57a1384000 r--p 00001000 fc:01 667108                     /lib/libnss_mdns4_minimal.so.2
7f57a1384000-7f57a1385000 rw-p 00002000 fc:01 667108                     /lib/libnss_mdns4_minimal.so.2
7f57a1385000-7f57a1391000 r-xp 00000000 fc:01 655418                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f57a1391000-7f57a1590000 ---p 0000c000 fc:01 655418                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f57a1590000-7f57a1591000 r--p 0000b000 fc:01 655418                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f57a1591000-7f57a1592000 rw-p 0000c000 fc:01 655418                     /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f57a15ad000-7f57a15ae000 rw-s 2eafc7000 00:05 1710                      /dev/dri/card0
7f57a15ae000-7f57a15af000 rw-s 2eafc6000 00:05 1710                      /dev/dri/card0
7f57a15af000-7f57a15b0000 rw-s 2eafc4000 00:05 1710                      /dev/dri/card0
7f57a15b0000-7f57a15b1000 rw-s 2eafc3000 00:05 1710                      /dev/dri/card0
7f57a15b1000-7f57a15b2000 rw-s 2eafc2000 00:05 1710                      /dev/dri/card0
7f57a15b2000-7f57a15b3000 rw-s 2eafc1000 00:05 1710                      /dev/dri/card0
7f57a15b3000-7f57a15b4000 rw-s 2eafc5000 00:05 1710                      /dev/dri/card0
7f57a15b4000-7f57a15b5000 rw-s 2eafc0000 00:05 1710                      /dev/dri/card0
7f57a15b5000-7f57a15b6000 rw-s 2eafbf000 00:05 1710                      /dev/dri/card0
7f57a15b6000-7f57a15b7000 rw-s 2ef701000 00:05 1710                      /dev/dri/card0
7f57a15b7000-7f57a15b8000 ---p 00000000 00:00 0
7f57a15b8000-7f57a1db8000 rw-p 00000000 00:00 0
7f57a1db8000-7f57a1db9000 ---p 00000000 00:00 0
7f57a1db9000-7f57a25b9000 rw-p 00000000 00:00 0
7f57a25b9000-7f57a25c9000 rw-s 2ef70f000 00:05 1710                      /dev/dri/card0
7f57a25c9000-7f57a25ca000 rw-s 2ef705000 00:05 1710                      /dev/dri/card0
7f57a25ca000-7f57a25cb000 rw-s 2ef700000 00:05 1710                      /dev/dri/card0
Aborted (core dumped)

And a backtrace on the core file:
Code: [Select]
$ gdb -q -n -ex bt -batch megaglest core
[New Thread 7678]
[New Thread 7683]

warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
Core was generated by `./megaglest --validate-techtrees'.
Program terminated with signal 6, Aborted.
#0  0x00007f77c7eeed05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64    ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x00007f77c7eeed05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f77c7ef2ab6 in abort () at abort.c:92
#2  0x0000000000657249 in Glest::Game::ExceptionHandler::handleRuntimeError(char const*) ()
#3  0x0000000000652876 in Glest::Game::glestMain (argc=2, argv=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:3021
#4  0x0000000000655c14 in Glest::Game::glestMainWrapper (argc=2, argv=0x7fff10c95ae8) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:3079
#5  0x00007f77c7ed9eff in __libc_start_main (main=0x655cd0 <main(int, char**)>, argc=2, ubp_av=0x7fff10c95ae8, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff10c95ad8) at libc-start.c:226
#6  0x0000000000574429 in _start () at ../sysdeps/x86_64/elf/start.S:113

Was the bug in the games' internal backtrace routine still present in 3.5.2.4?
« Last Edit: 13 July 2012, 17:00:47 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Segfault with Annex (MG 3.5.2)
« Reply #1 on: 29 August 2011, 22:49:30 »
When did this segfault, during validating techtree or in the custom menu?

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Segfault with Annex (MG 3.5.2)
« Reply #2 on: 30 August 2011, 00:27:13 »
Unfortunately I'm not entirely sure because I was clicking back and forth when it happened....
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·