Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save icassina/4c02d9a394eb6edc6e0701510132179d to your computer and use it in GitHub Desktop.

Select an option

Save icassina/4c02d9a394eb6edc6e0701510132179d to your computer and use it in GitHub Desktop.
xoreos 0.0.4+235.gd2f923f valgrind log
==12152== Memcheck, a memory error detector
==12152== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==12152== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==12152== Command: xoreos -pnwn-dev
==12152== Parent PID: 3752
==12152==
==12152== Syscall param writev(vector[...]) points to uninitialised byte(s)
==12152== at 0x87A4B8D: ??? (in /lib64/libc-2.22.so)
==12152== by 0xD12CD9A: _xcb_conn_wait (in /usr/lib64/libxcb.so.1.1.0)
==12152== by 0xD12D190: _xcb_out_send (in /usr/lib64/libxcb.so.1.1.0)
==12152== by 0xD12D214: xcb_writev (in /usr/lib64/libxcb.so.1.1.0)
==12152== by 0x910164D: _XSend (in /usr/lib64/libX11.so.6.3.0)
==12152== by 0x9101B41: _XReply (in /usr/lib64/libX11.so.6.3.0)
==12152== by 0x90ECCD6: XInternAtom (in /usr/lib64/libX11.so.6.3.0)
==12152== by 0x589234A: SetWindowBordered (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== by 0x5893187: X11_CreateWindow (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== by 0x588652E: SDL_CreateWindow_REAL (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== by 0x588630F: SDL_VideoInit_REAL (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== by 0x57F3BC6: SDL_InitSubSystem_REAL (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== Address 0xdd56aa3 is 35 bytes inside a block of size 16,384 alloc'd
==12152== at 0x4C2C070: calloc (vg_replace_malloc.c:623)
==12152== by 0x90F1DB1: XOpenDisplay (in /usr/lib64/libX11.so.6.3.0)
==12152== by 0x5891614: X11_CreateDevice (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== by 0x58862D0: SDL_VideoInit_REAL (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== by 0x57F3BC6: SDL_InitSubSystem_REAL (in /usr/lib64/libSDL2-2.0.so.0.4.0)
==12152== by 0x5987CD: Graphics::GraphicsManager::init() (graphics.cpp:134)
==12152== by 0x417142: init (xoreos.cpp:286)
==12152== by 0x417142: main (xoreos.cpp:167)
==12152==
==12152== Thread 6:
==12152== Conditional jump or move depends on uninitialised value(s)
==12152== at 0x666E53: normalize_state (mersenne_twister.hpp:341)
==12152== by 0x666E53: seed<boost::uuids::detail::generator_iterator<boost::uuids::detail::seed_rng> > (mersenne_twister.hpp:173)
==12152== by 0x666E53: seed<boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 4022730752u, 18ul, 1812433253u> > (seed_rng.hpp:249)
==12152== by 0x666E53: basic_random_generator (random_generator.hpp:50)
==12152== by 0x666E53: Common::generateIDRandomString() (uuid.cpp:40)
==12152== by 0x5F26D1: Graphics::Aurora::TextureManager::add(Graphics::Aurora::Texture*, Common::UString) (textureman.cpp:131)
==12152== by 0x5F2E56: Graphics::Aurora::TTFFont::Page::Page() (ttffont.cpp:55)
==12152== by 0x5F366B: Graphics::Aurora::TTFFont::addChar(unsigned int) (ttffont.cpp:222)
==12152== by 0x5F378C: Graphics::Aurora::TTFFont::load(Common::SeekableReadStream*, int) (ttffont.cpp:119)
==12152== by 0x5F3931: Graphics::Aurora::TTFFont::TTFFont(Common::SeekableReadStream*, int) (ttffont.cpp:69)
==12152== by 0x5ADAAA: Graphics::Aurora::FontManager::createFont(Graphics::Aurora::FontFormat, Common::UString const&, int) (fontman.cpp:188)
==12152== by 0x5AE3AF: Graphics::Aurora::FontManager::get(Graphics::Aurora::FontFormat, Common::UString const&, int) (fontman.cpp:120)
==12152== by 0x5AE4D1: Graphics::Aurora::FontManager::get(Common::UString const&, int) (fontman.cpp:107)
==12152== by 0x44013D: Engines::ConsoleWindow::ConsoleWindow(Common::UString const&, unsigned long, unsigned long, int) (console.cpp:74)
==12152== by 0x441171: Engines::Console::Console(Engines::Engine&, Common::UString const&, int) (console.cpp:713)
==12152== by 0x4845CF: Engines::NWN::Console::Console(Engines::NWN::NWNEngine&) (console.cpp:64)
==12152==
==12152== Conditional jump or move depends on uninitialised value(s)
==12152== at 0x666E91: normalize_state (mersenne_twister.hpp:350)
==12152== by 0x666E91: seed<boost::uuids::detail::generator_iterator<boost::uuids::detail::seed_rng> > (mersenne_twister.hpp:173)
==12152== by 0x666E91: seed<boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 4022730752u, 18ul, 1812433253u> > (seed_rng.hpp:249)
==12152== by 0x666E91: basic_random_generator (random_generator.hpp:50)
==12152== by 0x666E91: Common::generateIDRandomString() (uuid.cpp:40)
==12152== by 0x5F26D1: Graphics::Aurora::TextureManager::add(Graphics::Aurora::Texture*, Common::UString) (textureman.cpp:131)
==12152== by 0x5F2E56: Graphics::Aurora::TTFFont::Page::Page() (ttffont.cpp:55)
==12152== by 0x5F366B: Graphics::Aurora::TTFFont::addChar(unsigned int) (ttffont.cpp:222)
==12152== by 0x5F378C: Graphics::Aurora::TTFFont::load(Common::SeekableReadStream*, int) (ttffont.cpp:119)
==12152== by 0x5F3931: Graphics::Aurora::TTFFont::TTFFont(Common::SeekableReadStream*, int) (ttffont.cpp:69)
==12152== by 0x5ADAAA: Graphics::Aurora::FontManager::createFont(Graphics::Aurora::FontFormat, Common::UString const&, int) (fontman.cpp:188)
==12152== by 0x5AE3AF: Graphics::Aurora::FontManager::get(Graphics::Aurora::FontFormat, Common::UString const&, int) (fontman.cpp:120)
==12152== by 0x5AE4D1: Graphics::Aurora::FontManager::get(Common::UString const&, int) (fontman.cpp:107)
==12152== by 0x44013D: Engines::ConsoleWindow::ConsoleWindow(Common::UString const&, unsigned long, unsigned long, int) (console.cpp:74)
==12152== by 0x441171: Engines::Console::Console(Engines::Engine&, Common::UString const&, int) (console.cpp:713)
==12152== by 0x4845CF: Engines::NWN::Console::Console(Engines::NWN::NWNEngine&) (console.cpp:64)
==12152==
==12152== Use of uninitialised value of size 8
==12152== at 0x7A32C9E: int std::__int_to_char<char, unsigned long>(char*, unsigned long, char const*, std::_Ios_Fmtflags, bool) (in /usr/lib64/libboost_locale.so.1.56.0)
==12152== by 0x7A3F320: std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<unsigned long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, unsigned long) const (in /usr/lib64/libboost_locale.so.1.56.0)
==12152== by 0x7D1691C: std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, unsigned long) const (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6.0.20)
==12152== by 0x7D24249: std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long) (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6.0.20)
==12152== by 0x6698DE: operator<< (ostream:196)
==12152== by 0x6698DE: std::basic_ostream<char, std::char_traits<char> >& boost::uuids::operator<< <char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, boost::uuids::uuid const&) (uuid_io.hpp:55)
==12152== by 0x666F5D: Common::generateIDRandomString() (uuid.cpp:40)
==12152== by 0x5F26D1: Graphics::Aurora::TextureManager::add(Graphics::Aurora::Texture*, Common::UString) (textureman.cpp:131)
==12152== by 0x5F2E56: Graphics::Aurora::TTFFont::Page::Page() (ttffont.cpp:55)
==12152== by 0x5F366B: Graphics::Aurora::TTFFont::addChar(unsigned int) (ttffont.cpp:222)
==12152== by 0x5F378C: Graphics::Aurora::TTFFont::load(Common::SeekableReadStream*, int) (ttffont.cpp:119)
==12152== by 0x5F3931: Graphics::Aurora::TTFFont::TTFFont(Common::SeekableReadStream*, int) (ttffont.cpp:69)
==12152== by 0x5ADAAA: Graphics::Aurora::FontManager::createFont(Graphics::Aurora::FontFormat, Common::UString const&, int) (fontman.cpp:188)
==12152==
==12152== Conditional jump or move depends on uninitialised value(s)
==12152== at 0x7A32CA5: int std::__int_to_char<char, unsigned long>(char*, unsigned long, char const*, std::_Ios_Fmtflags, bool) (in /usr/lib64/libboost_locale.so.1.56.0)
==12152== by 0x7A3F320: std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<unsigned long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, unsigned long) const (in /usr/lib64/libboost_locale.so.1.56.0)
==12152== by 0x7D1691C: std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, unsigned long) const (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6.0.20)
==12152== by 0x7D24249: std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long) (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6.0.20)
==12152== by 0x6698DE: operator<< (ostream:196)
==12152== by 0x6698DE: std::basic_ostream<char, std::char_traits<char> >& boost::uuids::operator<< <char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, boost::uuids::uuid const&) (uuid_io.hpp:55)
==12152== by 0x666F5D: Common::generateIDRandomString() (uuid.cpp:40)
==12152== by 0x5F26D1: Graphics::Aurora::TextureManager::add(Graphics::Aurora::Texture*, Common::UString) (textureman.cpp:131)
==12152== by 0x5F2E56: Graphics::Aurora::TTFFont::Page::Page() (ttffont.cpp:55)
==12152== by 0x5F366B: Graphics::Aurora::TTFFont::addChar(unsigned int) (ttffont.cpp:222)
==12152== by 0x5F378C: Graphics::Aurora::TTFFont::load(Common::SeekableReadStream*, int) (ttffont.cpp:119)
==12152== by 0x5F3931: Graphics::Aurora::TTFFont::TTFFont(Common::SeekableReadStream*, int) (ttffont.cpp:69)
==12152== by 0x5ADAAA: Graphics::Aurora::FontManager::createFont(Graphics::Aurora::FontFormat, Common::UString const&, int) (fontman.cpp:188)
==12152==
==12152==
==12152== Process terminating with default action of signal 11 (SIGSEGV)
==12152== Bad permissions for mapped region at address 0x0
==12152== at 0x0: ???
==12152== by 0x65E039A: ALSAProc (in /usr/lib64/libopenal.so.1.15.1)
==12152== by 0x65D8489: StarterFunc (in /usr/lib64/libopenal.so.1.15.1)
==12152== by 0x84AE443: start_thread (in /lib64/libpthread-2.22.so)
==12152== by 0x87AC4CC: clone (in /lib64/libc-2.22.so)
==12152==
==12152== HEAP SUMMARY:
==12152== in use at exit: 28,006,255 bytes in 340,962 blocks
==12152== total heap usage: 2,770,169 allocs, 2,429,207 frees, 609,153,044 bytes allocated
==12152==
==12152== LEAK SUMMARY:
==12152== definitely lost: 80 bytes in 1 blocks
==12152== indirectly lost: 0 bytes in 0 blocks
==12152== possibly lost: 4,005,495 bytes in 88,107 blocks
==12152== still reachable: 24,000,680 bytes in 252,854 blocks
==12152== suppressed: 0 bytes in 0 blocks
==12152== Rerun with --leak-check=full to see details of leaked memory
==12152==
==12152== For counts of detected and suppressed errors, rerun with: -v
==12152== Use --track-origins=yes to see where uninitialised values come from
==12152== ERROR SUMMARY: 68 errors from 5 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment