View Issue Details

IDProjectCategoryView StatusLast Update
0010651Dwarf FortressWorld Generation -- Generalpublic2018-03-21 19:24
ReporterKhym Chanur Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformAMD x86_64OSLinuxOS VersionFedora 27
Product Version0.44.07 
Summary0010651: Uninitialised bytes written when saving newly generated world.
DescriptionRunning DF under Valgrind I generated a pocket sized non-custom world, with all other parameters left at default. There were no error messages up until I accepted the generated world at 250 years, at which point Valgrind reported one "Syscall param writev(vector[...]) points to uninitialised byte(s)" and one "Syscall param write(buf) points to uninitialised byte(s)".
Additional InformationThe relevant Valgrind output:

==3003== Syscall param writev(vector[...]) points to uninitialised byte(s)
==3003== at 0x60EA224: writev (in /usr/lib64/libc-2.26.so)
==3003== by 0x57C8481: std::__basic_file<char>::xsputn_2(char const*, long, char const*, long) (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x5805B91: std::basic_filebuf<char, std::char_traits<char> >::xsputn(char const*, long) (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x5829C41: std::ostream::write(char const*, long) (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x51ADAB2: file_compressorst::flush_in_buffer() (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x51ADB5E: file_compressorst::write_file(void*, long) (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x410388: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0xF4A2AF: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x8BC9D3: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x1017BC5: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x10EF9B9: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0xA54F65: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== Address 0x182df56 is in the BSS segment of /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress
==3003==
==3003== Syscall param write(buf) points to uninitialised byte(s)
==3003== at 0x60E47DB: write (in /usr/lib64/libc-2.26.so)
==3003== by 0x57C817D: ??? (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x5806BA0: std::basic_filebuf<char, std::char_traits<char> >::_M_convert_to_external(char*, long) (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x5806FAE: std::basic_filebuf<char, std::char_traits<char> >::overflow(int) (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x5806D10: std::basic_filebuf<char, std::char_traits<char> >::_M_terminate_output() (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x580A0BC: std::basic_filebuf<char, std::char_traits<char> >::close() (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x51ADFBB: file_compressorst::close_file() (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x1017BE7: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x10EF9B9: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0xA54F65: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x5139EB1: interfacest::loop() (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x9B627D: mainloop() (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== Address 0x307afea5 is 309 bytes inside a block of size 8,192 alloc'd
==3003== at 0x4C2D8B7: operator new[](unsigned long) (vg_replace_malloc.c:423)
==3003== by 0x5806A57: std::basic_filebuf<char, std::char_traits<char> >::_M_allocate_internal_buffer() (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x580AC41: std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode) (in /usr/lib64/libstdc++.so.6.0.24)
==3003== by 0x51AE063: file_compressorst::open_file(std::string const&, char) (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x101796B: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x10EF9B9: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0xA54F65: ??? (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x5139EB1: interfacest::loop() (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x9B627D: mainloop() (in /home/matt/Games/programs/df_linux/libs/Dwarf_Fortress)
==3003== by 0x511E1C4: enablerst::async_loop() (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x511E4DF: call_loop(void*) (in /home/matt/Games/programs/df_linux/libs/libgraphics.so)
==3003== by 0x4E49E37: ??? (in /usr/lib64/libSDL-1.2.so.0.11.4)
==3003==
 
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Add Note

Note

Issue History

Date Modified Username Field Change
2018-03-21 19:24 Khym Chanur New Issue