Mir

mir_demo_server segfaults in schroot

Bug #1677523 reported by Eleni Maria Stea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Invalid
Undecided
Unassigned

Bug Description

Running mir_demo_server and miral-shell on a schroot produces the following segfault:

-------
error
-------

[2017-03-30 08:25:25.139004] x11-display: 1 visual(s) found
[2017-03-30 08:25:25.139028] x11-display: Using the first one :
[2017-03-30 08:25:25.139053] x11-display: ID : 32
[2017-03-30 08:25:25.139072] x11-display: screen : 0
[2017-03-30 08:25:25.139080] x11-display: depth : 24
[2017-03-30 08:25:25.139086] x11-display: red_mask : 0xFF0000
[2017-03-30 08:25:25.139093] x11-display: green_mask : 0xFF00
[2017-03-30 08:25:25.139099] x11-display: blue_mask : 0xFF
[2017-03-30 08:25:25.139105] x11-display: colormap_size : 256
[2017-03-30 08:25:25.139111] x11-display: bits_per_rgb : 8
[2017-03-30 08:25:25.159633] mirserver: Using software cursor
sh: 1: /usr/share/apport/recoverable_problem: not found
ERROR: Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >
std::exception::what: bind: No such file or directory

------------------

gdb output:

------------------

mir_demo_server has no bt.
miral-shell gdb output: https://pastebin.com/raw/LuEV6nVV

---------------------------------

schroot desktop configuration:

---------------------------------

config:

[zesty-zapus]
description=Ubuntu zesty zapus (17.04)
type=directory
directory=/chroot/zesty
users=root,sbuild
groups=adm,eleni
profile=desktop
personality=linux
preserve-environment=true
aliases=zz

fstab:

https://pastebin.com/raw/2hxQDAJq

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Lack of a core file/backtrace appears to be Mir's fault:
examples/server_example.cpp: char const command_fmt[] = "/usr/share/apport/recoverable_problem --pid %d";

No application should be doing that. We have error reporting built into the OS, which is more reliable.

Try this:
$ ulimit -c unlimited
$ mir_demo_server --on-fatal-error-abort

Do you get a core file?

Changed in mir:
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Alternatively, try installing 'apport' to get that binary that you are missing.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

And please also try 'mir_proving_server'.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

<ubot5> bug 1677523 in Mir "mir_demo_server segfaults in schroot" [Undecided,Incomplete] https://launchpad.net/bugs/1677523
<hikiko> alan_g, I forgot this report should be marked as invalid
<hikiko> I had forgotten to mount /usr/run/1000 in the chroot
<hikiko> and only root could run mir

Changed in mir:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.