Ticket #2111: valgrind.txt

File valgrind.txt, 12.6 KB (added by Kirben, 18 years ago)

Valgrind log

1==7073== Memcheck, a memory error detector.
2==7073== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
3==7073== Using LibVEX rev 1313, a library for dynamic binary translation.
4==7073== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
5==7073== Using valgrind-3.0.0, a dynamic binary instrumentation framework.
6==7073== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
7==7073== For more details, rerun with: -v
9vex x86->IR: unhandled instruction bytes: 0xF 0x11 0x4 0x24
10audio_alsa: no cards found!
11==7110== Invalid free() / delete / delete[]
12==7110== at 0x1B8FE570: free (vg_replace_malloc.c:235)
13==7110== by 0x1BD134DB: free_mem (in /lib/libc-2.3.2.so)
14==7110== by 0x1BD13248: __libc_freeres (in /lib/libc-2.3.2.so)
15==7110== by 0x1B8FA8B0: _vgw_freeres (vg_preloaded.c:62)
16==7110== by 0x1BF1CCCC: esd_open_sound (in /usr/lib/libesd.so.0.2.34)
17==7110== by 0x1BA53740: (within /usr/lib/libSDL-1.2.so.0.7.0)
18==7110== by 0x1BA4E692: SDL_AudioInit (in /usr/lib/libSDL-1.2.so.0.7.0)
19==7110== by 0x1BA4D4DA: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0)
20==7110== by 0x1BA4D556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0)
21==7110== by 0x8050DEB: OSystem_SDL::initBackend() (sdl.cpp:54)
22==7110== by 0x80593AD: main (main.cpp:427)
23==7110== Address 0x1BAD3F00 is not stack'd, malloc'd or (recently) free'd
25==7110== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 85 from 3)
26==7110== malloc/free: in use at exit: 204505 bytes in 2792 blocks.
27==7110== malloc/free: 4282 allocs, 1491 frees, 556334 bytes allocated.
28==7110== For counts of detected errors, rerun with: -v
29==7110== searching for pointers to 2792 not-freed blocks.
30==7110== checked 2500700 bytes.
32==7110== LEAK SUMMARY:
33==7110== definitely lost: 59 bytes in 2 blocks.
34==7110== possibly lost: 15696 bytes in 302 blocks.
35==7110== still reachable: 188750 bytes in 2488 blocks.
36==7110== suppressed: 0 bytes in 0 blocks.
37==7110== Use --leak-check=full to see details of leaked memory.
38==7073== Syscall param write(buf) points to uninitialised byte(s)
39==7073== at 0x1BADFDFB: write (in /lib/libpthread-0.10.so)
40==7073== by 0x1BADBAED: pthread_create@@GLIBC_2.1 (in /lib/libpthread-0.10.so)
41==7073== by 0x1BA97666: SDL_SYS_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
42==7073== by 0x1BA97492: SDL_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
43==7073== by 0x1BA98642: SDL_SYS_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
44==7073== by 0x1BA97FC5: SDL_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
45==7073== by 0x1BA4D494: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0)
46==7073== by 0x1BA4D556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0)
47==7073== by 0x8050DEB: OSystem_SDL::initBackend() (sdl.cpp:54)
48==7073== by 0x80593AD: main (main.cpp:427)
49==7073== Address 0x52BFE5A0 is on thread 1's stack
51==7073== Syscall param write(buf) points to uninitialised byte(s)
52==7073== at 0x1BADFDFB: write (in /lib/libpthread-0.10.so)
53==7073== by 0x1BA97666: SDL_SYS_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
54==7073== by 0x1BA97492: SDL_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0)
55==7073== by 0x1BA98642: SDL_SYS_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
56==7073== by 0x1BA97FC5: SDL_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0)
57==7073== by 0x1BA4D494: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0)
58==7073== by 0x1BA4D556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0)
59==7073== by 0x8050DEB: OSystem_SDL::initBackend() (sdl.cpp:54)
60==7073== by 0x80593AD: main (main.cpp:427)
61==7073== Address 0x52BFE69C is on thread 1's stack
62==7073== Warning: bad signal number 0 in sigaction()
63Looking for zak
64Trying to start game 'Zak McKracken and the Alien Mindbenders'
65WARNING: Could not open audio device: No available audio device!
66WARNING: Sound mixer initialization failed!
67WARNING: MIDI driver depends on sound mixer, switching to null MIDI driver!
68Enhanced V2 game detected
70==7073== Conditional jump or move depends on uninitialised value(s)
71==7073== at 0x1BA8133B: X11_SetKeyboardState (in /usr/lib/libSDL-1.2.so.0.7.0)
72==7073== by 0x1BA80611: (within /usr/lib/libSDL-1.2.so.0.7.0)
73==7073== by 0x1BA808AD: X11_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.0)
74==7073== by 0x1BA91E82: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.0)
75==7073== by 0x1BA91EC8: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.7.0)
76==7073== by 0x804BE7C: OSystem_SDL::pollEvent(OSystem::Event&) (events.cpp:190)
77==7073== by 0x8108694: Scumm::ScummEngine::parseEvents() (input.cpp:54)
78==7073== by 0x8065485: Scumm::ScummEngine::waitForTimer(int) (scumm.cpp:2071)==7073== by 0x80653B9: Scumm::ScummEngine::go() (scumm.cpp:2045)
79==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
80==7073== by 0x80594E6: main (main.cpp:453)
82==7073== Invalid write of size 4
83==7073== at 0x80F914E: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:979)
84==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750)
85==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284)
86==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314)
87==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
88==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
89==7073== by 0x80594E6: main (main.cpp:453)
90==7073== Address 0x1C666FAC is 65180 bytes inside a block of size 65286 free'd
91==7073== at 0x1B8FE570: free (vg_replace_malloc.c:235)
92==7073== by 0x812D652: Scumm::ResourceManager::nukeResource(int, int) (resource.cpp:842)
93==7073== by 0x80F72A8: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:260)
94==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334)
95==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206)
96==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
97==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
98==7073== by 0x80594E6: main (main.cpp:453)
100==7073== Invalid write of size 4
101==7073== at 0x80F915E: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:980)
102==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750)
103==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284)
104==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314)
105==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
106==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
107==7073== by 0x80594E6: main (main.cpp:453)
108==7073== Address 0x1C666FB0 is 65184 bytes inside a block of size 65286 free'd
109==7073== at 0x1B8FE570: free (vg_replace_malloc.c:235)
110==7073== by 0x812D652: Scumm::ResourceManager::nukeResource(int, int) (resource.cpp:842)
111==7073== by 0x80F72A8: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:260)
112==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334)
113==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206)
114==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
115==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
116==7073== by 0x80594E6: main (main.cpp:453)
118==7073== Invalid read of size 4
119==7073== at 0x80F914C: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:979)
120==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750)
121==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284)
122==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314)
123==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
124==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
125==7073== by 0x80594E6: main (main.cpp:453)
126==7073== Address 0x1C671584 is 42244 bytes inside a block of size 42246 alloc'd==7073== at 0x1B8FED35: calloc (vg_replace_malloc.c:279)
127==7073== by 0x812D43D: Scumm::ResourceManager::createResource(int, int, unsigned) (resource.cpp:801)
128==7073== by 0x80F75A5: Scumm::ScummEngine::initVirtScreen(Scumm::VirtScreenNumber, int, int, int, bool, bool) (gfx.cpp:339)
129==7073== by 0x80F7397: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:285)
130==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334)
131==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206)
132==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
133==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
134==7073== by 0x80594E6: main (main.cpp:453)
136==7073== Invalid read of size 4
137==7073== at 0x80F915C: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:980)
138==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750)
139==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284)
140==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314)
141==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
142==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
143==7073== by 0x80594E6: main (main.cpp:453)
144==7073== Address 0x1C671588 is 2 bytes after a block of size 42246 alloc'd
145==7073== at 0x1B8FED35: calloc (vg_replace_malloc.c:279)
146==7073== by 0x812D43D: Scumm::ResourceManager::createResource(int, int, unsigned) (resource.cpp:801)
147==7073== by 0x80F75A5: Scumm::ScummEngine::initVirtScreen(Scumm::VirtScreenNumber, int, int, int, bool, bool) (gfx.cpp:339)
148==7073== by 0x80F7397: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:285)
149==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334)
150==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206)
151==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
152==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
153==7073== by 0x80594E6: main (main.cpp:453)
155valgrind: m_mallocfree.c:260 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
156==7073== at 0xB00163BB: panic (m_libcassert.c:175)
157==7073== by 0xB00163BA: vgPlain_assert_fail (m_libcassert.c:169)
158==7073== by 0xB001DA67: vgPlain_arena_free (m_mallocfree.c:1064)
159==7073== by 0xB001324F: vgPlain_cli_free (replacemalloc_core.c:108)
160==7073== by 0xB1268A99: ???
161==7073== by 0xB12690C2: ???
162==7073== by 0xB0037455: do_client_request (scheduler.c:918)
163==7073== by 0xB0036FCE: vgPlain_scheduler (scheduler.c:684)
164==7073== by 0xB004D619: vgModuleLocal_thread_wrapper (syswrap-linux.c:80)
165==7073== by 0xB0049D7B: run_a_thread_NORETURN (syswrap-x86-linux.c:150)
167sched status:
168 running_tid=1
170Thread 1: status = VgTs_Runnable
171==7073== at 0x1B8FE570: free (vg_replace_malloc.c:235)
172==7073== by 0x1BA599D1: (within /usr/lib/libSDL-1.2.so.0.7.0)
173==7073== by 0x1BA59B8B: SDL_RLESurface (in /usr/lib/libSDL-1.2.so.0.7.0)
174==7073== by 0x1BA72455: SDL_UnlockSurface (in /usr/lib/libSDL-1.2.so.0.7.0)
175==7073== by 0x804F944: OSystem_SDL::blitCursor() (graphics.cpp:1412)
176==7073== by 0x804F3E0: OSystem_SDL::setMouseCursor(unsigned char const*, unsigned, unsigned, int, int, unsigned char, int) (graphics.cpp:1308)
177==7073== by 0x80EA6E9: Scumm::ScummEngine::updateCursor() (cursor.cpp:135)
178==7073== by 0x80EB8BC: Scumm::ScummEngine_v5::setBuiltinCursor(int) (cursor.cpp:514)
179==7073== by 0x80EA5C4: Scumm::ScummEngine_v5::animateCursor() (cursor.cpp:111)
180==7073== by 0x806668E: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2362)
181==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047)
182==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306)
183==7073== by 0x80594E6: main (main.cpp:453)
185Thread 2: status = VgTs_WaitSys
186==7073== at 0x1BCD9362: loser_poll (in /lib/libc-2.3.2.so)
187==7073== by 0x1BCD942B: poll (in /lib/libc-2.3.2.so)
188==7073== by 0x1BAD99BF: __pthread_manager (in /lib/libpthread-0.10.so)
189==7073== by 0x1BCE1BE6: clone (in /lib/libc-2.3.2.so)
191Thread 3: status = VgTs_WaitSys
192==7073== at 0x1BCDB841: select (in /lib/libc-2.3.2.so)
193==7073== by 0x1BA985F1: (within /usr/lib/libSDL-1.2.so.0.7.0)
194==7073== by 0x1BA973EA: SDL_RunThread (in /usr/lib/libSDL-1.2.so.0.7.0)
195==7073== by 0x1BA975FE: (within /usr/lib/libSDL-1.2.so.0.7.0)
196==7073== by 0x1BAD9CC3: pthread_start_thread (in /lib/libpthread-0.10.so)
197==7073== by 0x1BCE1BE6: clone (in /lib/libc-2.3.2.so)
200Note: see also the FAQ.txt in the source distribution.
201It contains workarounds to several common problems.
203If that doesn't help, please report this bug to: www.valgrind.org
205In the bug report, send all the above text, the valgrind
206version, and what Linux distro you are using. Thanks.