Mir

Comment 2 for bug 1667542

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: neverball randomly crashes on startup in google::protobuf::MessageLite::InternalSerializeWithCachedSizesToArray from mir_connect_sync

Valgrind says:

==21733== Invalid read of size 4
==21733== at 0xECAC7B2: mir::protobuf::ConnectParameters::ByteSize() const (in /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3)
==21733== by 0xE80B3AB: mir::client::rpc::MirBasicRpcChannel::invocation_for(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::MessageLite const*, unsigned long) (mir_basic_rpc_channel.cpp:153)
==21733== by 0xE80C1C9: mir::client::rpc::MirProtobufRpcChannel::call_method(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::MessageLite const*, google::protobuf::MessageLite*, google::protobuf::Closure*) (mir_protobuf_rpc_channel.cpp:230)
==21733== by 0xE7F7826: mir::client::rpc::DisplayServer::connect(mir::protobuf::ConnectParameters const*, mir::protobuf::Connection*, google::protobuf::Closure*) (mir_display_server.cpp:36)
==21733== by 0xE7C3634: connect (mir_connection.cpp:658)
==21733== by 0xE7C3634: mir_connect (mir_connection_api.cpp:74)
==21733== by 0xE7C446A: mir_connect_sync (mir_connection_api.cpp:100)
==21733== by 0x552008F: MIR_VideoInit (SDL_mirvideo.c:300)
==21733== by 0x5509EE5: SDL_VideoInit_REAL (SDL_video.c:517)
==21733== by 0x54704E6: SDL_InitSubSystem_REAL (SDL.c:173)
==21733== by 0x1125FA: main (in /usr/games/neverball)
==21733== Address 0xe3f1e78 is 8 bytes inside a block of size 32 free'd
==21733== at 0x4C2E25B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21733== by 0xF5B03CA: google::protobuf::ShutdownProtobufLibrary() (common.cc:443)
==21733== by 0xECA8128: ??? (in /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3)
==21733== by 0x4016488: _dl_close_worker.part.0 (dl-close.c:286)
==21733== by 0x4017289: _dl_close_worker (dl-close.c:125)
==21733== by 0x4017289: _dl_close (dl-close.c:822)
==21733== by 0x4010673: _dl_catch_error (dl-error.c:187)
==21733== by 0x778D570: _dlerror_run (dlerror.c:163)
==21733== by 0x778CFDE: dlclose (dlclose.c:46)
==21733== by 0x551E178: SDL_MIR_UnloadSymbols.part.0 (SDL_mirdyn.c:112)
==21733== by 0x551FC21: MIR_Available (SDL_mirvideo.c:103)
==21733== by 0x550A08F: SDL_VideoInit_REAL (SDL_video.c:489)
==21733== by 0x54704E6: SDL_InitSubSystem_REAL (SDL.c:173)