Ticket #6359: kq6mac-scummvm160final-savecrash.txt

File kq6mac-scummvm160final-savecrash.txt, 27.9 KB (added by SF/dmwarren, 11 years ago)

Valgrind output

Line 
1ScummVM 1.7.0
2
3==30137== Memcheck, a memory error detector
4==30137== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
5==30137== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
6==30137== Command: ./scummvm
7==30137==
8==30141== Warning: invalid file descriptor 1024 in syscall close()
9==30141==
10==30141== HEAP SUMMARY:
11==30141== in use at exit: 845,316 bytes in 1,357 blocks
12==30141== total heap usage: 13,986 allocs, 12,629 frees, 2,997,012 bytes allocated
13==30141==
14==30141== 24 bytes in 1 blocks are possibly lost in loss record 149 of 478
15==30141== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
16==30141== by 0x127154D: StdioStream::makeFromPath(Common::String const&, bool) (stdiostream.cpp:102)
17==30141== by 0x127057D: POSIXFilesystemNode::createWriteStream() (posix-fs.cpp:250)
18==30141== by 0x138B00B: Common::FSNode::createWriteStream() const (fs.cpp:151)
19==30141== by 0x407A95: OSystem_POSIX::createLogFile() (posix.cpp:156)
20==30141== by 0x4058AD: OSystem_SDL::init() (sdl.cpp:123)
21==30141== by 0x40775F: OSystem_POSIX::init() (posix.cpp:59)
22==30141== by 0x407676: main (posix-main.cpp:38)
23==30141==
24==30141== 192 (16 direct, 176 indirect) bytes in 1 blocks are definitely lost in loss record 394 of 478
25==30141== at 0x4C28CCE: realloc (vg_replace_malloc.c:632)
26==30141== by 0x6ECF04E: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
27==30141== by 0x6ECF4CF: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
28==30141== by 0x6ED0BA4: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
29==30141== by 0x6ED1335: _XlcCreateLC (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
30==30141== by 0x6EED72F: _XlcDefaultLoader (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
31==30141== by 0x6ED8555: _XOpenLC (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
32==30141== by 0x6ED8697: _XlcCurrentLC (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
33==30141== by 0x6ED86ED: XSetLocaleModifiers (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
34==30141== by 0x4E70F2B: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
35==30141== by 0x4E71D00: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
36==30141== by 0x4E6215A: SDL_VideoInit (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
37==30141==
38==30141== LEAK SUMMARY:
39==30141== definitely lost: 16 bytes in 1 blocks
40==30141== indirectly lost: 176 bytes in 4 blocks
41==30141== possibly lost: 24 bytes in 1 blocks
42==30141== still reachable: 845,100 bytes in 1,351 blocks
43==30141== suppressed: 0 bytes in 0 blocks
44==30141== Reachable blocks (those to which a pointer was found) are not shown.
45==30141== To see them, rerun with: --leak-check=full --show-reachable=yes
46==30141==
47==30141== For counts of detected and suppressed errors, rerun with: -v
48==30141== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)
49WARNING: SDL mixer output buffer size: 705 differs from desired: 2048!
50WARNING: You are missing a valid 'translations.dat' file. GUI translation will not be available!
51WARNING: Could not find theme 'scummmodern' falling back to builtin!
52
53[Sierra logo movie starts here]
54
55WARNING: Unhandled kMacPlatform(3)!
56WARNING: Unhandled kMacPlatform(2)!
57WARNING: Unhandled kMacPlatform(2)!
58
59[start new game]
60
61
62[play a while or immediately click save; the save dialog appears and then...]
63
64==30137== Thread 3:
65==30137== Invalid read of size 1
66==30137== at 0xD765AA: Sci::MidiDriver_AmigaMac::interpolate(signed char*, int, bool) (amigamac.cpp:176)
67==30137== by 0xD767DB: Sci::MidiDriver_AmigaMac::playInstrument(short*, Sci::MidiDriver_AmigaMac::Voice*, int) (amigamac.cpp:223)
68==30137== by 0xD78634: Sci::MidiDriver_AmigaMac::generateSamples(short*, int) (amigamac.cpp:718)
69==30137== by 0x51C36C: MidiDriver_Emulated::readBuffer(short*, int) (emumidi.h:100)
70==30137== by 0x1365447: Audio::CopyRateConverter<true, false>::flow(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) (rate.cpp:305)
71==30137== by 0x13263A8: Audio::Channel::mix(short*, unsigned int) (mixer.cpp:610)
72==30137== by 0x1324E20: Audio::MixerImpl::mixCallback(unsigned char*, unsigned int) (mixer.cpp:291)
73==30137== by 0x126C496: SdlMixerManager::callbackHandler(unsigned char*, int) (sdl-mixer.cpp:138)
74==30137== by 0x126C4F2: SdlMixerManager::sdlCallback(void*, unsigned char*, int) (sdl-mixer.cpp:145)
75==30137== by 0x4E3C1A0: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
76==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
77==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
78==30137== Address 0xf93b67b is 1 bytes after a block of size 7,002 alloc'd
79==30137== at 0x4C28BED: malloc (vg_replace_malloc.c:263)
80==30137== by 0xD79A46: Sci::MidiDriver_AmigaMac::loadInstrumentsSCI1(Common::SeekableReadStream&) (amigamac.cpp:969)
81==30137== by 0xD78060: Sci::MidiDriver_AmigaMac::open() (amigamac.cpp:615)
82==30137== by 0xD754DC: Sci::MidiPlayer::open(Sci::ResourceManager*) (mididriver.h:88)
83==30137== by 0xD6F8D0: Sci::MidiPlayer::open() (mididriver.h:86)
84==30137== by 0xD6D20F: Sci::SciMusic::init() (music.cpp:124)
85==30137== by 0xD70009: Sci::SoundCommandParser::SoundCommandParser(Sci::ResourceManager*, Sci::SegManager*, Sci::Kernel*, Sci::AudioPlayer*, Sci::SciVersion) (soundcmd.cpp:50)
86==30137== by 0xCF9526: Sci::SciEngine::run() (sci.cpp:261)
87==30137== by 0x408A3C: runGame(PluginSubclass<MetaEngine> const*, OSystem&, Common::String const&) (main.cpp:226)
88==30137== by 0x409714: scummvm_main (main.cpp:452)
89==30137== by 0x407687: main (posix-main.cpp:45)
90==30137==
91==30137== Invalid read of size 1
92==30137== at 0xD765C6: Sci::MidiDriver_AmigaMac::interpolate(signed char*, int, bool) (amigamac.cpp:177)
93==30137== by 0xD767DB: Sci::MidiDriver_AmigaMac::playInstrument(short*, Sci::MidiDriver_AmigaMac::Voice*, int) (amigamac.cpp:223)
94==30137== by 0xD78634: Sci::MidiDriver_AmigaMac::generateSamples(short*, int) (amigamac.cpp:718)
95==30137== by 0x51C36C: MidiDriver_Emulated::readBuffer(short*, int) (emumidi.h:100)
96==30137== by 0x1365447: Audio::CopyRateConverter<true, false>::flow(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) (rate.cpp:305)
97==30137== by 0x13263A8: Audio::Channel::mix(short*, unsigned int) (mixer.cpp:610)
98==30137== by 0x1324E20: Audio::MixerImpl::mixCallback(unsigned char*, unsigned int) (mixer.cpp:291)
99==30137== by 0x126C496: SdlMixerManager::callbackHandler(unsigned char*, int) (sdl-mixer.cpp:138)
100==30137== by 0x126C4F2: SdlMixerManager::sdlCallback(void*, unsigned char*, int) (sdl-mixer.cpp:145)
101==30137== by 0x4E3C1A0: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
102==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
103==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
104==30137== Address 0xf93b67c is 2 bytes after a block of size 7,002 alloc'd
105==30137== at 0x4C28BED: malloc (vg_replace_malloc.c:263)
106==30137== by 0xD79A46: Sci::MidiDriver_AmigaMac::loadInstrumentsSCI1(Common::SeekableReadStream&) (amigamac.cpp:969)
107==30137== by 0xD78060: Sci::MidiDriver_AmigaMac::open() (amigamac.cpp:615)
108==30137== by 0xD754DC: Sci::MidiPlayer::open(Sci::ResourceManager*) (mididriver.h:88)
109==30137== by 0xD6F8D0: Sci::MidiPlayer::open() (mididriver.h:86)
110==30137== by 0xD6D20F: Sci::SciMusic::init() (music.cpp:124)
111==30137== by 0xD70009: Sci::SoundCommandParser::SoundCommandParser(Sci::ResourceManager*, Sci::SegManager*, Sci::Kernel*, Sci::AudioPlayer*, Sci::SciVersion) (soundcmd.cpp:50)
112==30137== by 0xCF9526: Sci::SciEngine::run() (sci.cpp:261)
113==30137== by 0x408A3C: runGame(PluginSubclass<MetaEngine> const*, OSystem&, Common::String const&) (main.cpp:226)
114==30137== by 0x409714: scummvm_main (main.cpp:452)
115==30137== by 0x407687: main (posix-main.cpp:45)
116==30137==
117==30137== Thread 1:
118==30137== Conditional jump or move depends on uninitialised value(s)
119==30137== at 0x13B22BA: Common::wrapCompressedReadStream(Common::SeekableReadStream*, unsigned int) (zlib.cpp:399)
120==30137== by 0x125B5D7: DefaultSaveFileManager::openForLoading(Common::String const&) (default-saves.cpp:97)
121==30137== by 0xCE920B: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:732)
122==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
123==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
124==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
125==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
126==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
127==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
128==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
129==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
130==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859)
131==30137==
132==30137== Conditional jump or move depends on uninitialised value(s)
133==30137== at 0x13B22CA: Common::wrapCompressedReadStream(Common::SeekableReadStream*, unsigned int) (zlib.cpp:399)
134==30137== by 0x125B5D7: DefaultSaveFileManager::openForLoading(Common::String const&) (default-saves.cpp:97)
135==30137== by 0xCE920B: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:732)
136==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
137==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
138==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
139==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
140==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
141==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
142==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
143==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
144==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859)
145==30137==
146==30137== Conditional jump or move depends on uninitialised value(s)
147==30137== at 0xD2223E: Common::Serializer::syncString(Common::String&, unsigned int, unsigned int) (serializer.h:218)
148==30137== by 0xD1FD58: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:258)
149==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
150==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
151==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
152==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
153==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
154==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
155==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
156==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
157==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
158==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
159==30137==
160==30137== Conditional jump or move depends on uninitialised value(s)
161==30137== at 0xD2224E: Common::Serializer::syncString(Common::String&, unsigned int, unsigned int) (serializer.h:218)
162==30137== by 0xD1FD58: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:258)
163==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
164==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
165==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
166==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
167==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
168==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
169==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
170==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
171==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
172==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
173==30137==
174==30137== Conditional jump or move depends on uninitialised value(s)
175==30137== at 0x6B5A5E: void Common::Serializer::syncAsSint32LE<int>(int&, unsigned int, unsigned int) (serializer.h:105)
176==30137== by 0xD1FD76: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:259)
177==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
178==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
179==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
180==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
181==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
182==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
183==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
184==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
185==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
186==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
187==30137==
188==30137== Conditional jump or move depends on uninitialised value(s)
189==30137== at 0x6B5A6E: void Common::Serializer::syncAsSint32LE<int>(int&, unsigned int, unsigned int) (serializer.h:105)
190==30137== by 0xD1FD76: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:259)
191==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
192==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
193==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
194==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
195==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
196==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
197==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
198==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
199==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
200==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
201==30137==
202==30137== Conditional jump or move depends on uninitialised value(s)
203==30137== at 0x6B5A5E: void Common::Serializer::syncAsSint32LE<int>(int&, unsigned int, unsigned int) (serializer.h:105)
204==30137== by 0xD1FD94: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:260)
205==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
206==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
207==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
208==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
209==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
210==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
211==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
212==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
213==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
214==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
215==30137==
216==30137== Conditional jump or move depends on uninitialised value(s)
217==30137== at 0x6B5A6E: void Common::Serializer::syncAsSint32LE<int>(int&, unsigned int, unsigned int) (serializer.h:105)
218==30137== by 0xD1FD94: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:260)
219==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
220==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
221==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
222==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
223==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
224==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
225==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
226==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
227==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
228==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
229==30137==
230==30137== Conditional jump or move depends on uninitialised value(s)
231==30137== at 0xD1FDA9: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:261)
232==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
233==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
234==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
235==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
236==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
237==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
238==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
239==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
240==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
241==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
242==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859)
243==30137==
244==30137== Conditional jump or move depends on uninitialised value(s)
245==30137== at 0xD1FE2C: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:272)
246==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927)
247==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735)
248==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622)
249==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72)
250==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803)
251==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107)
252==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass<MetaEngine> const*, Common::String const&) (saveload.cpp:97)
253==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82)
254==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743)
255==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
256==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859)
257
258
259[No problem so far.]
260
261
262[Enter savegame filename, click OK and BOOM]
263
264
265==30137==
266==30137== Invalid write of size 2
267==30137== at 0x12C229B: void createThumbnail_2<565>(unsigned char const*, unsigned int, unsigned char*, unsigned int, int, int) (thumbnail_intern.cpp:49)
268==30137== by 0x12C1754: createThumbnail(unsigned char const*, unsigned int, unsigned char*, unsigned int, int, int) (thumbnail_intern.cpp:82)
269==30137== by 0x12C1F3C: createThumbnail(Graphics::Surface&, Graphics::Surface&) (thumbnail_intern.cpp:202)
270==30137== by 0x12C1FBE: createThumbnailFromScreen(Graphics::Surface*) (thumbnail_intern.cpp:217)
271==30137== by 0x12C6604: Graphics::saveThumbnail(Common::WriteStream&) (thumbnail.cpp:153)
272==30137== by 0xD21A58: Sci::gamestate_save(Sci::EngineState*, Common::WriteStream*, Common::String const&, Common::String const&) (savegame.cpp:831)
273==30137== by 0xD05153: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:812)
274==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
275==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859)
276==30137== by 0xCFACA8: Sci::SciEngine::runGame() (sci.cpp:707)
277==30137== by 0xCF9946: Sci::SciEngine::run() (sci.cpp:355)
278==30137== by 0x408A3C: runGame(PluginSubclass<MetaEngine> const*, OSystem&, Common::String const&) (main.cpp:226)
279==30137== Address 0xf04e940 is 0 bytes after a block of size 32,000 alloc'd
280==30137== at 0x4C272B8: calloc (vg_replace_malloc.c:566)
281==30137== by 0x12C49F2: Graphics::Surface::create(unsigned short, unsigned short, Graphics::PixelFormat const&) (surface.cpp:73)
282==30137== by 0x12C1F03: createThumbnail(Graphics::Surface&, Graphics::Surface&) (thumbnail_intern.cpp:201)
283==30137== by 0x12C1FBE: createThumbnailFromScreen(Graphics::Surface*) (thumbnail_intern.cpp:217)
284==30137== by 0x12C6604: Graphics::saveThumbnail(Common::WriteStream&) (thumbnail.cpp:153)
285==30137== by 0xD21A58: Sci::gamestate_save(Sci::EngineState*, Common::WriteStream*, Common::String const&, Common::String const&) (savegame.cpp:831)
286==30137== by 0xD05153: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:812)
287==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
288==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859)
289==30137== by 0xCFACA8: Sci::SciEngine::runGame() (sci.cpp:707)
290==30137== by 0xCF9946: Sci::SciEngine::run() (sci.cpp:355)
291==30137== by 0x408A3C: runGame(PluginSubclass<MetaEngine> const*, OSystem&, Common::String const&) (main.cpp:226)
292==30137==
293--30137-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
294--30137-- si_code=80; Faulting address: 0x0; sp: 0x40963cd50
295
296valgrind: the 'impossible' happened:
297 Killed by fatal signal
298==30137== at 0x3805731C: unlinkBlock (m_mallocfree.c:285)
299==30137== by 0x3805866D: vgPlain_arena_free (m_mallocfree.c:1770)
300==30137== by 0x38020C05: create_MC_Chunk (mc_malloc_wrappers.c:154)
301==30137== by 0x380211F0: vgMemCheck_new_block (mc_malloc_wrappers.c:267)
302==30137== by 0x380213DA: vgMemCheck_malloc (mc_malloc_wrappers.c:285)
303==30137== by 0x3808F3E6: vgPlain_scheduler (scheduler.c:1461)
304==30137== by 0x3809E449: run_a_thread_NORETURN (syswrap-linux.c:98)
305==30137== by 0x3809E6DA: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:268)
306==30137== by 0x380B9E3D: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
307==30137== by 0xDEADBEEFDEADBEEE: ???
308==30137== by 0xDEADBEEFDEADBEEE: ???
309==30137== by 0xDEADBEEFDEADBEEE: ???
310
311sched status:
312 running_tid=3
313
314Thread 1: status = VgTs_Yielding
315==30137== at 0x55E9000: ??? (in /lib/x86_64-linux-gnu/libz.so.1.2.7)
316==30137== by 0x55E991F: ??? (in /lib/x86_64-linux-gnu/libz.so.1.2.7)
317==30137== by 0x55EA8A6: deflate (in /lib/x86_64-linux-gnu/libz.so.1.2.7)
318==30137== by 0x13B2C56: Common::GZipWriteStream::processData(int) (zlib.cpp:313)
319==30137== by 0x13B30B9: Common::GZipWriteStream::write(void const*, unsigned int) (zlib.cpp:386)
320==30137== by 0x42B2B1: Common::WriteStream::writeUint16BE(unsigned short) (stream.h:130)
321==30137== by 0x12C6897: Graphics::saveThumbnail(Common::WriteStream&, Graphics::Surface const&) (thumbnail.cpp:200)
322==30137== by 0x12C6634: Graphics::saveThumbnail(Common::WriteStream&) (thumbnail.cpp:158)
323==30137== by 0xD21A58: Sci::gamestate_save(Sci::EngineState*, Common::WriteStream*, Common::String const&, Common::String const&) (savegame.cpp:831)
324==30137== by 0xD05153: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:812)
325==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376)
326==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859)
327==30137== by 0xCFACA8: Sci::SciEngine::runGame() (sci.cpp:707)
328==30137== by 0xCF9946: Sci::SciEngine::run() (sci.cpp:355)
329==30137== by 0x408A3C: runGame(PluginSubclass<MetaEngine> const*, OSystem&, Common::String const&) (main.cpp:226)
330==30137== by 0x409714: scummvm_main (main.cpp:452)
331==30137== by 0x407687: main (posix-main.cpp:45)
332
333Thread 2: status = VgTs_WaitSys
334==30137== at 0x6546BDD: ??? (syscall-template.S:82)
335==30137== by 0x4E89C12: SDL_Delay (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
336==30137== by 0x4E89C41: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
337==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
338==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
339==30137== by 0x7C75B4F: start_thread (pthread_create.c:304)
340==30137== by 0x6575A7C: clone (clone.S:112)
341
342Thread 3: status = VgTs_Runnable
343==30137== at 0x4C28BED: malloc (vg_replace_malloc.c:263)
344==30137== by 0xD78580: Sci::MidiDriver_AmigaMac::generateSamples(short*, int) (amigamac.cpp:711)
345==30137== by 0x51C36C: MidiDriver_Emulated::readBuffer(short*, int) (emumidi.h:100)
346==30137== by 0x1365447: Audio::CopyRateConverter<true, false>::flow(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) (rate.cpp:305)
347==30137== by 0x13263A8: Audio::Channel::mix(short*, unsigned int) (mixer.cpp:610)
348==30137== by 0x1324E20: Audio::MixerImpl::mixCallback(unsigned char*, unsigned int) (mixer.cpp:291)
349==30137== by 0x126C496: SdlMixerManager::callbackHandler(unsigned char*, int) (sdl-mixer.cpp:138)
350==30137== by 0x126C4F2: SdlMixerManager::sdlCallback(void*, unsigned char*, int) (sdl-mixer.cpp:145)
351==30137== by 0x4E3C1A0: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
352==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
353==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
354==30137== by 0x7C75B4F: start_thread (pthread_create.c:304)
355==30137== by 0x6575A7C: clone (clone.S:112)
356
357
358Note: see also the FAQ in the source distribution.
359It contains workarounds to several common problems.
360In particular, if Valgrind aborted or crashed after
361identifying problems in your program, there's a good chance
362that fixing those problems will prevent Valgrind aborting or
363crashing, especially if it happened in m_mallocfree.c.
364
365If that doesn't help, please report this bug to: www.valgrind.org
366
367In the bug report, send all the above text, the valgrind
368version, and what OS and version you are using. Thanks.