ScummVM 1.7.0 ==30137== Memcheck, a memory error detector ==30137== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==30137== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==30137== Command: ./scummvm ==30137== ==30141== Warning: invalid file descriptor 1024 in syscall close() ==30141== ==30141== HEAP SUMMARY: ==30141== in use at exit: 845,316 bytes in 1,357 blocks ==30141== total heap usage: 13,986 allocs, 12,629 frees, 2,997,012 bytes allocated ==30141== ==30141== 24 bytes in 1 blocks are possibly lost in loss record 149 of 478 ==30141== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287) ==30141== by 0x127154D: StdioStream::makeFromPath(Common::String const&, bool) (stdiostream.cpp:102) ==30141== by 0x127057D: POSIXFilesystemNode::createWriteStream() (posix-fs.cpp:250) ==30141== by 0x138B00B: Common::FSNode::createWriteStream() const (fs.cpp:151) ==30141== by 0x407A95: OSystem_POSIX::createLogFile() (posix.cpp:156) ==30141== by 0x4058AD: OSystem_SDL::init() (sdl.cpp:123) ==30141== by 0x40775F: OSystem_POSIX::init() (posix.cpp:59) ==30141== by 0x407676: main (posix-main.cpp:38) ==30141== ==30141== 192 (16 direct, 176 indirect) bytes in 1 blocks are definitely lost in loss record 394 of 478 ==30141== at 0x4C28CCE: realloc (vg_replace_malloc.c:632) ==30141== by 0x6ECF04E: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x6ECF4CF: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x6ED0BA4: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x6ED1335: _XlcCreateLC (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x6EED72F: _XlcDefaultLoader (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x6ED8555: _XOpenLC (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x6ED8697: _XlcCurrentLC (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x6ED86ED: XSetLocaleModifiers (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==30141== by 0x4E70F2B: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30141== by 0x4E71D00: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30141== by 0x4E6215A: SDL_VideoInit (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30141== ==30141== LEAK SUMMARY: ==30141== definitely lost: 16 bytes in 1 blocks ==30141== indirectly lost: 176 bytes in 4 blocks ==30141== possibly lost: 24 bytes in 1 blocks ==30141== still reachable: 845,100 bytes in 1,351 blocks ==30141== suppressed: 0 bytes in 0 blocks ==30141== Reachable blocks (those to which a pointer was found) are not shown. ==30141== To see them, rerun with: --leak-check=full --show-reachable=yes ==30141== ==30141== For counts of detected and suppressed errors, rerun with: -v ==30141== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4) WARNING: SDL mixer output buffer size: 705 differs from desired: 2048! WARNING: You are missing a valid 'translations.dat' file. GUI translation will not be available! WARNING: Could not find theme 'scummmodern' falling back to builtin! [Sierra logo movie starts here] WARNING: Unhandled kMacPlatform(3)! WARNING: Unhandled kMacPlatform(2)! WARNING: Unhandled kMacPlatform(2)! [start new game] [play a while or immediately click save; the save dialog appears and then...] ==30137== Thread 3: ==30137== Invalid read of size 1 ==30137== at 0xD765AA: Sci::MidiDriver_AmigaMac::interpolate(signed char*, int, bool) (amigamac.cpp:176) ==30137== by 0xD767DB: Sci::MidiDriver_AmigaMac::playInstrument(short*, Sci::MidiDriver_AmigaMac::Voice*, int) (amigamac.cpp:223) ==30137== by 0xD78634: Sci::MidiDriver_AmigaMac::generateSamples(short*, int) (amigamac.cpp:718) ==30137== by 0x51C36C: MidiDriver_Emulated::readBuffer(short*, int) (emumidi.h:100) ==30137== by 0x1365447: Audio::CopyRateConverter::flow(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) (rate.cpp:305) ==30137== by 0x13263A8: Audio::Channel::mix(short*, unsigned int) (mixer.cpp:610) ==30137== by 0x1324E20: Audio::MixerImpl::mixCallback(unsigned char*, unsigned int) (mixer.cpp:291) ==30137== by 0x126C496: SdlMixerManager::callbackHandler(unsigned char*, int) (sdl-mixer.cpp:138) ==30137== by 0x126C4F2: SdlMixerManager::sdlCallback(void*, unsigned char*, int) (sdl-mixer.cpp:145) ==30137== by 0x4E3C1A0: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== Address 0xf93b67b is 1 bytes after a block of size 7,002 alloc'd ==30137== at 0x4C28BED: malloc (vg_replace_malloc.c:263) ==30137== by 0xD79A46: Sci::MidiDriver_AmigaMac::loadInstrumentsSCI1(Common::SeekableReadStream&) (amigamac.cpp:969) ==30137== by 0xD78060: Sci::MidiDriver_AmigaMac::open() (amigamac.cpp:615) ==30137== by 0xD754DC: Sci::MidiPlayer::open(Sci::ResourceManager*) (mididriver.h:88) ==30137== by 0xD6F8D0: Sci::MidiPlayer::open() (mididriver.h:86) ==30137== by 0xD6D20F: Sci::SciMusic::init() (music.cpp:124) ==30137== by 0xD70009: Sci::SoundCommandParser::SoundCommandParser(Sci::ResourceManager*, Sci::SegManager*, Sci::Kernel*, Sci::AudioPlayer*, Sci::SciVersion) (soundcmd.cpp:50) ==30137== by 0xCF9526: Sci::SciEngine::run() (sci.cpp:261) ==30137== by 0x408A3C: runGame(PluginSubclass const*, OSystem&, Common::String const&) (main.cpp:226) ==30137== by 0x409714: scummvm_main (main.cpp:452) ==30137== by 0x407687: main (posix-main.cpp:45) ==30137== ==30137== Invalid read of size 1 ==30137== at 0xD765C6: Sci::MidiDriver_AmigaMac::interpolate(signed char*, int, bool) (amigamac.cpp:177) ==30137== by 0xD767DB: Sci::MidiDriver_AmigaMac::playInstrument(short*, Sci::MidiDriver_AmigaMac::Voice*, int) (amigamac.cpp:223) ==30137== by 0xD78634: Sci::MidiDriver_AmigaMac::generateSamples(short*, int) (amigamac.cpp:718) ==30137== by 0x51C36C: MidiDriver_Emulated::readBuffer(short*, int) (emumidi.h:100) ==30137== by 0x1365447: Audio::CopyRateConverter::flow(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) (rate.cpp:305) ==30137== by 0x13263A8: Audio::Channel::mix(short*, unsigned int) (mixer.cpp:610) ==30137== by 0x1324E20: Audio::MixerImpl::mixCallback(unsigned char*, unsigned int) (mixer.cpp:291) ==30137== by 0x126C496: SdlMixerManager::callbackHandler(unsigned char*, int) (sdl-mixer.cpp:138) ==30137== by 0x126C4F2: SdlMixerManager::sdlCallback(void*, unsigned char*, int) (sdl-mixer.cpp:145) ==30137== by 0x4E3C1A0: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== Address 0xf93b67c is 2 bytes after a block of size 7,002 alloc'd ==30137== at 0x4C28BED: malloc (vg_replace_malloc.c:263) ==30137== by 0xD79A46: Sci::MidiDriver_AmigaMac::loadInstrumentsSCI1(Common::SeekableReadStream&) (amigamac.cpp:969) ==30137== by 0xD78060: Sci::MidiDriver_AmigaMac::open() (amigamac.cpp:615) ==30137== by 0xD754DC: Sci::MidiPlayer::open(Sci::ResourceManager*) (mididriver.h:88) ==30137== by 0xD6F8D0: Sci::MidiPlayer::open() (mididriver.h:86) ==30137== by 0xD6D20F: Sci::SciMusic::init() (music.cpp:124) ==30137== by 0xD70009: Sci::SoundCommandParser::SoundCommandParser(Sci::ResourceManager*, Sci::SegManager*, Sci::Kernel*, Sci::AudioPlayer*, Sci::SciVersion) (soundcmd.cpp:50) ==30137== by 0xCF9526: Sci::SciEngine::run() (sci.cpp:261) ==30137== by 0x408A3C: runGame(PluginSubclass const*, OSystem&, Common::String const&) (main.cpp:226) ==30137== by 0x409714: scummvm_main (main.cpp:452) ==30137== by 0x407687: main (posix-main.cpp:45) ==30137== ==30137== Thread 1: ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0x13B22BA: Common::wrapCompressedReadStream(Common::SeekableReadStream*, unsigned int) (zlib.cpp:399) ==30137== by 0x125B5D7: DefaultSaveFileManager::openForLoading(Common::String const&) (default-saves.cpp:97) ==30137== by 0xCE920B: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:732) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0x13B22CA: Common::wrapCompressedReadStream(Common::SeekableReadStream*, unsigned int) (zlib.cpp:399) ==30137== by 0x125B5D7: DefaultSaveFileManager::openForLoading(Common::String const&) (default-saves.cpp:97) ==30137== by 0xCE920B: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:732) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0xD2223E: Common::Serializer::syncString(Common::String&, unsigned int, unsigned int) (serializer.h:218) ==30137== by 0xD1FD58: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:258) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0xD2224E: Common::Serializer::syncString(Common::String&, unsigned int, unsigned int) (serializer.h:218) ==30137== by 0xD1FD58: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:258) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0x6B5A5E: void Common::Serializer::syncAsSint32LE(int&, unsigned int, unsigned int) (serializer.h:105) ==30137== by 0xD1FD76: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:259) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0x6B5A6E: void Common::Serializer::syncAsSint32LE(int&, unsigned int, unsigned int) (serializer.h:105) ==30137== by 0xD1FD76: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:259) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0x6B5A5E: void Common::Serializer::syncAsSint32LE(int&, unsigned int, unsigned int) (serializer.h:105) ==30137== by 0xD1FD94: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:260) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0x6B5A6E: void Common::Serializer::syncAsSint32LE(int&, unsigned int, unsigned int) (serializer.h:105) ==30137== by 0xD1FD94: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:260) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0xD1FDA9: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:261) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859) ==30137== ==30137== Conditional jump or move depends on uninitialised value(s) ==30137== at 0xD1FE2C: Sci::sync_SavegameMetadata(Common::Serializer&, Sci::SavegameMetadata&) (savegame.cpp:272) ==30137== by 0xD22067: Sci::get_savegame_metadata(Common::SeekableReadStream*, Sci::SavegameMetadata*) (savegame.cpp:927) ==30137== by 0xCE923F: Sci::SciMetaEngine::listSaves(char const*) const (detection.cpp:735) ==30137== by 0x122535C: GUI::SaveLoadChooserGrid::open() (saveload-dialog.cpp:622) ==30137== by 0x1201EE2: GUI::Dialog::runModal() (dialog.cpp:72) ==30137== by 0x1225F68: GUI::SaveLoadChooserGrid::runIntern() (saveload-dialog.cpp:803) ==30137== by 0x12224B3: GUI::SaveLoadChooserDialog::run(Common::String const&, MetaEngine const*) (saveload-dialog.cpp:107) ==30137== by 0x1221FC8: GUI::SaveLoadChooser::runModalWithPluginAndTarget(PluginSubclass const*, Common::String const&) (saveload.cpp:97) ==30137== by 0x1221F09: GUI::SaveLoadChooser::runModalWithCurrentTarget() (saveload.cpp:82) ==30137== by 0xD04D1A: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:743) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859) [No problem so far.] [Enter savegame filename, click OK and BOOM] ==30137== ==30137== Invalid write of size 2 ==30137== at 0x12C229B: void createThumbnail_2<565>(unsigned char const*, unsigned int, unsigned char*, unsigned int, int, int) (thumbnail_intern.cpp:49) ==30137== by 0x12C1754: createThumbnail(unsigned char const*, unsigned int, unsigned char*, unsigned int, int, int) (thumbnail_intern.cpp:82) ==30137== by 0x12C1F3C: createThumbnail(Graphics::Surface&, Graphics::Surface&) (thumbnail_intern.cpp:202) ==30137== by 0x12C1FBE: createThumbnailFromScreen(Graphics::Surface*) (thumbnail_intern.cpp:217) ==30137== by 0x12C6604: Graphics::saveThumbnail(Common::WriteStream&) (thumbnail.cpp:153) ==30137== by 0xD21A58: Sci::gamestate_save(Sci::EngineState*, Common::WriteStream*, Common::String const&, Common::String const&) (savegame.cpp:831) ==30137== by 0xD05153: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:812) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859) ==30137== by 0xCFACA8: Sci::SciEngine::runGame() (sci.cpp:707) ==30137== by 0xCF9946: Sci::SciEngine::run() (sci.cpp:355) ==30137== by 0x408A3C: runGame(PluginSubclass const*, OSystem&, Common::String const&) (main.cpp:226) ==30137== Address 0xf04e940 is 0 bytes after a block of size 32,000 alloc'd ==30137== at 0x4C272B8: calloc (vg_replace_malloc.c:566) ==30137== by 0x12C49F2: Graphics::Surface::create(unsigned short, unsigned short, Graphics::PixelFormat const&) (surface.cpp:73) ==30137== by 0x12C1F03: createThumbnail(Graphics::Surface&, Graphics::Surface&) (thumbnail_intern.cpp:201) ==30137== by 0x12C1FBE: createThumbnailFromScreen(Graphics::Surface*) (thumbnail_intern.cpp:217) ==30137== by 0x12C6604: Graphics::saveThumbnail(Common::WriteStream&) (thumbnail.cpp:153) ==30137== by 0xD21A58: Sci::gamestate_save(Sci::EngineState*, Common::WriteStream*, Common::String const&, Common::String const&) (savegame.cpp:831) ==30137== by 0xD05153: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:812) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859) ==30137== by 0xCFACA8: Sci::SciEngine::runGame() (sci.cpp:707) ==30137== by 0xCF9946: Sci::SciEngine::run() (sci.cpp:355) ==30137== by 0x408A3C: runGame(PluginSubclass const*, OSystem&, Common::String const&) (main.cpp:226) ==30137== --30137-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting --30137-- si_code=80; Faulting address: 0x0; sp: 0x40963cd50 valgrind: the 'impossible' happened: Killed by fatal signal ==30137== at 0x3805731C: unlinkBlock (m_mallocfree.c:285) ==30137== by 0x3805866D: vgPlain_arena_free (m_mallocfree.c:1770) ==30137== by 0x38020C05: create_MC_Chunk (mc_malloc_wrappers.c:154) ==30137== by 0x380211F0: vgMemCheck_new_block (mc_malloc_wrappers.c:267) ==30137== by 0x380213DA: vgMemCheck_malloc (mc_malloc_wrappers.c:285) ==30137== by 0x3808F3E6: vgPlain_scheduler (scheduler.c:1461) ==30137== by 0x3809E449: run_a_thread_NORETURN (syswrap-linux.c:98) ==30137== by 0x3809E6DA: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:268) ==30137== by 0x380B9E3D: ??? (in /usr/lib/valgrind/memcheck-amd64-linux) ==30137== by 0xDEADBEEFDEADBEEE: ??? ==30137== by 0xDEADBEEFDEADBEEE: ??? ==30137== by 0xDEADBEEFDEADBEEE: ??? sched status: running_tid=3 Thread 1: status = VgTs_Yielding ==30137== at 0x55E9000: ??? (in /lib/x86_64-linux-gnu/libz.so.1.2.7) ==30137== by 0x55E991F: ??? (in /lib/x86_64-linux-gnu/libz.so.1.2.7) ==30137== by 0x55EA8A6: deflate (in /lib/x86_64-linux-gnu/libz.so.1.2.7) ==30137== by 0x13B2C56: Common::GZipWriteStream::processData(int) (zlib.cpp:313) ==30137== by 0x13B30B9: Common::GZipWriteStream::write(void const*, unsigned int) (zlib.cpp:386) ==30137== by 0x42B2B1: Common::WriteStream::writeUint16BE(unsigned short) (stream.h:130) ==30137== by 0x12C6897: Graphics::saveThumbnail(Common::WriteStream&, Graphics::Surface const&) (thumbnail.cpp:200) ==30137== by 0x12C6634: Graphics::saveThumbnail(Common::WriteStream&) (thumbnail.cpp:158) ==30137== by 0xD21A58: Sci::gamestate_save(Sci::EngineState*, Common::WriteStream*, Common::String const&, Common::String const&) (savegame.cpp:831) ==30137== by 0xD05153: Sci::kSaveGame(Sci::EngineState*, int, Sci::reg_t*) (kfile.cpp:812) ==30137== by 0xD36183: Sci::callKernelFunc(Sci::EngineState*, int, int) (vm.cpp:376) ==30137== by 0xD38108: Sci::run_vm(Sci::EngineState*) (vm.cpp:859) ==30137== by 0xCFACA8: Sci::SciEngine::runGame() (sci.cpp:707) ==30137== by 0xCF9946: Sci::SciEngine::run() (sci.cpp:355) ==30137== by 0x408A3C: runGame(PluginSubclass const*, OSystem&, Common::String const&) (main.cpp:226) ==30137== by 0x409714: scummvm_main (main.cpp:452) ==30137== by 0x407687: main (posix-main.cpp:45) Thread 2: status = VgTs_WaitSys ==30137== at 0x6546BDD: ??? (syscall-template.S:82) ==30137== by 0x4E89C12: SDL_Delay (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E89C41: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x7C75B4F: start_thread (pthread_create.c:304) ==30137== by 0x6575A7C: clone (clone.S:112) Thread 3: status = VgTs_Runnable ==30137== at 0x4C28BED: malloc (vg_replace_malloc.c:263) ==30137== by 0xD78580: Sci::MidiDriver_AmigaMac::generateSamples(short*, int) (amigamac.cpp:711) ==30137== by 0x51C36C: MidiDriver_Emulated::readBuffer(short*, int) (emumidi.h:100) ==30137== by 0x1365447: Audio::CopyRateConverter::flow(Audio::AudioStream&, short*, unsigned int, unsigned short, unsigned short) (rate.cpp:305) ==30137== by 0x13263A8: Audio::Channel::mix(short*, unsigned int) (mixer.cpp:610) ==30137== by 0x1324E20: Audio::MixerImpl::mixCallback(unsigned char*, unsigned int) (mixer.cpp:291) ==30137== by 0x126C496: SdlMixerManager::callbackHandler(unsigned char*, int) (sdl-mixer.cpp:138) ==30137== by 0x126C4F2: SdlMixerManager::sdlCallback(void*, unsigned char*, int) (sdl-mixer.cpp:145) ==30137== by 0x4E3C1A0: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E44405: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x4E87898: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4) ==30137== by 0x7C75B4F: start_thread (pthread_create.c:304) ==30137== by 0x6575A7C: clone (clone.S:112) Note: see also the FAQ in the source distribution. It contains workarounds to several common problems. In particular, if Valgrind aborted or crashed after identifying problems in your program, there's a good chance that fixing those problems will prevent Valgrind aborting or crashing, especially if it happened in m_mallocfree.c. If that doesn't help, please report this bug to: www.valgrind.org In the bug report, send all the above text, the valgrind version, and what OS and version you are using. Thanks.