← Back to team overview

touch-packages team mailing list archive

[Bug 1358191] Re: [regression] Clients are crashing (SIGSEGV) on mir_connect()

 

Here's the valgrind output of the error from earlier in the day when I
could reproduce it (on mako):

==8894== Invalid read of size 4
==8894==    at 0x4867B78: std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_weak_release() (shared_ptr_base.h:190)
==8894==    by 0x4866B39: std::__weak_count<(__gnu_cxx::_Lock_policy)2>::~__weak_count() (shared_ptr_base.h:755)
==8894==    by 0x4866279: std::__weak_ptr<mir::client::ClientPlatformFactory, (__gnu_cxx::_Lock_policy)2>::~__weak_ptr() (shared_ptr_base.h:1350)
==8894==    by 0x4866293: std::weak_ptr<mir::client::ClientPlatformFactory>::~weak_ptr() (shared_ptr.h:467)
==8894==    by 0x48662D3: mir::CachedPtr<mir::client::ClientPlatformFactory>::~CachedPtr() (cached_ptr.h:28)
==8894==    by 0x486E3F7: mir::client::DefaultConnectionConfiguration::~DefaultConnectionConfiguration() (in /home/phablet/mir/boom/lib/libmirclient.so.8)
==8894==    by 0x486E441: mir::client::DefaultConnectionConfiguration::~DefaultConnectionConfiguration() (default_connection_configuration.h:46)
==8894==    by 0x4855E8F: std::default_delete<mir::client::ConnectionConfiguration>::operator()(mir::client::ConnectionConfiguration*) const (unique_ptr.h:76)
==8894==    by 0x4855941: std::unique_ptr<mir::client::ConnectionConfiguration, std::default_delete<mir::client::ConnectionConfiguration> >::~unique_ptr() (unique_ptr.h:236)
==8894==    by 0x4855071: (anonymous namespace)::DefaultMirConnectionAPI::connect(char const*, char const*, void (*)(MirConnection*, void*), void*) (mir_connection_api.cpp:75)
==8894==    by 0x48552AB: mir_connect (mir_connection_api.cpp:140)
==8894==    by 0x485530D: mir_connect_sync (mir_connection_api.cpp:156)
==8894==  Address 0x5a92bf4 is not stack'd, malloc'd or (recently) free'd
==8894== 
==8894== 
==8894== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==8894==  Access not within mapped region at address 0x5A92BF4
==8894==    at 0x4867B78: std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_weak_release() (shared_ptr_base.h:190)
==8894==    by 0x4866B39: std::__weak_count<(__gnu_cxx::_Lock_policy)2>::~__weak_count() (shared_ptr_base.h:755)
==8894==    by 0x4866279: std::__weak_ptr<mir::client::ClientPlatformFactory, (__gnu_cxx::_Lock_policy)2>::~__weak_ptr() (shared_ptr_base.h:1350)
==8894==    by 0x4866293: std::weak_ptr<mir::client::ClientPlatformFactory>::~weak_ptr() (shared_ptr.h:467)
==8894==    by 0x48662D3: mir::CachedPtr<mir::client::ClientPlatformFactory>::~CachedPtr() (cached_ptr.h:28)
==8894==    by 0x486E3F7: mir::client::DefaultConnectionConfiguration::~DefaultConnectionConfiguration() (in /home/phablet/mir/boom/lib/libmirclient.so.8)
==8894==    by 0x486E441: mir::client::DefaultConnectionConfiguration::~DefaultConnectionConfiguration() (default_connection_configuration.h:46)
==8894==    by 0x4855E8F: std::default_delete<mir::client::ConnectionConfiguration>::operator()(mir::client::ConnectionConfiguration*) const (unique_ptr.h:76)
==8894==    by 0x4855941: std::unique_ptr<mir::client::ConnectionConfiguration, std::default_delete<mir::client::ConnectionConfiguration> >::~unique_ptr() (unique_ptr.h:236)
==8894==    by 0x4855071: (anonymous namespace)::DefaultMirConnectionAPI::connect(char const*, char const*, void (*)(MirConnection*, void*), void*) (mir_connection_api.cpp:75)
==8894==    by 0x48552AB: mir_connect (mir_connection_api.cpp:140)
==8894==    by 0x485530D: mir_connect_sync (mir_connection_api.cpp:156)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1358191

Title:
  [regression] Clients are crashing (SIGSEGV) on mir_connect()

Status in Mir:
  In Progress
Status in Mir 0.6 series:
  Triaged
Status in “mir” package in Ubuntu:
  Triaged

Bug description:
  On image 195 on mako,

  phablet@ubuntu-phablet:~$ mirping
  Segmentation fault (core dumped)
  phablet@ubuntu-phablet:~$ mirscreencast -n1
  Segmentation fault (core dumped)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1358191/+subscriptions