Ticket #1780: pjs.txt

File pjs.txt, 16.4 KB (added by Kirben, 16 years ago)

PJS1 Valgind log with gdb backtrace

Line 
1==10752== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
2==10752== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
3==10752== Using valgrind-2.0.0, a program supervision framework for x86-linux.
4==10752== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
5==10752== Estimated CPU clock rate is 2598 MHz
6==10752== For more details, rerun with: -v
7==10752==
8Debuglevel (from command line): 0 - Game only
9==10752== Use of uninitialised value of size 16
10==10752== at 0x15B9F23: Arts::CpuInfoStartup::startup() (in /usr/lib/libartsflow.so.1.0.0)
11==10752== by 0x1EFBFF2: Arts::StartupManager::startup() (in /usr/lib/libmcop.so.1.0.0)
12==10752== by 0x1EE2376: Arts::Dispatcher::Dispatcher(Arts::IOManager*, Arts::Dispatcher::StartServer) (in /usr/lib/libmcop.so.1.0.0)
13==10752== by 0x143AB14: arts_backend_init (in /usr/lib/libartscbackend.so.0.0.0)
14==10752==
15==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- n
16==10752== discard syms in /usr/lib/libartscbackend.so.0.0.0 due to munmap()
17==10752== discard syms in /usr/lib/libsoundserver_idl.so.1.0.0 due to munmap()
18==10752== discard syms in /usr/lib/libkmedia2_idl.so.1.0.0 due to munmap()
19==10752== discard syms in /usr/lib/libartsc.so.0.0.0 due to munmap()
20==10752== discard syms in /usr/lib/libesd.so.0.2.31 due to munmap()
21==10752== valgrind's libpthread.so: KLUDGED call to: sem_destroy
22Looking for pajama
23Trying to start game 'Pajama Sam 1: No Need to Hide When It's Dark Outside'
24==10752== valgrind's libpthread.so: KLUDGED call to: sem_destroy
25==10752==
26==10752== Syscall param writev(vector[...]) contains uninitialised or unaddressable byte(s)
27==10752== at 0xCE2CAD: vgAllRoadsLeadToRome_writev (vg_intercept.c:109)
28==10752== by 0xCE2CE9: __writev (vg_intercept.c:774)
29==10752== by 0x3D624F: (within /usr/X11R6/lib/libX11.so.6.2)
30==10752== by 0x3D6E3E: _X11TransWritev (in /usr/X11R6/lib/libX11.so.6.2)
31==10752== Address 0x123F8EF is 19 bytes inside a block of size 2048 alloc'd
32==10752== at 0x6EFB00: calloc (vg_replace_malloc.c:284)
33==10752== by 0x3A8D0C: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
34==10752== by 0x14C3E6: (within /usr/lib/libSDL-1.2.so.0.0.5)
35==10752== by 0x141120: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.0.5)
36==10752==
37==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- n
38o72_addMessageToStack("Pajama Sam")
39o72_addMessageToStack("CD")
40o72_addMessageToStack("NoMusic")
41o72_addMessageToStack("NoBackgroundSound")
42o72_addMessageToStack("MouseOverride")
43o72_addMessageToStack("Demo")
44o72_addMessageToStack("E3Demo")
45o72_addMessageToStack("HideAllText")
46o72_addMessageToStack("PlaybackAutoPlayFile")
47o72_addMessageToStack("AutoPlay")
48o72_addMessageToStack("TextOn")
49o72_addMessageToStack("BlackAndWhiteCursors")
50o72_addMessageToStack("SputmDebug")
51o72_addMessageToStack("WhosABigCheater")
52o72_addMessageToStack("SetGame")
53o72_addMessageToStack("LastGameWon")
54o72_addMessageToStack("LastGame")
55DEBUG: flashlight in shack
56DEBUG: box underwater
57DEBUG: mask in garden
58o72_addMessageToStack("LastGame")
59o72_addMessageToStack("InventoryPopY")
60o72_addMessageToStack("InventoryDropY")
61o72_addMessageToStack("SlowMachineInventory")
62DEBUG: HELogo Test: 10.
63o72_addMessageToStack("DisplayHELogoTest")
64DEBUG: machine-speed = SLOW-MACHINE
65o72_addMessageToStack("CDGamePath")
66DEBUG: No CDGamePath
67o72_addMessageToStack("ForceMachineSpeed")
68DEBUG: sock 6
69DEBUG: sock 15
70DEBUG: sock 2
71DEBUG: sock 10
72DEBUG: sock 14
73DEBUG: sock 3
74DEBUG: sock 12
75DEBUG: sock 7
76DEBUG: sock 15
77o72_addMessageToStack(" ")
78DEBUG: Adding song 8037 1 times.
79DEBUG: playing standard song
80DEBUG: Starting music 8037
81playSound #8037
82DEBUG: Starting music 8052
83DEBUG: Mask under rug.
84DEBUG: Flashlight in lower
85DEBUG: Lunchbox in trash.
86playSound #8052
87WARNING: isResourceLoaded Illegal Glob type Sound (4) num 8037!
88DEBUG: playing standard song
89DEBUG: Starting music 8037
90playSound #8037
91==10752==
92==10752== Invalid read of size 2
93==10752== at 0x80649BA: READ_LE_UINT16(void const*) (scummsys.h:376)
94==10752== by 0x80AEA94: Scumm::Gdi::drawBMAPBg(unsigned char const*, Scumm::VirtScreen*, int, int) (gfx.cpp:1395)
95==10752== by 0x80ACA92: Scumm::ScummEngine::redrawBGAreas() (gfx.cpp:597)
96==10752== by 0x8101AD8: Scumm::ScummEngine_v72he::redrawBGAreas() (script_v72he.cpp:1680)
97==10752== Address 0x40C17549 is 42185 bytes inside a block of size 42186 alloc'd
98==10752== at 0x6EFB00: calloc (vg_replace_malloc.c:284)
99==10752== by 0x80D97F7: Scumm::ScummEngine::createResource(int, int, unsigned) (resource.cpp:2021)
100==10752== by 0x80D6BAA: Scumm::ScummEngine::loadResource(int, int) (resource.cpp:880)
101==10752== by 0x80D67C1: Scumm::ScummEngine::ensureResourceLoaded(int, int) (resource.cpp:805)
102==10752==
103==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- n
104DEBUG: Adding song 8018 1 times.
105DEBUG: playing standard song
106DEBUG: Starting music 8018
107playSound #8018
108o72_addMessageToStack("T63730496,26778Ah ha! This must be the key!")
109DEBUG: Starting music 8051
110playSound #8051
111o72_addMessageToStack("T63952715,9744Darkness!")
112o72_addMessageToStack("T63962459,27195It is I, ...Pajama Sam!")
113o72_addMessageToStack("LastGameWon")
114o72_addMessageToStack("LastGameWon")
115DEBUG: Adding song 8055 1 times.
116DEBUG: playing preferred song
117DEBUG: Starting music 8039
118DEBUG: Adding song 8037 1 times.
119playSound #8039
120DEBUG: Adding song 8044 1 times.
121DEBUG: Adding song 8045 1 times.
122DEBUG: Adding song 8046 1 times.
123DEBUG: Adding song 8029 1 times.
124DEBUG: Adding song 8054 1 times.
125o72_addMessageToStack("Pajama Sam")
126o72_addMessageToStack("in")
127o72_addMessageToStack("No Need To Hide")
128o72_addMessageToStack("When It's Dark")
129o72_addMessageToStack("Outside")
130o72_addMessageToStack("Interactive Design")
131o72_addMessageToStack("[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")
132o72_addMessageToStack("Richard Moe")
133o72_addMessageToStack("Rhonda Conley")
134o72_addMessageToStack("Ron Gilbert")
135o72_addMessageToStack("Project Leader")
136o72_addMessageToStack("Art")
137o72_addMessageToStack("[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")
138==10752==
139==10752== Invalid write of size 1
140==10752== at 0x6E8B46: memcpy (mac_replace_strmem.c:271)
141==10752== by 0x809F083: Scumm::CharsetRendererClassic::printChar(int) (charset.cpp:1347)
142==10752== by 0x806AE32: Scumm::ScummEngine::drawString(int, unsigned char const*) (string.cpp:495)
143==10752== by 0x80691EC: Scumm::ScummEngine::printString(int, unsigned char const*) (string.cpp:43)
144==10752== Address 0x24CEAC4 is 8 bytes after a block of size 252 free'd
145==10752== at 0x6EFA5A: __builtin_vec_delete (vg_replace_malloc.c:263)
146==10752== by 0x6EFA78: operator delete[](void*) (vg_replace_malloc.c:272)
147==10752== by 0x80912A5: Scumm::ScummEngine::processActors() (actor.cpp:961)
148==10752== by 0x805FCE2: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:1653)
149==10752==
150==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- y
151==10752== starting GDB with cmd: /usr/bin/gdb -nw /proc/10752/exe 10752
152GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
153Copyright 2003 Free Software Foundation, Inc.
154GDB is free software, covered by the GNU General Public License, and you are
155welcome to change it and/or distribute copies of it under certain conditions.
156Type "show copying" to see the conditions.
157There is absolutely no warranty for GDB. Type "show warranty" for details.
158This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
159
160Attaching to program: /proc/10752/exe, process 10752
161Reading symbols from /usr/local/lib/valgrind/vgskin_memcheck.so...done.
162Loaded symbols for /usr/local/lib/valgrind/vgskin_memcheck.so
163Reading symbols from /usr/local/lib/valgrind/valgrind.so...done.
164Loaded symbols for /usr/local/lib/valgrind/valgrind.so
165Reading symbols from /usr/lib/libvorbisfile.so.3...done.
166Loaded symbols for /usr/lib/libvorbisfile.so.3
167Reading symbols from /usr/lib/libvorbis.so.0...done.
168Loaded symbols for /usr/lib/libvorbis.so.0
169Reading symbols from /usr/lib/libogg.so.0...done.
170Loaded symbols for /usr/lib/libogg.so.0
171Reading symbols from /usr/lib/libasound.so.2...done.
172Loaded symbols for /usr/lib/libasound.so.2
173Reading symbols from /usr/lib/libz.so.1...done.
174Loaded symbols for /usr/lib/libz.so.1
175Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
176Loaded symbols for /usr/lib/libSDL-1.2.so.0
177Reading symbols from /usr/local/lib/valgrind/libpthread.so.0...done.
178Loaded symbols for /usr/local/lib/valgrind/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 /lib/libgcc_s.so.1...done.
184Loaded symbols for /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
193---Type <return> to continue, or q <return> to quit---
194Reading symbols from /lib/ld-linux.so.2...done.
195Loaded symbols for /lib/ld-linux.so.2
196Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
197Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
198Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
199Loaded symbols for /usr/X11R6/lib/libXrender.so.1
200Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
201Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
202Reading symbols from /usr/lib/libartsflow.so.1...done.
203Loaded symbols for /usr/lib/libartsflow.so.1
204Reading symbols from /usr/lib/libaudiofile.so.0...done.
205Loaded symbols for /usr/lib/libaudiofile.so.0
206Reading symbols from /usr/lib/libvorbisenc.so.2...done.
207Loaded symbols for /usr/lib/libvorbisenc.so.2
208Reading symbols from /usr/lib/libartsflow_idl.so.1...done.
209Loaded symbols for /usr/lib/libartsflow_idl.so.1
210Reading symbols from /usr/lib/libmcop.so.1...done.
211Loaded symbols for /usr/lib/libmcop.so.1
212Reading symbols from /lib/libnss_files.so.2...done.
213Loaded symbols for /lib/libnss_files.so.2
214Reading symbols from /usr/lib/libesd.so.0...done.
215Loaded symbols for /usr/lib/libesd.so.0
216vg_do_syscall3 (syscallno=4294966784, arg1=10756, arg2=0, arg3=0)
217 at vg_mylibc.c:92
21892 }
219(gdb) bt full
220#0 vg_do_syscall3 (syscallno=4294966784, arg1=10756, arg2=0, arg3=0)
221 at vg_mylibc.c:92
222 __res = 4294966784
223#1 0x00ce894f in vgPlain_system (
224 cmd=0xbff6e2f8 "/usr/bin/gdb -nw /proc/10752/exe 10752")
225 at vg_mylibc.c:1277
226 pid = 10756
227 res = -512
228 environ = {0x7}
229#2 0x00ce5162 in vgPlain_start_GDB_whilst_on_client_stack () at vg_main.c:1816
230 res = -512
231 buf = "%G.ANoN?N?NoN?N?NoN?N?NoN?N?%@/usr/bin/gdb -nw /proc/10752/exe 10752\000\000@i/\000%GNoN?N?NoN?N?NoN?N?NoN?N?NoN?N?%@t\"\000%GNoN?N?NoN?N?%@L\002%GNoN?N?NoN?N?NoN?N?NoN?N?%@<%GNoN?N?NoN?N?NoN?N?%@\000\000\000\000 \000\000\000\2062\031\000%GNoN?N?NoN?N?%@L\002@i/\000[w\"\000\006\000\000\000\000%GNoN?N?%@D%GNoN?N?%@"
232#3 0x00ceb5a8 in vgPlain_swizzle_esp_then_start_GDB ()
233 from /usr/local/lib/valgrind/valgrind.so
234No symbol table info available.
235#4 0x006e8b46 in memcpy (dst=0xd, src=0x0, len=7244614)
236 at mac_replace_strmem.c:271
237 d = 0x0
238 s = 0x0
239#5 0x006e8b46 in memcpy (dst=0x24ceac4, src=0x3b9074c, len=3220628344)
240 at mac_replace_strmem.c:271
241---Type <return> to continue, or q <return> to quit---
242 d = 0x0
243 s = 0x0
244#6 0x0809f084 in Scumm::CharsetRendererClassic::printChar(int) (
245 this=0x3b3331c, chr=80) at scumm/charset.cpp:1347
246 w = 13
247 h = -485
248 width = 13
249 height = 17
250 origWidth = 13
251 origHeight = 17
252 offsX = 0
253 offsY = 0
254 vs = (VirtScreen *) 0x240bff0
255 charPtr = (const byte *) 0x40c0f200 "\004"
256 is2byte = 0
257 drawTop = -17
258 dst = (byte *) 0x3b9074c ""
259 back = (byte *) 0x24ceac4 ""
260 dstSurface = {pixels = 0x2482c8c, w = 640, h = 480, pitch = 640,
261 bytesPerPixel = 1 '\001'}
262 backSurface = {pixels = 0x2482c8c, w = 640, h = 480, pitch = 640,
263 bytesPerPixel = 1 '\001'}
264#7 0x0806ae33 in Scumm::ScummEngine::drawString(int, unsigned char const*) (
265---Type <return> to continue, or q <return> to quit---
266 this=0x2403a7c, a=1, msg=0xbff6e6c0 "Pajama Sam") at scumm/string.cpp:495
267 buf = "Pajama Sam", '\0' <repeats 118 times>, "\r\000\000\000%G.ANoN?N?NoN?N?NoN?N?NoN?N?NoN?N?NoN?N?NoN?N?NoN?N?%@\003\000\000\000\r", '\0' <repeats 110 times>
268 space = (byte *) 0x0
269 i = 1
270 c = 80
271 fontHeight = 21 '\025'
272 color = 0
273 code = 127
274 tmp = (byte *) 0xbff6e57a ""
275#8 0x080691ed in Scumm::ScummEngine::printString(int, unsigned char const*) (
276 this=0x2403a7c, m=1, msg=0xbff6e6c0 "Pajama Sam") at scumm/string.cpp:43
277No locals.
278#9 0x08103891 in Scumm::ScummEngine_v72he::decodeParseString(int, int) (
279 this=0x2403a7c, m=1, n=0) at scumm/script_v72he.cpp:2296
280 b = 194 '%G.ANoN?N?%@'
281 ptr = (byte *) 0x0
282 i = 136857080
283 color = 9
284 size = 135157441
285 args = {176, 0, 55, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1074336920,
286 135155409, 24, 0, 0, 136856512, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0}
287 name = "Pajama Sam\000\000er\000\000gn\000\0004F(\b\233\001\000\000\b>)\---Type <return> to continue, or q <return> to quit---
288b 08\000`\030(\b(%G.ANoN?N?NoN?N?NoN?N?%@\031\226\r\b \000\000\000%GNoN?N?%@\023(\b`\030(\bB\000\000\000\fr%GNoN?N?%@@\001\000\000\000B\000\000\000\001\000\000\000|:@\002 M/\000\001\000\000\000\fr%GNoN?N?%@@\br%GNoN?N?%@@|:@\002X%GNoN?N?NoN?N?NoN?N?%@\224E\016\b|:@\002\001\000\000\000B\000\000\000\005I\016\b|:@\002l\000\000\000\003\000\000\000\b\000\000\000|:@\002 08\000x%GNoN?N?NoN?N?NoN?N?%@6C\016\b|:@\002addM%GNoN?N?NoN?N?NoN?N?NoN?N?%@\023\000\000\000l\216@\002%GNoN?N?NoN?N?%@@\002%GNoN?N?NoN?N?NoN?N?NoN?N?NoN?N?%@:\016\b|:@\002\023\000\000\000"...
289#10 0x080f6c02 in Scumm::ScummEngine_v6::o6_printCursor() (this=0x2403a7c)
290 at scumm/script_v6.cpp:2332
291No locals.
292#11 0x08103d97 in Scumm::ScummEngine_v80he::executeOpcode(unsigned char) (
293 this=0x2403a7c, i=181 '%G.ANoN?N?%@') at scumm/script_v80he.cpp:374
294 op = {__pfn = 0x80f6be6 <Scumm::ScummEngine_v6::o6_printCursor()>,
295 __delta = 0}
296#12 0x080e4905 in Scumm::ScummEngine::executeScript() (this=0x2403a7c)
297 at scumm/script.cpp:448
298 c = 136713276
299#13 0x080e5db6 in Scumm::ScummEngine::runAllScripts() (this=0x2403a7c)
300 at scumm/script.cpp:794
301 i = 80
302#14 0x0805fab9 in Scumm::ScummEngine::scummLoop(int) (this=0x2403a7c, delta=6)
303 at scumm/scumm.cpp:1605
304 oldEgo = 1
305#15 0x0805ed77 in Scumm::ScummEngine::mainRun() (this=0x2403a7c)
306 at scumm/scumm.cpp:1395
307---Type <return> to continue, or q <return> to quit---
308 delta = 6
309 diff = 76465
310#16 0x0805d14f in Scumm::ScummEngine::go() (this=0x2403a7c)
311 at scumm/scumm.cpp:1007
312No locals.
313#17 0x08055867 in runGame (detector=@0xbff6f010, system=0x122d7e4)
314 at base/main.cpp:274
315 caption = {<ConstString> = {_vptr.ConstString = 0x82e4508,
316 _str = 0x11f123c "Pajama Sam 1: No Need to Hide When It's Dark Outside",
317 _len = 52}, _refCount = 0x11f1208, _capacity = 52,
318 static emptyString = {<ConstString> = {_vptr.ConstString = 0x82e4508,
319 _str = 0x0, _len = 0}, _refCount = 0x11ba024, _capacity = 0,
320 static emptyString = <same as static member of an already seen type>}}
321 useDefaultGraphicsMode = true
322 engine = (class Engine *) 0x2403a7c
323#18 0x08055c2e in main (argc=3, argv=0xbff6f0c4) at base/main.cpp:388
324 cfgFilename = 0x0
325 s = 0xbff959d2 "-d0"
326 detector = {_targetName = {<ConstString> = {
327 _vptr.ConstString = 0x82e4508, _str = 0x122d5cc "pajama", _len = 6},
328 _refCount = 0x122d598, _capacity = 6,
329 static emptyString = {<ConstString> = {_vptr.ConstString = 0x82e4508,
330 _str = 0x0, _len = 0}, _refCount = 0x11ba024, _capacity = 0,
331---Type <return> to continue, or q <return> to quit---
332 static emptyString = <same as static member of an already seen type>}},
333 _game = {name = 0x8265181 "pajama",
334 description = 0x8269aa0 "Pajama Sam 1: No Need to Hide When It's Dark Outside", features = 16405}, _plugin = 0x12282c0, _dumpScripts = false}
335 system = (class OSystem *) 0x122d7e4
336Current language: auto; currently c