Opened 8 years ago

Closed 8 years ago

#1371 closed bug (worksforme)

gruesome bug leaps and then segfault at C-x; reproducible

Reported by: mikon Owned by:
Milestone: Triage Keywords:
Cc:

Description

mikolaj@bratek:~/repos/angband$ uname -a
Linux bratek 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
mikolaj@bratek:~/repos/angband$ git status
# On branch master
nothing to commit (working directory clean)
mikolaj@bratek:~/repos/angband$ date
Sun Mar 13 00:53:48 CET 2011
mikolaj@bratek:~/repos/angband$ git pull
Current branch master is up to date.
mikolaj@bratek:~/repos/angband$ src/angband
* glibc detected * src/angband: free(): invalid pointer: 0x08e94370 *
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x17b591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x17cde8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17fecd]
src/angband[0x810bfe0]
src/angband[0x8080270]
src/angband[0x810cd72]
/lib/tls/i686/cmov/libc.so.6(libc_start_main+0xe6)[0x126bd6]
src/angband[0x8049d91]
======= Memory map: ========
00110000-00263000 r-xp 00000000 08:01 3016182 /lib/tls/i686/cmov/libc-2.11.1.so
00263000-00264000 ---p 00153000 08:01 3016182 /lib/tls/i686/cmov/libc-2.11.1.so
00264000-00266000 r--p 00153000 08:01 3016182 /lib/tls/i686/cmov/libc-2.11.1.so
00266000-00267000 rw-p 00155000 08:01 3016182 /lib/tls/i686/cmov/libc-2.11.1.so
00267000-0026a000 rw-p 00000000 00:00 0
0026a000-0032d000 r-xp 00000000 08:01 1575802 /usr/lib/libasound.so.2.0.0
0032d000-00331000 r--p 000c2000 08:01 1575802 /usr/lib/libasound.so.2.0.0
00331000-00332000 rw-p 000c6000 08:01 1575802 /usr/lib/libasound.so.2.0.0
00332000-00334000 r-xp 00000000 08:01 3016471 /lib/tls/i686/cmov/libdl-2.11.1.so
00334000-00335000 r--p 00001000 08:01 3016471 /lib/tls/i686/cmov/libdl-2.11.1.so
00335000-00336000 rw-p 00002000 08:01 3016471 /lib/tls/i686/cmov/libdl-2.11.1.so
00336000-0033e000 r-xp 00000000 08:01 1576026 /usr/lib/libfusion-1.2.so.0.8.0
0033e000-0033f000 r--p 00007000 08:01 1576026 /usr/lib/libfusion-1.2.so.0.8.0
0033f000-00340000 rw-p 00008000 08:01 1576026 /usr/lib/libfusion-1.2.so.0.8.0
00340000-00354000 r-xp 00000000 08:01 1575949 /usr/lib/libdirect-1.2.so.0.8.0
00354000-00355000 r--p 00013000 08:01 1575949 /usr/lib/libdirect-1.2.so.0.8.0
00355000-00356000 rw-p 00014000 08:01 1575949 /usr/lib/libdirect-1.2.so.0.8.0
00356000-003c7000 r-xp 00000000 08:01 1579597 /usr/lib/libfreetype.so.6.3.22
003c7000-003cb000 r--p 00070000 08:01 1579597 /usr/lib/libfreetype.so.6.3.22
003cb000-003cc000 rw-p 00074000 08:01 1579597 /usr/lib/libfreetype.so.6.3.22
003cc000-00415000 r-xp 00000000 08:01 1576057 /usr/lib/libmikmod.so.2.0.4
00415000-00416000 r--p 00048000 08:01 1576057 /usr/lib/libmikmod.so.2.0.4
00416000-00417000 rw-p 00049000 08:01 1576057 /usr/lib/libmikmod.so.2.0.4
00417000-00418000 rw-p 00000000 00:00 0
00418000-00453000 r-xp 00000000 08:01 1575339 /usr/lib/libsmpeg-0.4.so.0.1.4
00453000-00454000 r--p 0003a000 08:01 1575339 /usr/lib/libsmpeg-0.4.so.0.1.4
00454000-00455000 rw-p 0003b000 08:01 1575339 /usr/lib/libsmpeg-0.4.so.0.1.4
00455000-00471000 rw-p 00000000 00:00 0
00471000-00498000 r-xp 00000000 08:01 1576688 /usr/lib/libvorbis.so.0.4.3
00498000-00499000 r--p 00026000 08:01 1576688 /usr/lib/libvorbis.so.0.4.3
00499000-0049a000 rw-p 00027000 08:01 1576688 /usr/lib/libvorbis.so.0.4.3
0049a000-004ad000 r-xp 00000000 08:01 3017001 /lib/tls/i686/cmov/libnsl-2.11.1.so
004ad000-004ae000 r--p 00012000 08:01 3017001 /lib/tls/i686/cmov/libnsl-2.11.1.so
004ae000-004af000 rw-p 00013000 08:01 3017001 /lib/tls/i686/cmov/libnsl-2.11.1.so
004af000-004b1000 rw-p 00000000 00:00 0
004b1000-004bb000 r-xp 00000000 08:01 3017136 /lib/tls/i686/cmov/libnss_files-2.11.1.so
004bb000-004bc000 r--p 00009000 08:01 3017136 /lib/tls/i686/cmov/libnss_files-2.11.1.so
004bc000-004bd000 rw-p 0000a000 08:01 3017136 /lib/tls/i686/cmov/libnss_files-2.11.1.so
004bd000-004c1000 r-xp 00000000 08:01 1575733 /usr/lib/libXdmcp.so.6.0.0
004c1000-004c2000 r--p 00003000 08:01 1575733 /usr/lib/libXdmcp.so.6.0.0
004c2000-004c3000 rw-p 00004000 08:01 1575733 /usr/lib/libXdmcp.so.6.0.0
004c3000-004d1000 r-xp 00000000 08:01 1575735 /usr/lib/libXext.so.6.4.0
004d1000-004d2000 r--p 0000d000 08:01 1575735 /usr/lib/libXext.so.6.4.0
004d2000-004d3000 rw-p 0000e000 08:01 1575735 /usr/lib/libXext.so.6.4.0
004d3000-004e8000 r-xp 00000000 08:01 1575687 /usr/lib/libICE.so.6.3.0
004e8000-004e9000 r--p 00014000 08:01 1575687 /usr/lib/libICE.so.6.3.0
004e9000-004ea000 rw-p 00015000 08:01 1575687 /usr/lib/libICE.so.6.3.0
004ea000-004ec000 rw-p 00000000 00:00 0
004ec000-004ef000 r-xp 00000000 08:01 3024524 /lib/libuuid.so.1.3.0
004ef000-004f0000 r--p 00002000 08:01 3024524 /lib/libuuid.so.1.3.0
004f0000-004f1000 rw-p 00003000 08:01 3024524 /lib/libuuid.so.1.3.0
004f5000-004fc000 r-xp 00000000 08:01 1575716 /usr/lib/libSM.so.6.0.1
004fc000-004fd000 r--p 00006000 08:01 1575716 /usr/lib/libSM.so.6.0.1
004fd000-004fe000 rw-p 00007000 08:01 1575716 /usr/lib/libSM.so.6.0.1
00501000-0050d000 r-xp 00000000 08:01 1575743 /usr/lib/libXi.so.6.1.0
0050d000-0050e000 r--p 0000c000 08:01 1575743 /usr/lib/libXi.so.6.1.0
0050e000-0050f000 rw-p 0000d000 08:01 1575743 /usr/lib/libXi.so.6.1.0
0050f000-00516000 r-xp 00000000 08:01 3017231 /lib/libwrap.so.0.7.6
00516000-00517000 r--p 00006000 08:01 3017231 /lib/libwrap.so.0.7.6
00517000-00518000 rw-p 00007000 08:01 3017231 /lib/libwrap.so.0.7.6
00518000-0051d000 r-xp 00000000 08:01 1577067 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
0051d000-0051e000 r--p 00004000 08:01 1577067 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
0051e000-0051f000 rw-p 00005000 08:01 1577067 /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
0053d000-0053e000 r-xp 00000000 00:00 0 [vdso]
0053e000-00575000 r-xp 00000000 08:01 3015159 /lib/libdbus-1.so.3.4.0
00575000-00576000 r--p 00036000 08:01 3015159 /lib/libdbus-1.so.3.4.0
00576000-00577000 rw-p 00037000 08:01 3015159 /lib/libdbus-1.so.3.4.0
00588000-005e0000 r-xp 00000000 08:01 1574933 /usr/lib/libtiff.so.4.3.2
005e0000-005e2000 r--p 00057000 08:01 1574933 /usr/lib/libtiff.so.4.3.2
005e2000-005e3000 rw-p 00059000 08:01 1574933 /usr/lib/libtiff.so.4.3.2
005e3000-006cc000 r-xp 00000000 08:01 1576627 /usr/lib/libstdc++.so.6.0.13
006cc000-006cd000 ---p 000e9000 08:01 1576627 /usr/lib/libstdc++.so.6.0.13
006cd000-006d1000 r--p 000e9000 08:01 1576627 /usr/lib/libstdc++.so.6.0.13
006d1000-006d2000 rw-p 000ed000 08:01 1576627 /usr/lib/libstdc++.so.6.0.13
006d2000-006d9000 rw-p 00000000 00:00 0
00710000-00734000 r-xp 00000000 08:01 3016995 /lib/tls/i686/cmov/libm-2.11.1.so
00734000-00735000 r--p 00023000 08:01 3016995 /lib/tls/i686/cmov/libm-2.11.1.so
00735000-00736000 rw-p 00024000 08:01 3016995 /lib/tls/i686/cmov/libm-2.11.1.so
0073b000-00741000 r-xp 00000000 08:01 3017111 /lib/tls/i686/cmov/libnss_compat-2.11.1.so
00741000-00742000 r--p 00006000 08:01 3017111 /lib/tls/i686/cmov/libnss_compat-2.11.1.so
00742000-00743000 rw-p 00007000 08:01 3017111 /lib/tls/i686/cmov/libnss_compat-2.11.1.so
00783000-0078b000 r-xp 00000000 08:01 1575729 /usr/lib/libXcursor.so.1.0.2
0078b000-0078c000 r--p 00007000 08:01 1575729 /usr/lib/libXcursor.so.1.0.2
0078c000-0078d000 rw-p 00008000 08:01 1575729 /usr/lib/libXcursor.so.1.0.2
0079b000-007b6000 r-xp 00000000 08:01 3016340 /lib/ld-2.11.1.so
007b6000-007b7000 r--p 0001a000 08:01 3016340 /lib/ld-2.11.1.so
007b7000-007b8000 rw-p 0001b000 08:01 3016340 /lib/ld-2.11.1.so

