Ticket #15515: gdb-touche-demo-exit-crash.txt

File gdb-touche-demo-exit-crash.txt, 14.8 KB (added by dwatteau, 4 months ago)

Full GDB log when the crash happens

Line 
1WARNING: SDL mixer output buffer size: 512 differs from desired: 1024!
2User picked target 'touche-demo' (engine ID 'touche', game ID 'touche')...
3Running Touché: The Adventures of the Fifth Musketeer (Demo/DOS/English)
4touche.dat: ddaed436445b2e77294ed19e8ae4aa2c, 8720683 bytes.
5[New Thread 0xb10ff3d0 (LWP 1224)]
6scummvm: common/file.cpp:141: virtual uint32 Common::File::read(void*, uint32): Assertion `_handle' failed.
7
8Program received signal SIGABRT, Aborted.
9[Switching to Thread 0xb22603d0 (LWP 1190)]
100x0f36bbe8 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
1156 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
12
13(gdb) bt
14#0 0x0f36bbe8 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
15#1 0x0f36d7d0 in __GI_abort () at abort.c:89
16#2 0x0f363108 in __assert_fail_base (fmt=0xf491738 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
17 assertion=assertion@entry=0x15cf5df0 "_handle", file=file@entry=0x15cf5d34 "common/file.cpp",
18 line=line@entry=141,
19 function=function@entry=0x15cf6044 <Common::File::read(void*, unsigned int)::__PRETTY_FUNCTION__> "virtual uint32 Common::File::read(void*, uint32)") at assert.c:92
20#3 0x0f3631d4 in __GI___assert_fail (assertion=0x15cf5df0 "_handle",
21 file=0x15cf5d34 "common/file.cpp", line=141,
22 function=0x15cf6044 <Common::File::read(void*, unsigned int)::__PRETTY_FUNCTION__> "virtual uint32 Common::File::read(void*, uint32)") at assert.c:101
23#4 0x14a67b3c in Common::File::read (this=0x16b087e0, ptr=0x16f9d42c, len=512)
24 at common/file.cpp:141
25#5 0x149e67dc in Audio::VocStream::fillBuffer (this=0x16f9d3f8, maxSamples=512)
26 at audio/decoders/voc.cpp:160
27#6 0x149e6348 in Audio::VocStream::readBuffer (this=0x16f9d3f8, buffer=0x16fa719c, numSamples=512)
28 at audio/decoders/voc.cpp:91
29#7 0x149cf358 in Audio::RateConverter_Impl<false, true, false>::interpolateConvert (
30 this=0x16fa7190, input=..., outBuffer=0x16c57ed0, numSamples=512, volL=192, volR=192)
31 at audio/rate.cpp:218
32#8 0x149cdd90 in Audio::RateConverter_Impl<false, true, false>::convert (this=0x16fa7190,
33 input=..., outBuffer=0x16c57ed0, numSamples=512, volL=192, volR=192) at audio/rate.cpp:295
34#9 0x149c841c in Audio::Channel::mix (this=0x16c670c0, data=0x16c57ed0, len=512)
35 at audio/mixer.cpp:719
36#10 0x149c5c28 in Audio::MixerImpl::mixCallback (this=0x16c5a480, samples=0x16c57ed0 "", len=512)
37 at audio/mixer.cpp:331
38#11 0x141534a4 in SdlMixerManager::callbackHandler (this=0x16c56120, samples=0x16c57ed0 "",
39 len=2048) at backends/mixer/sdl/sdl-mixer.cpp:203
40#12 0x14153538 in SdlMixerManager::sdlCallback (this_=0x16c56120, samples=0x16c57ed0 "", len=2048)
41 at backends/mixer/sdl/sdl-mixer.cpp:210
42#13 0x0ff269cc in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
43#14 0x0ff311e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
44#15 0x0ff7e0e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
45#16 0x0f745c3c in start_thread (arg=0xb22603d0) at pthread_create.c:311
46
47(gdb) bt full
48#0 0x0f36bbe8 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
49 r4 = 1190
50 r7 = 255246020
51 r12 = 255252432
52 arg2 = 1190
53 r5 = 6
54 r8 = 53298
55 r10 = 1
56 arg3 = 6
57 r0 = 250
58 r3 = 0
59 r6 = 0
60 r9 = 0
61 r11 = 0
62 arg1 = 0
63 sc_err = <optimized out>
64 sc_ret = <optimized out>
65 pd = 0xb22603d0
66 pid = 0
67 selftid = 1190
68#1 0x0f36d7d0 in __GI_abort () at abort.c:89
69 save_stage = 2
70 act = {__sigaction_handler = {sa_handler = 0xb19005f4, sa_sigaction = 0xb19005f4},
71 sa_mask = {__val = {0, 0, 0, 0, 0, 0, 0, 2988833228, 196, 0, 3087003672, 1262832304,
72 2988833232, 2988833408, 4294967295, 0, 4, 1124137344, 603997224, 382051688,
73 380013112, 267903168, 382063012, 8388608, 22, 2988835888, 0, 7, 259424708, 382034752,
74 382034208, 336934080}}, sa_flags = 365911536,
75 sa_restorer = 0xf4bf800 <_IO_2_1_stderr_>}
76 sigs = {__val = {32, 0 <repeats 31 times>}}
77#2 0x0f363108 in __assert_fail_base (fmt=0xf491738 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
78 assertion=assertion@entry=0x15cf5df0 "_handle", file=file@entry=0x15cf5d34 "common/file.cpp",
79 line=line@entry=141,
80 function=function@entry=0x15cf6044 <Common::File::read(void*, unsigned int)::__PRETTY_FUNCTION__> "virtual uint32 Common::File::read(void*, uint32)") at assert.c:92
81 str = 0xb19005f8 "scummvm: common/file.cpp:141: virtual uint32 Common::File::read(void*, uint32): Assertion `_handle' failed.\n"
82 total = 4096
83#3 0x0f3631d4 in __GI___assert_fail (assertion=0x15cf5df0 "_handle",
84 file=0x15cf5d34 "common/file.cpp", line=141,
85 function=0x15cf6044 <Common::File::read(void*, unsigned int)::__PRETTY_FUNCTION__> "virtual uint32 Common::File::read(void*, uint32)") at assert.c:101
86No locals.
87#4 0x14a67b3c in Common::File::read (this=0x16b087e0, ptr=0x16f9d42c, len=512)
88 at common/file.cpp:141
89 __PRETTY_FUNCTION__ = "virtual uint32 Common::File::read(void*, uint32)"
90#5 0x149e67dc in Audio::VocStream::fillBuffer (this=0x16f9d3f8, maxSamples=512)
91 at audio/decoders/voc.cpp:160
92 len = 512
93 bytesRead = 0
94 samplesRead = 7
95 bufferedSamples = 0
96 dst = 0x16f9d42c "\214\217\177y\210\216\206~\201\210\204\204\207\205\204\207\204\201\205\207\201{\200\213\214\177u{\204\201z|\177{wuz~po{zqmv|tko\177~knxrpzywwmy\203{umv\210\206{z~x\177\205\202~}\203\206\205\202}\200\207\210\206\202{\177\206\203\206\213\200}\212\216\202y\202\207\200\202\204\200z\202\210|w\201\202z|\201~z{~\200~~|\177\201{y{~\200\201\202\200x{\204\200xz\177\204\202\201~z\177\204\203\177}\177\202\202\201\201\200\177~\202\206\177{}z~\204\201\202\200\177\200{~\202|z\200\177\200\202\202\201yu\200\212\201{{||vy\177\203}tvw"...
97#6 0x149e6348 in Audio::VocStream::readBuffer (this=0x16f9d3f8, buffer=0x16fa719c, numSamples=512)
98 at audio/decoders/voc.cpp:91
99 len = 382039176
100 src = 0xb225fb50 "\026ņ\320\016]\267\070\017-\371\020\026\305a\270\262%\373\200\017*\t\224\026\372q\220\026\371\323\370\026\305", <incomplete sequence \320>
101 samplesLeft = 512
102#7 0x149cf358 in Audio::RateConverter_Impl<false, true, false>::interpolateConvert (
103 this=0x16fa7190, input=..., outBuffer=0x16c57ed0, numSamples=512, volL=192, volR=192)
104 at audio/rate.cpp:218
105 outPos_inc = 16384
106 outStart = 0x16c57ed0
107 outEnd = 0x16c586d0
108#8 0x149cdd90 in Audio::RateConverter_Impl<false, true, false>::convert (this=0x16fa7190,
109 input=..., outBuffer=0x16c57ed0, numSamples=512, volL=192, volR=192) at audio/rate.cpp:295
110 __PRETTY_FUNCTION__ = "int Audio::RateConverter_Impl<inStereo, outStereo, reverseStereo>::convert(Audio::AudioStream&, Audio::st_sample_t*, Audio::st_size_t, Audio::st_volume_t, Audio::st_volume_t) [with bool inStereo = fal"...
111#9 0x149c841c in Audio::Channel::mix (this=0x16c670c0, data=0x16c57ed0, len=512)
112 at audio/mixer.cpp:719
113 __PRETTY_FUNCTION__ = "int Audio::Channel::mix(int16*, uint)"
114 res = 0
115#10 0x149c5c28 in Audio::MixerImpl::mixCallback (this=0x16c5a480, samples=0x16c57ed0 "", len=512)
116 at audio/mixer.cpp:331
117 i = 1
118 __PRETTY_FUNCTION__ = "int Audio::MixerImpl::mixCallback(byte*, uint)"
119 lock = {_mutex = 0x16a68958, _mutexName = 0x0}
120 buf = 0x16c57ed0
121 res = 0
122 tmp = 254418748
123#11 0x141534a4 in SdlMixerManager::callbackHandler (this=0x16c56120, samples=0x16c57ed0 "",
124 len=2048) at backends/mixer/sdl/sdl-mixer.cpp:203
125 __PRETTY_FUNCTION__ = "virtual void SdlMixerManager::callbackHandler(byte*, int)"
126#12 0x14153538 in SdlMixerManager::sdlCallback (this_=0x16c56120, samples=0x16c57ed0 "", len=2048)
127 at backends/mixer/sdl/sdl-mixer.cpp:210
128 manager = 0x16c56120
129 __PRETTY_FUNCTION__ = "static void SdlMixerManager::sdlCallback(void*, byte*, int)"
130#13 0x0ff269cc in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
131No symbol table info available.
132#14 0x0ff311e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
133No symbol table info available.
134#15 0x0ff7e0e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
135No symbol table info available.
136#16 0x0f745c3c in start_thread (arg=0xb22603d0) at pthread_create.c:311
137 pd = 0xb22603d0
138 unwind_buf = {cancel_jmp_buf = {{jmp_buf = {267753120, 267752992, 267752032, 267752544,
139 267752768, 267544352, 267544464, 267752192, 44100, -1877999104, 33554432, 2048,
140 336934080, 382034208, 0 <repeats 22 times>, 1, 0, 1, 382060952, 382034888,
141 382063008, -1306131504, 382034536, 267752096, 0, 1920298543, 33, 1, 1, 1190, 1, 1,
142 0, 0, 73, 2067150645, 1698182245, 1684300339, 926168674, 878862900, 909665590,
143 1667314744, 878850104, 863860078, 1769486895, 1920298543, 1970496882, 791752752,
144 808415349, 1819501871, 1851880553, 1986330729, 49, 0, 0, 0, 0, 0, 0, 381712992, 0,
145 0, -16777216, 48, 17, 1835361385, 1630432865, 1835335696, 2057, 0, 65307, 49, 33,
146 50, 64, 51, 35, 52, 36, 53, 37, 54, 94, 55, 38, 56, 42, 57, 40, 48, 41},
147 mask_was_saved = 45}}, priv = {pad = {0xff08, 0xff08, 0xff09, 0xfe20}, data = {
148 prev = 0xff08, cleanup = 0xff08, canceltype = 65289}}}
149 not_first_call = <optimized out>
150 pagesize_m1 = <optimized out>
151 sp = <optimized out>
152 freesize = <optimized out>
153 __PRETTY_FUNCTION__ = "start_thread"
154
155(gdb) thread apply all bt
156Thread 6 (Thread 0xb10ff3d0 (LWP 1224)):
157#0 clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:82
158#1 0x0f744a8c in do_clone (pd=0xb10ff3d0, attr=0x3d0f00, stackaddr=<optimized out>,
159 stopped=<optimized out>, fct=0xf745b50 <start_thread>, clone_flags=4001536)
160 at ../nptl/sysdeps/pthread/createthread.c:75
161#2 0x00000000 in ?? ()
162
163Thread 5 (Thread 0xb18ff3d0 (LWP 1191)):
164#0 0x0f74fb10 in nanosleep () at ../sysdeps/unix/syscall-template.S:81
165#1 0x0ff8157c in SDL_Delay () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
166#2 0x0ff8163c in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
167#3 0x0ff311e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
168#4 0x0ff7e0e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
169#5 0x0f745c3c in start_thread (arg=0xb18ff3d0) at pthread_create.c:311
170
171Thread 4 (Thread 0xb22603d0 (LWP 1190)):
172#0 0x0f36bbe8 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
173#1 0x0f36d7d0 in __GI_abort () at abort.c:89
174#2 0x0f363108 in __assert_fail_base (fmt=0xf491738 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
175 assertion=assertion@entry=0x15cf5df0 "_handle", file=file@entry=0x15cf5d34 "common/file.cpp",
176 line=line@entry=141,
177 function=function@entry=0x15cf6044 <Common::File::read(void*, unsigned int)::__PRETTY_FUNCTION__> "virtual uint32 Common::File::read(void*, uint32)") at assert.c:92
178#3 0x0f3631d4 in __GI___assert_fail (assertion=0x15cf5df0 "_handle",
179 file=0x15cf5d34 "common/file.cpp", line=141,
180 function=0x15cf6044 <Common::File::read(void*, unsigned int)::__PRETTY_FUNCTION__> "virtual uint32 Common::File::read(void*, uint32)") at assert.c:101
181#4 0x14a67b3c in Common::File::read (this=0x16b087e0, ptr=0x16f9d42c, len=512)
182 at common/file.cpp:141
183#5 0x149e67dc in Audio::VocStream::fillBuffer (this=0x16f9d3f8, maxSamples=512)
184 at audio/decoders/voc.cpp:160
185#6 0x149e6348 in Audio::VocStream::readBuffer (this=0x16f9d3f8, buffer=0x16fa719c, numSamples=512)
186 at audio/decoders/voc.cpp:91
187#7 0x149cf358 in Audio::RateConverter_Impl<false, true, false>::interpolateConvert (
188 this=0x16fa7190, input=..., outBuffer=0x16c57ed0, numSamples=512, volL=192, volR=192)
189 at audio/rate.cpp:218
190#8 0x149cdd90 in Audio::RateConverter_Impl<false, true, false>::convert (this=0x16fa7190,
191 input=..., outBuffer=0x16c57ed0, numSamples=512, volL=192, volR=192) at audio/rate.cpp:295
192#9 0x149c841c in Audio::Channel::mix (this=0x16c670c0, data=0x16c57ed0, len=512)
193 at audio/mixer.cpp:719
194#10 0x149c5c28 in Audio::MixerImpl::mixCallback (this=0x16c5a480, samples=0x16c57ed0 "", len=512)
195 at audio/mixer.cpp:331
196#11 0x141534a4 in SdlMixerManager::callbackHandler (this=0x16c56120, samples=0x16c57ed0 "",
197 len=2048) at backends/mixer/sdl/sdl-mixer.cpp:203
198#12 0x14153538 in SdlMixerManager::sdlCallback (this_=0x16c56120, samples=0x16c57ed0 "", len=2048)
199 at backends/mixer/sdl/sdl-mixer.cpp:210
200#13 0x0ff269cc in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
201#14 0x0ff311e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
202#15 0x0ff7e0e4 in ?? () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
203#16 0x0f745c3c in start_thread (arg=0xb22603d0) at pthread_create.c:311
204
205Thread 2 (Thread 0xb7d0b3d0 (LWP 1187)):
206#0 0x0f4187a8 in read () at ../sysdeps/unix/syscall-template.S:81
207#1 0x0f3b590c in _IO_new_file_underflow (fp=0x16a3c400) at fileops.c:605
208#2 0x0f3b69d4 in __GI___underflow (fp=fp@entry=0x16a3c400) at genops.c:356
209#3 0x0f3a6508 in _IO_getdelim (lineptr=0xb7d0ac94, n=0xb7d0ac98, delimiter=10, fp=0x16a3c400)
210 at iogetdelim.c:77
211#4 0x0f77b8f4 in ?? () from /usr/lib/powerpc-linux-gnu/libspeechd.so.2
212#5 0x0f77bc08 in ?? () from /usr/lib/powerpc-linux-gnu/libspeechd.so.2
213#6 0x0f745c3c in start_thread (arg=0xb7d0b3d0) at pthread_create.c:311
214
215Thread 1 (Thread 0xb7fb1230 (LWP 1164)):
216#0 0x0f74ebb8 in __lll_lock_wait (futex=futex@entry=0x16c5a540, private=0)
217 at ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:46
218#1 0x0f74863c in __GI___pthread_mutex_lock (mutex=0x16c5a540) at pthread_mutex_lock.c:114
219#2 0x0ff7e9cc in SDL_mutexP () from /usr/lib/powerpc-linux-gnu/libSDL-1.2.so.0
220#3 0x14153c7c in SdlMutexInternal::lock (this=0x16a68958) at backends/mutex/sdl/sdl-mutex.cpp:37
221#4 0x14a763c0 in Common::StackLock::lock (this=0xbfffd3fc) at common/mutex.cpp:67
222#5 0x14a762f8 in Common::StackLock::StackLock (this=0xbfffd3fc, mutex=..., mutexName=0x0)
223 at common/mutex.cpp:56
224#6 0x149c5cc0 in Audio::MixerImpl::stopAll (this=0x16c5a480) at audio/mixer.cpp:342
225#7 0x1401e218 in Engine::~Engine (this=0x16b03780, __in_chrg=<optimized out>)
226 at engines/engine.cpp:211
227#8 0x136caa44 in Touche::ToucheEngine::~ToucheEngine (this=0x16b03780, __in_chrg=<optimized out>)
228 at engines/touche/touche.cpp:185
229#9 0x136caa94 in Touche::ToucheEngine::~ToucheEngine (this=0x16b03780, __in_chrg=<optimized out>)
230 at engines/touche/touche.cpp:188
231#10 0x106b95e0 in AdvancedMetaEngine<ADGameDescription>::deleteInstance (this=<optimized out>,
232 engine=<optimized out>, gameDescriptor=..., meDescriptor=0x16c01998)
233 at ./engines/advancedDetector.h:722
234#11 0x10040478 in runGame (enginePlugin=0x16994058, system=..., game=..., meDescriptor=0x16c01998)
235 at base/main.cpp:324
236#12 0x10042604 in scummvm_main (argc=1, argv=0xbffff444) at base/main.cpp:796
237#13 0x1003d37c in main (argc=1, argv=0xbffff444) at backends/platform/sdl/posix/posix-main.cpp:44