[1.0.1] Frequent but interrmittent crash, Linux

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

[1.0.1] Frequent but interrmittent crash, Linux

#1 Post by greycat »

Damned if I can figure this one out.

Home computer is Debian 6.0 amd64. Self-compiled from svn (6556) with SDL2 libraries from Hg. Rolled up a halfling marauder, and I can't even explore half the first level without it crashing. Tried many, many times. Usually the crash is right after opening inventory, or right after closing inventory, but sometimes I can open and close it without any problems. It's frustratingly inconsistent. The only consistency is that it happens a lot.
[LOG] Wufu wears: #00FF80##UID:1576:0#savior's copper ring of tenacity#LAST#.
[LOG]
[LOG] Resting starts...
[HEALING] 1564 Wufu for 0
[LOG] Rested for 0 turns (stop reason: all resources and life at maximum).
*** glibc detected *** ./t-engine: free(): invalid next size (fast): 0x00000000030aa170 ***
======= Backtrace: =========
/lib/libc.so.6(+0x71e16)[0x7fdf6f323e16]
/lib/libc.so.6(cfree+0x6c)[0x7fdf6f328b8c]
/usr/lib/libX11.so.6(XFree+0x9)[0x7fdf6e4e4ec9]
/usr/lib/libX11.so.6(_XFreeEventCookies+0x35)[0x7fdf6e4e4f15]
/usr/lib/libX11.so.6(XNextEvent+0x22)[0x7fdf6e4d3d82]
/usr/local/lib/libSDL2-2.0.so.0(+0xb0f8c)[0x7fdf70a90f8c]
/usr/local/lib/libSDL2-2.0.so.0(SDL_PumpEvents+0x17)[0x7fdf70a17bf7]
/usr/local/lib/libSDL2-2.0.so.0(SDL_WaitEventTimeout+0x2d)[0x7fdf70a1812d]
./t-engine[0x40f1a7]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fdf6f2d0c8d]
./t-engine[0x408449]
======= Memory map: ========
There's a core file, but it's useless. All the stack entries are question marks. I tried running t-engine under gdb, but it's the same result -- a stack backtrace full of question marks.

I tried reverting the Hg versions of SDL, SDL_image and SDL_ttf to the versions that I used in 1.0, but that didn't change anything. I still get the same crashes.

I can't even think of anything else to try.

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: [1.0.1] Frequent but interrmittent crash, Linux

#2 Post by greycat »

(For the record: the work computer is Debian testing [pre 7.0] amd64, but with very very different hardware. ToME 1.0.1 compiled exactly the same way runs without problems on that machine.)

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [1.0.1] Frequent but interrmittent crash, Linux

#3 Post by darkgod »

I got the same problem on my old computer, older hg versions work (the ones before the change to have sdl_rwops have a size parameter for example).
I believe it's a problem between sdl, the video driver and the kernel.
Which driver & kernel you got ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: [1.0.1] Frequent but interrmittent crash, Linux

#4 Post by greycat »

Last time we thought it was an SDL problem it turned out to be a hardware failure in the previous work machine. Which has me worried now....

Anyway, the home computer (the one that's giving the glibc free errors) has:

Debian 6.0.7
Linux 2.6.32-5-amd64 Debian version 2.6.32-48squeeze1
AMD Athlon(tm) II 170u Processor
ATI Technologies Inc 760G [Radeon 3000]
(II) RADEON: Driver for ATI Radeon chipsets:
xserver-xorg-video-radeon Debian version 1:6.13.1-2+squeeze1
xserver-xorg Debian version 1:7.5+8+squeeze1

And from dmesg:
[ 4.662142] [drm] Initialized radeon 2.0.0 20080528 for 0000:01:05.0 on minor 0

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [1.0.1] Frequent but interrmittent crash, Linux

#5 Post by darkgod »

Hum I had the same thing with the same kind of kernel, was an nvidia card however
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: [1.0.1] Frequent but interrmittent crash, Linux

#6 Post by greycat »

I upgraded the home computer to Debian wheezy (pre-7.0 testing). Linux 3.2.0-4-amd64 Debian package 3.2.39-2, and whatever X.org DRI DRM stuff thingies.

Same hardware. No crashes so far.

The game does run rather slowly though. Maybe I should buy a video card some day. Although it seems like sacrilege to need a video card for a roguelike.

Post Reply