CCCCCSegmentation fault
mikolaj@bratek:~/repos/angband$

Attachments (1)

1000.Mikolaj.new (56.0 KB) - added by mikon 8 years ago.
savefile

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by mikon

savefile

comment:1 in reply to: ↑ description Changed 8 years ago by mikon

Sorry for the (lack of) formatting. But the Reply button does the trick:

Replying to [ticket:1371 mikon]:
> mikolaj@bratek:~/repos/angband$ uname -a
> Linux bratek 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
> mikolaj@bratek:~/repos/angband$ git status
> # On branch master
> nothing to commit (working directory clean)
> mikolaj@bratek:~/repos/angband$ date
> Sun Mar 13 00:53:48 CET 2011
> mikolaj@bratek:~/repos/angband$ git pull
> Current branch master is up to date.
> mikolaj@bratek:~/repos/angband$ src/angband 
> *** glibc detected *** src/angband: free(): invalid pointer: 0x08e94370 ***
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x17b591]
> /lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x17cde8]
> /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17fecd]
> src/angband[0x810bfe0]
> src/angband[0x8080270]
> src/angband[0x810cd72]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6]
> src/angband[0x8049d91]
> ======= Memory map: ========
> 00110000-00263000 r-xp 00000000 08:01 3016182    /lib/tls/i686/cmov/libc-2.11.1.so
> 00263000-00264000 ---p 00153000 08:01 3016182    /lib/tls/i686/cmov/libc-2.11.1.so
> 00264000-00266000 r--p 00153000 08:01 3016182    /lib/tls/i686/cmov/libc-2.11.1.so
> 00266000-00267000 rw-p 00155000 08:01 3016182    /lib/tls/i686/cmov/libc-2.11.1.so
> 00267000-0026a000 rw-p 00000000 00:00 0 
> 0026a000-0032d000 r-xp 00000000 08:01 1575802    /usr/lib/libasound.so.2.0.0
> 0032d000-00331000 r--p 000c2000 08:01 1575802    /usr/lib/libasound.so.2.0.0
> 00331000-00332000 rw-p 000c6000 08:01 1575802    /usr/lib/libasound.so.2.0.0
> 00332000-00334000 r-xp 00000000 08:01 3016471    /lib/tls/i686/cmov/libdl-2.11.1.so
> 00334000-00335000 r--p 00001000 08:01 3016471    /lib/tls/i686/cmov/libdl-2.11.1.so
> 00335000-00336000 rw-p 00002000 08:01 3016471    /lib/tls/i686/cmov/libdl-2.11.1.so
> 00336000-0033e000 r-xp 00000000 08:01 1576026    /usr/lib/libfusion-1.2.so.0.8.0
> 0033e000-0033f000 r--p 00007000 08:01 1576026    /usr/lib/libfusion-1.2.so.0.8.0
> 0033f000-00340000 rw-p 00008000 08:01 1576026    /usr/lib/libfusion-1.2.so.0.8.0
> 00340000-00354000 r-xp 00000000 08:01 1575949    /usr/lib/libdirect-1.2.so.0.8.0
> 00354000-00355000 r--p 00013000 08:01 1575949    /usr/lib/libdirect-1.2.so.0.8.0
> 00355000-00356000 rw-p 00014000 08:01 1575949    /usr/lib/libdirect-1.2.so.0.8.0
> 00356000-003c7000 r-xp 00000000 08:01 1579597    /usr/lib/libfreetype.so.6.3.22
> 003c7000-003cb000 r--p 00070000 08:01 1579597    /usr/lib/libfreetype.so.6.3.22
> 003cb000-003cc000 rw-p 00074000 08:01 1579597    /usr/lib/libfreetype.so.6.3.22
> 003cc000-00415000 r-xp 00000000 08:01 1576057    /usr/lib/libmikmod.so.2.0.4
> 00415000-00416000 r--p 00048000 08:01 1576057    /usr/lib/libmikmod.so.2.0.4
> 00416000-00417000 rw-p 00049000 08:01 1576057    /usr/lib/libmikmod.so.2.0.4
> 00417000-00418000 rw-p 00000000 00:00 0 
> 00418000-00453000 r-xp 00000000 08:01 1575339    /usr/lib/libsmpeg-0.4.so.0.1.4
> 00453000-00454000 r--p 0003a000 08:01 1575339    /usr/lib/libsmpeg-0.4.so.0.1.4
> 00454000-00455000 rw-p 0003b000 08:01 1575339    /usr/lib/libsmpeg-0.4.so.0.1.4
> 00455000-00471000 rw-p 00000000 00:00 0 
> 00471000-00498000 r-xp 00000000 08:01 1576688    /usr/lib/libvorbis.so.0.4.3
> 00498000-00499000 r--p 00026000 08:01 1576688    /usr/lib/libvorbis.so.0.4.3
> 00499000-0049a000 rw-p 00027000 08:01 1576688    /usr/lib/libvorbis.so.0.4.3
> 0049a000-004ad000 r-xp 00000000 08:01 3017001    /lib/tls/i686/cmov/libnsl-2.11.1.so
> 004ad000-004ae000 r--p 00012000 08:01 3017001    /lib/tls/i686/cmov/libnsl-2.11.1.so
> 004ae000-004af000 rw-p 00013000 08:01 3017001    /lib/tls/i686/cmov/libnsl-2.11.1.so
> 004af000-004b1000 rw-p 00000000 00:00 0 
> 004b1000-004bb000 r-xp 00000000 08:01 3017136    /lib/tls/i686/cmov/libnss_files-2.11.1.so
> 004bb000-004bc000 r--p 00009000 08:01 3017136    /lib/tls/i686/cmov/libnss_files-2.11.1.so
> 004bc000-004bd000 rw-p 0000a000 08:01 3017136    /lib/tls/i686/cmov/libnss_files-2.11.1.so
> 004bd000-004c1000 r-xp 00000000 08:01 1575733    /usr/lib/libXdmcp.so.6.0.0
> 004c1000-004c2000 r--p 00003000 08:01 1575733    /usr/lib/libXdmcp.so.6.0.0
> 004c2000-004c3000 rw-p 00004000 08:01 1575733    /usr/lib/libXdmcp.so.6.0.0
> 004c3000-004d1000 r-xp 00000000 08:01 1575735    /usr/lib/libXext.so.6.4.0
> 004d1000-004d2000 r--p 0000d000 08:01 1575735    /usr/lib/libXext.so.6.4.0
> 004d2000-004d3000 rw-p 0000e000 08:01 1575735    /usr/lib/libXext.so.6.4.0
> 004d3000-004e8000 r-xp 00000000 08:01 1575687    /usr/lib/libICE.so.6.3.0
> 004e8000-004e9000 r--p 00014000 08:01 1575687    /usr/lib/libICE.so.6.3.0
> 004e9000-004ea000 rw-p 00015000 08:01 1575687    /usr/lib/libICE.so.6.3.0
> 004ea000-004ec000 rw-p 00000000 00:00 0 
> 004ec000-004ef000 r-xp 00000000 08:01 3024524    /lib/libuuid.so.1.3.0
> 004ef000-004f0000 r--p 00002000 08:01 3024524    /lib/libuuid.so.1.3.0
> 004f0000-004f1000 rw-p 00003000 08:01 3024524    /lib/libuuid.so.1.3.0
> 004f5000-004fc000 r-xp 00000000 08:01 1575716    /usr/lib/libSM.so.6.0.1
> 004fc000-004fd000 r--p 00006000 08:01 1575716    /usr/lib/libSM.so.6.0.1
> 004fd000-004fe000 rw-p 00007000 08:01 1575716    /usr/lib/libSM.so.6.0.1
> 00501000-0050d000 r-xp 00000000 08:01 1575743    /usr/lib/libXi.so.6.1.0
> 0050d000-0050e000 r--p 0000c000 08:01 1575743    /usr/lib/libXi.so.6.1.0
> 0050e000-0050f000 rw-p 0000d000 08:01 1575743    /usr/lib/libXi.so.6.1.0
> 0050f000-00516000 r-xp 00000000 08:01 3017231    /lib/libwrap.so.0.7.6
> 00516000-00517000 r--p 00006000 08:01 3017231    /lib/libwrap.so.0.7.6
> 00517000-00518000 rw-p 00007000 08:01 3017231    /lib/libwrap.so.0.7.6
> 00518000-0051d000 r-xp 00000000 08:01 1577067    /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
> 0051d000-0051e000 r--p 00004000 08:01 1577067    /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
> 0051e000-0051f000 rw-p 00005000 08:01 1577067    /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
> 0053d000-0053e000 r-xp 00000000 00:00 0          [vdso]
> 0053e000-00575000 r-xp 00000000 08:01 3015159    /lib/libdbus-1.so.3.4.0
> 00575000-00576000 r--p 00036000 08:01 3015159    /lib/libdbus-1.so.3.4.0
> 00576000-00577000 rw-p 00037000 08:01 3015159    /lib/libdbus-1.so.3.4.0
> 00588000-005e0000 r-xp 00000000 08:01 1574933    /usr/lib/libtiff.so.4.3.2
> 005e0000-005e2000 r--p 00057000 08:01 1574933    /usr/lib/libtiff.so.4.3.2
> 005e2000-005e3000 rw-p 00059000 08:01 1574933    /usr/lib/libtiff.so.4.3.2
> 005e3000-006cc000 r-xp 00000000 08:01 1576627    /usr/lib/libstdc++.so.6.0.13
> 006cc000-006cd000 ---p 000e9000 08:01 1576627    /usr/lib/libstdc++.so.6.0.13
> 006cd000-006d1000 r--p 000e9000 08:01 1576627    /usr/lib/libstdc++.so.6.0.13
> 006d1000-006d2000 rw-p 000ed000 08:01 1576627    /usr/lib/libstdc++.so.6.0.13
> 006d2000-006d9000 rw-p 00000000 00:00 0 
> 00710000-00734000 r-xp 00000000 08:01 3016995    /lib/tls/i686/cmov/libm-2.11.1.so
> 00734000-00735000 r--p 00023000 08:01 3016995    /lib/tls/i686/cmov/libm-2.11.1.so
> 00735000-00736000 rw-p 00024000 08:01 3016995    /lib/tls/i686/cmov/libm-2.11.1.so
> 0073b000-00741000 r-xp 00000000 08:01 3017111    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
> 00741000-00742000 r--p 00006000 08:01 3017111    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
> 00742000-00743000 rw-p 00007000 08:01 3017111    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
> 00783000-0078b000 r-xp 00000000 08:01 1575729    /usr/lib/libXcursor.so.1.0.2
> 0078b000-0078c000 r--p 00007000 08:01 1575729    /usr/lib/libXcursor.so.1.0.2
> 0078c000-0078d000 rw-p 00008000 08:01 1575729    /usr/lib/libXcursor.so.1.0.2
> 0079b000-007b6000 r-xp 00000000 08:01 3016340    /lib/ld-2.11.1.so
> 007b6000-007b7000 r--p 0001a000 08:01 3016340    /lib/ld-2.11.1.so
> 007b7000-007b8000 rw-p 0001b000 08:01 3016340    /lib/ld-2.11.1.so
> 
> ^C^C^C^C^CSegmentation fault
> mikolaj@bratek:~/repos/angband$


