Ticket #1592: ft.txt

File ft.txt, 16.1 KB (added by Kirben, 19 years ago)

Valgrind log

Line 
1kirben@mainframe:~/scummvm$ valgrind --db-attach=yes --num-callers=30 ./scummvm -d0 -b550 ft
2==2474== Memcheck, a memory error detector for x86-linux.
3==2474== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
4==2474== Using valgrind-2.4.0, a program supervision framework for x86-linux.
5==2474== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
6==2474== For more details, rerun with: -v
7==2474==
8Debuglevel (from command line): 0
9audio_alsa: no cards found!
10==2511== Invalid free() / delete / delete[]
11==2511== at 0x1B902A8D: free (vg_replace_malloc.c:152)
12==2511== by 0x1BD264DB: free_mem (in /lib/libc-2.3.2.so)
13==2511== by 0x1BD26248: __libc_freeres (in /lib/libc-2.3.2.so)
14==2511== by 0x1B8FC9F7: _vgw(float, long double,...)(...)(long double,...)(short) (vg_intercept.c:55)
15==2511== by 0x1BF38CCC: esd_open_sound (in /usr/lib/libesd.so.0.2.34)
16==2511== by 0x1BA5F740: (within /usr/lib/libSDL-1.2.so.0.7.0)
17==2511== by 0x1BA5A692: SDL_AudioInit (in /usr/lib/libSDL-1.2.so.0.7.0)
18==2511== by 0x1BA594DA: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0)
19==2511== by 0x1BA59556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0)
20==2511== by 0x80509D7: OSystem_SDL::initBackend() (sdl.cpp:54)
21==2511== by 0x8058F4B: main (main.cpp:393)
22==2511== Address 0x1BAE1F00 is not stack'd, malloc'd or (recently) free'd
23==2511==
24==2511== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
25==2511==
26==2511== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 82 from 3)
27==2511== malloc/free: in use at exit: 352361 bytes in 8935 blocks.
28==2511== malloc/free: 12676 allocs, 3742 frees, 718135 bytes allocated.
29==2511== For counts of detected errors, rerun with: -v
30==2511== searching for pointers to 8935 not-freed blocks.
31==2511== checked 2433420 bytes.
32==2511==
33==2511== LEAK SUMMARY:
34==2511== definitely lost: 59 bytes in 2 blocks.
35==2511== possibly lost: 18336 bytes in 302 blocks.
36==2511== still reachable: 333966 bytes in 8631 blocks.
37==2511== suppressed: 0 bytes in 0 blocks.
38==2511== Use --leak-check=full to see details of leaked memory.
39==2474== Syscall param write(buf) points to uninitialised byte(s)
40==2474== at 0x1BAEEDFB: write (in /lib/libpthread-0.10.so)
41==2474== by 0x1BAEAAED: pthread_create@@GLIBC_2.1 (in /lib/libpthread-0.10.so)
42==2474== by 0x1BAA3666: SDL_SYS_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
43==2474== by 0x1BAA3492: SDL_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
44==2474== by 0x1BAA4642: SDL_SYS_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
45==2474== by 0x1BAA3FC5: SDL_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
46==2474== by 0x1BA59494: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0)
47==2474== by 0x1BA59556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0)
48==2474== by 0x80509D7: OSystem_SDL::initBackend() (sdl.cpp:54)
49==2474== by 0x8058F4B: main (main.cpp:393)
50==2474== Address 0x52BFE590 is on thread 1's stack
51==2474==
52==2474== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
53==2474==
54==2474== Syscall param write(buf) points to uninitialised byte(s)
55==2474== at 0x1BAEEDFB: write (in /lib/libpthread-0.10.so)
56==2474== by 0x1BAA3666: SDL_SYS_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
57==2474== by 0x1BAA3492: SDL_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
58==2474== by 0x1BAA4642: SDL_SYS_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
59==2474== by 0x1BAA3FC5: SDL_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
60==2474== by 0x1BA59494: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0)
61==2474== by 0x1BA59556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0)
62==2474== by 0x80509D7: OSystem_SDL::initBackend() (sdl.cpp:54)
63==2474== by 0x8058F4B: main (main.cpp:393)
64==2474== Address 0x52BFE68C is on thread 1's stack
65==2474==
66==2474== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
67==2474== Warning: bad signal number 0 in sigaction()
68Looking for ft
69Trying to start game 'Full Throttle'
70WARNING: Sound mixer initialization failed!
71DEBUG: room number in boot = 550
72DEBUG: sputm-debug = 1
73DEBUG: exit room 1
74DEBUG: exit room 1
75DEBUG: build-shadow-palettes
76DEBUG: exit room 1
77DEBUG: build-shadow-palettes
78DEBUG: exit room 1
79DEBUG: build-shadow-palettes
80DEBUG: ben has mace
81DEBUG: ben has 2x4
82DEBUG: ben has wrench
83==2474==
84==2474== Conditional jump or move depends on uninitialised value(s)
85==2474== at 0x1BA8D33B: X11_SetKeyboardState (in /usr/lib/libSDL-1.2.so.0.7.0)
86==2474== by 0x1BA8C611: (within /usr/lib/libSDL-1.2.so.0.7.0)
87==2474== by 0x1BA8C8AD: X11_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.0)
88==2474== by 0x1BA9DE82: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.0)
89==2474== by 0x1BA9DEC8: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.7.0)
90==2474== by 0x804BDC2: OSystem_SDL::pollEvent(OSystem::Event&) (events.cpp:186)
91==2474== by 0x80DC9F8: Scumm::ScummEngine::parseEvents() (input.cpp:52)
92==2474== by 0x80A80D9: Scumm::SmushPlayer::play(char const*, int, int) (smush_player.cpp:1233)
93==2474== by 0x8094DC8: Scumm::Insane::startVideo(char const*, int, int, int, int, unsigned char*, int) (insane.cpp:618)
94==2474== by 0x809F5D2: Scumm::Insane::runScene(int) (insane_scenes.cpp:88)
95==2474== by 0x81269C7: Scumm::ScummEngine_v6::o6_kernelSetFunctions() (script_v6.cpp:2520)
96==2474== by 0x8120A62: Scumm::ScummEngine_v6::executeOpcode(unsigned char) (script_v6.cpp:379)
97==2474== by 0x8112D47: Scumm::ScummEngine::executeScript() (script.cpp:457)
98==2474== by 0x8112674: Scumm::ScummEngine::runScriptNested(int) (script.cpp:332)
99==2474== by 0x8111DFE: Scumm::ScummEngine::runScript(int, bool, bool, int*, int) (script.cpp:85)
100==2474== by 0x81220B9: Scumm::ScummEngine_v6::o6_jumpToScript() (script_v6.cpp:858)
101==2474== by 0x8120A62: Scumm::ScummEngine_v6::executeOpcode(unsigned char) (script_v6.cpp:379)
102==2474== by 0x8112D47: Scumm::ScummEngine::executeScript() (script.cpp:457)
103==2474== by 0x8112674: Scumm::ScummEngine::runScriptNested(int) (script.cpp:332)
104==2474== by 0x8111DFE: Scumm::ScummEngine::runScript(int, bool, bool, int*, int) (script.cpp:85)
105==2474== by 0x81220B9: Scumm::ScummEngine_v6::o6_jumpToScript() (script_v6.cpp:858)
106==2474== by 0x8120A62: Scumm::ScummEngine_v6::executeOpcode(unsigned char) (script_v6.cpp:379)
107==2474== by 0x8112D47: Scumm::ScummEngine::executeScript() (script.cpp:457)
108==2474== by 0x8112674: Scumm::ScummEngine::runScriptNested(int) (script.cpp:332)
109==2474== by 0x8111DFE: Scumm::ScummEngine::runScript(int, bool, bool, int*, int) (script.cpp:85)
110==2474== by 0x8063C64: Scumm::ScummEngine::go() (scumm.cpp:1853)
111==2474== by 0x8058B7F: runGame(GameDetector&, OSystem&) (main.cpp:282)
112==2474== by 0x8059081: main (main.cpp:419)
113==2474==
114==2474== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
115==2530==
116==2530== Thread 3:
117==2530== Invalid read of size 4
118==2530== at 0x80AA218: Scumm::SmushMixer::stop() (smush_mixer.cpp:151)
119==2530== by 0x80A7B4D: Scumm::SmushPlayer::seekSan(char const*, int, int) (smush_player.cpp:1146)
120==2530== by 0x809734D: Scumm::Insane::smush_setupSanFile(char const*, int, int) (insane.cpp:1455)
121==2530== by 0x80972A9: Scumm::Insane::smush_setupSanFromStart(char const*, int, int, int, int) (insane.cpp:1440)
122==2530== by 0x80959F9: Scumm::Insane::queueSceneSwitch(int, unsigned char*, char const*, int, int, int, int) (insane.cpp:850)
123==2530== by 0x81494B2: Scumm::Insane::mineChooseRoad(int) (insane_ben.cpp:308)
124==2530== by 0x8148D13: Scumm::Insane::turnBen(bool) (insane_ben.cpp:115)
125==2530== by 0x80A2E86: Scumm::Insane::postCase3(unsigned char*, int, int, int, int, int) (insane_scenes.cpp:1138)
126==2530== by 0x80A2442: Scumm::Insane::procPostRendering(unsigned char*, int, int, int, int, int) (insane_scenes.cpp:902)
127==2530== by 0x80A6D5F: Scumm::SmushPlayer::handleFrame(Scumm::Chunk&) (smush_player.cpp:945)
128==2530== by 0x80A77A8: Scumm::SmushPlayer::parseNextFrame() (smush_player.cpp:1044)
129==2530== by 0x80A4168: Scumm::SmushPlayer::timerCallback(void*) (smush_player.cpp:220)
130==2530== by 0x828CFB7: Timer::handler(int) (timer.cpp:89)
131==2530== by 0x828CE13: Timer::timer_handler(int) (timer.cpp:69)
132==2530== by 0x1BAA437E: (within /usr/lib/libSDL-1.2.so.0.7.0)
133==2530== by 0x1BAA40FD: SDL_ThreadedTimerCheck (in /usr/lib/libSDL-1.2.so.0.7.0)
134==2530== by 0x1BAA4609: (within /usr/lib/libSDL-1.2.so.0.7.0)
135==2530== by 0x1BAA33EA: SDL_RunThread (in /usr/lib/libSDL-1.2.so.0.7.0)
136==2530== by 0x1BAA35FE: (within /usr/lib/libSDL-1.2.so.0.7.0)
137==2530== by 0x1BAE8CC3: pthread_start_thread (in /lib/libpthread-0.10.so)
138==2530== by 0x1BCF4BE6: clone (in /lib/libc-2.3.2.so)
139==2530== Address 0x0 is not stack'd, malloc'd or (recently) free'd
140==2530==
141==2530== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y
142starting debugger
143==2530== starting debugger with cmd: /usr/bin/gdb -nw /proc/2531/fd/1015 2531
144GNU gdb 6.1.1
145Copyright 2004 Free Software Foundation, Inc.
146GDB is free software, covered by the GNU General Public License, and you are
147welcome to change it and/or distribute copies of it under certain conditions.
148Type "show copying" to see the conditions.
149There is absolutely no warranty for GDB. Type "show warranty" for details.
150This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1".
151
152Attaching to program: /proc/2531/fd/1015, process 2531
153Reading symbols from /usr/local/lib/valgrind/vg_inject.so...done.
154Loaded symbols for /usr/local/lib/valgrind/vg_inject.so
155Reading symbols from /usr/local/lib/valgrind/vgpreload_memcheck.so...done.
156Loaded symbols for /usr/local/lib/valgrind/vgpreload_memcheck.so
157Reading symbols from /usr/lib/libvorbisfile.so.3...done.
158Loaded symbols for /usr/lib/libvorbisfile.so.3
159Reading symbols from /usr/lib/libvorbis.so.0...done.
160Loaded symbols for /usr/lib/libvorbis.so.0
161Reading symbols from /usr/lib/libogg.so.0...done.
162Loaded symbols for /usr/lib/libogg.so.0
163Reading symbols from /usr/lib/libFLAC.so.4...done.
164Loaded symbols for /usr/lib/libFLAC.so.4
165Reading symbols from /usr/lib/libmad.so.0...done.
166Loaded symbols for /usr/lib/libmad.so.0
167Reading symbols from /usr/lib/libasound.so.2...done.
168Loaded symbols for /usr/lib/libasound.so.2
169Reading symbols from /usr/lib/libz.so.1...done.
170Loaded symbols for /usr/lib/libz.so.1
171Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
172Loaded symbols for /usr/lib/libSDL-1.2.so.0
173Reading symbols from /lib/libpthread.so.0...done.
174[Thread debugging using libthread_db enabled]
175[New Thread 16384 (LWP 2474)]
176[New Thread 32769 (LWP 2529)]
177[New Thread 16386 (LWP 2530)]
178Loaded symbols for /lib/libpthread.so.0
179Reading symbols from /usr/lib/libstdc++.so.5...done.
180Loaded symbols for /usr/lib/libstdc++.so.5
181Reading symbols from /lib/libm.so.6...done.
182Loaded symbols for /lib/libm.so.6
183Reading symbols from /usr/lib/libgcc_s.so.1...done.
184Loaded symbols for /usr/lib/libgcc_s.so.1
185Reading symbols from /lib/libc.so.6...done.
186Loaded symbols for /lib/libc.so.6
187Reading symbols from /lib/libdl.so.2...done.
188Loaded symbols for /lib/libdl.so.2
189Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
190Loaded symbols for /usr/X11R6/lib/libX11.so.6
191Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
192Loaded symbols for /usr/X11R6/lib/libXext.so.6
193Reading symbols from /lib/ld-linux.so.2...done.
194Loaded symbols for /lib/ld-linux.so.2
195Reading symbols from /lib/libnss_files.so.2...done.
196Loaded symbols for /lib/libnss_files.so.2
197Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
198Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
199Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
200Loaded symbols for /usr/X11R6/lib/libXrender.so.1
201Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
202Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
203Reading symbols from /opt/kde/lib/libartsflow.so.1...done.
204Loaded symbols for /opt/kde/lib/libartsflow.so.1
205Reading symbols from /usr/lib/./libesd.so.0...done.
206Loaded symbols for /usr/lib/./libesd.so.0
207Reading symbols from /usr/lib/./libaudiofile.so.0...done.
208Loaded symbols for /usr/lib/./libaudiofile.so.0
209Reading symbols from /opt/kde/lib/libartsflow_idl.so.1...done.
210Loaded symbols for /opt/kde/lib/libartsflow_idl.so.1
211Reading symbols from /opt/kde/lib/libmcop.so.1...done.
212Loaded symbols for /opt/kde/lib/libmcop.so.1
213Reading symbols from /usr/lib/./libgmodule-2.0.so.0...done.
214Loaded symbols for /usr/lib/./libgmodule-2.0.so.0
215Reading symbols from /usr/lib/./libgthread-2.0.so.0...done.
216Loaded symbols for /usr/lib/./libgthread-2.0.so.0
217Reading symbols from /usr/lib/./libglib-2.0.so.0...done.
218Loaded symbols for /usr/lib/./libglib-2.0.so.0
219Reading symbols from /lib/libnss_compat.so.2...done.
220Loaded symbols for /lib/libnss_compat.so.2
221Reading symbols from /lib/libnsl.so.1...done.
222Loaded symbols for /lib/libnsl.so.1
2230x080aa218 in Scumm::SmushMixer::stop (this=0x1be2b6d8)
224 at scumm/smush/smush_mixer.cpp:151
225151 _channels[i].stream->finish();
226(gdb) bt
227#0 0x080aa218 in Scumm::SmushMixer::stop (this=0x1be2b6d8)
228 at scumm/smush/smush_mixer.cpp:151
229#1 0x080a7b4e in Scumm::SmushPlayer::seekSan (this=0x1c9a4cb0,
230 file=0x8329394 "tomine.san", pos=0, contFrame=0)
231 at scumm/smush/smush_player.cpp:1146
232#2 0x0809734e in Scumm::Insane::smush_setupSanFile (this=0x1c551a18,
233 filename=0x8329394 "tomine.san", offset=0, contFrame=0)
234 at scumm/insane/insane.cpp:1455
235#3 0x080972aa in Scumm::Insane::smush_setupSanFromStart (this=0x1c551a18,
236 filename=0x8329394 "tomine.san", setupsan2=96, step1=-1, step2=-1,
237 setupsan1=0) at scumm/insane/insane.cpp:1440
238#4 0x080959fa in Scumm::Insane::queueSceneSwitch (this=0x1c551a18, sceneId=8,
239 fluPtr=0x0, filename=0x8329394 "tomine.san", arg_C=64, arg_10=0,
240 startFrame=0, numFrames=0) at scumm/insane/insane.cpp:850
241#5 0x081494b3 in Scumm::Insane::mineChooseRoad (this=0x1c551a18, buttons=1)
242 at scumm/insane/insane_ben.cpp:308
243#6 0x08148d14 in Scumm::Insane::turnBen (this=0x1c551a18, controllable=true)
244 at scumm/insane/insane_ben.cpp:115
245#7 0x080a2e87 in Scumm::Insane::postCase3 (this=0x1c551a18,
246 renderBitmap=0x1c80761c "!!!! \037\036\035\034\034\034\033\033\031\027\025\023\022\022\022\023\024\025\027\031\033\033\034\034\035\035\035\035\036\037 !!!\"", '#' <repeats 19 times>, "\"\"\"!!! \036\035\034\033\033\030\027\025\023\022\022\021\022\022\023\024\025\027\030\031\033\033\034\035\037 !", '#' <repeats ---Type <return> to continue, or q <return> to quit---
24727 times>, "\"\"\"\"\"\"\"\"", '#' <repeats 27 times>, "\"\"\"", '!' <repeats 12 times>, " !!!!\"\"\"", '#' <repeats 16 times>..., codecparam=0,
248 setupsan12=0, setupsan13=0, curFrame=156, maxFrame=229)
249 at scumm/insane/insane_scenes.cpp:1138
250#8 0x080a2443 in Scumm::Insane::procPostRendering (this=0x1c551a18,
251 renderBitmap=0x1c80761c "!!!! \037\036\035\034\034\034\033\033\031\027\025\023\022\022\022\023\024\025\027\031\033\033\034\034\035\035\035\035\036\037 !!!\"", '#' <repeats 19 times>, "\"\"\"!!! \036\035\034\033\033\030\027\025\023\022\022\021\022\022\023\024\025\027\030\031\033\033\034\035\037 !", '#' <repeats 27 times>, "\"\"\"\"\"\"\"\"", '#' <repeats 27 times>, "\"\"\"", '!' <repeats 12 times>, " !!!!\"\"\"", '#' <repeats 16 times>..., codecparam=0,
252 setupsan12=0, setupsan13=0, curFrame=156, maxFrame=229)
253 at scumm/insane/insane_scenes.cpp:902
254#9 0x080a6d60 in Scumm::SmushPlayer::handleFrame (this=0x1c9a4cb0,
255 b=@0x1c37b338) at scumm/smush/smush_player.cpp:945
256#10 0x080a77a9 in Scumm::SmushPlayer::parseNextFrame (this=0x1c9a4cb0)
257 at scumm/smush/smush_player.cpp:1044
258#11 0x080a4169 in Scumm::SmushPlayer::timerCallback (refCon=0x1c9a4cb0)
259 at scumm/smush/smush_player.cpp:220
260#12 0x0828cfb8 in Timer::handler (this=0x1c3cad48, t=10) at common/timer.cpp:89
261#13 0x0828ce14 in Timer::timer_handler (t=10) at common/timer.cpp:69
262#14 0x1baa437f in SDL_RemoveTimer () from /usr/lib/libSDL-1.2.so.0
263#15 0x1baa40fe in SDL_ThreadedTimerCheck () from /usr/lib/libSDL-1.2.so.0
264---Type <return> to continue, or q <return> to quit---
265#16 0x1baa460a in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
266#17 0x1b8ee490 in _dl_runtime_resolve () from /lib/ld-linux.so.2
267#18 0x1c3c7c00 in ?? ()
268#19 0x523ffae4 in ?? ()
269#20 0x1baa33eb in SDL_RunThread () from /usr/lib/libSDL-1.2.so.0
270Previous frame inner to this frame (corrupt stack?)
271(gdb) quit
272The program is running. Quit anyway (and detach it)? (y or n) y
273