comment:2 Changed 8 years ago by magnate

Hmmm. I don't get a segfault, I get "Savefile is corrupted -- not enough bytes". Which keypress causes the crash?

comment:3 follow-up: Changed 8 years ago by mikon

Oh, sorry. The attached file is the panic savefile. The game hangs while producing it, so no wonder it's broken. I cannot attach the right one here, I get "The connection was reset", so I put it for a few days at http://www.mimuw.edu.pl/~mikon/1000.Mikolaj.

comment:4 in reply to: ↑ 3 Changed 8 years ago by magnate

Replying to mikon:

Oh, sorry. The attached file is the panic savefile. The game hangs while producing it, so no wonder it's broken. I cannot attach the right one here, I get "The connection was reset", so I put it for a few days at http://www.mimuw.edu.pl/~mikon/1000.Mikolaj.

Ok, I have successfully downloaded your savefile, and it seems to work fine in my build. How do you get the crash? Which sequence of moves or commands?

comment:5 Changed 8 years ago by mikon

  • Resolution set to worksforme
  • Status changed from new to closed

It was crashing when exiting with X. But now I've done 'make clean; make' and it does not crash again.

I guess rebuilding is broken. I was using the makefile created with "./configure --disable-curses --disable-x11 --enable-sdl --with-no-install". I pulled first time more than a week ago, compiled, pulled again a week later, did 'make' and it compiled only some files. It worked OK, except for exiting from the game.

Thank for your help. Closing.

Note: See TracTickets for help on using tickets.