[Bug 1629275] Re: Clients and server all crash

2016-10-04 Thread Daniel van Vugt
OK, see also: bug 1607812

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1629275] Re: Clients and server all crash

2016-10-04 Thread Alan Griffiths
** This bug is no longer a duplicate of bug 1607812
   When stressed by a load of clients starting at once: Failed to get PRIME fd 
from gbm bo

** Description changed:

  mir-24 on yakkety (or mir-0.21 on xenial, or  lp:mir on yakkety)
  
  Start a Mir-on-X11 session:
  
- $ mir_demo_server_minimal &
- $ mirrun gnome-terminal
+ $ mir_demo_server_minimal &
+ $ mirrun gnome-terminal
  
  In the terminal:
  
- $ mir_demo_client_all&
+ $ mir_demo_client_all&
  
  (A script that launches all the Mir demo clients - attached)
  
  Expect: all the clients open
  Actual (most times): gnome-terminal and all the clients crash
  Actual (frequently): gnome-terminal, all the clients, and the server crash
  Actual (occasionally): all the clients open
+ 
+ The "frequent" server crash is lp:1607812, this bug is for the client
+ crash

** Branch unlinked: lp:~alan-griffiths/mir/fix-server-crash

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1629275] Re: Clients and server all crash

2016-10-03 Thread Daniel van Vugt
*** This bug is a duplicate of bug 1607812 ***
https://bugs.launchpad.net/bugs/1607812

Found it.

You logged this a couple of months ago :)

** This bug has been marked a duplicate of bug 1607812
   When stressed by a load of clients starting at once: Failed to get PRIME fd 
from gbm bo

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1629275] Re: Clients and server all crash

2016-10-03 Thread Alan Griffiths
It is also worth noting that starting the mir clients outside the gnome-
terminal seems stable. So whatever weirdness is going on client-side is
associated with gnome-terminal.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1629275] Re: Clients and server all crash

2016-10-03 Thread Alan Griffiths
Using qterminal in place of gnome-terminal works, so I think the server
crash may be the only Mir problem here.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1629275] Re: Clients and server all crash

2016-10-03 Thread Alan Griffiths
** Branch linked: lp:~alan-griffiths/mir/fix-server-crash

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1629275] Re: Clients and server all crash

2016-10-03 Thread Alan Griffiths
And this is where the "signal comes from:

#1  0x777672fa in mir::terminate_with_current_exception ()
at 
/home/alan/display_server/mir/src/server/terminate_with_current_exception.cpp:52
#2  0x778af4c2 in mir::compositor::CompositingFunctor::operator() 
(this=0x559fcae0)
at 
/home/alan/display_server/mir/src/server/compositor/multi_threaded_compositor.cpp:180
#3  0x778b2a7c in std::_Function_handler 
>::_M_invoke(std::_Any_data const&) (__functor=...) at 
/usr/include/c++/6/functional:1770
#4  0x77769846 in std::function::operator()() const 
(this=0x7fffee012d00) at /usr/include/c++/6/functional:2136
#5  0x779ea451 in (anonymous namespace)::Task::execute 
(this=0x7fffee012d00)
at /home/alan/display_server/mir/src/server/thread/basic_thread_pool.cpp:40
#6  0x779ea7ba in (anonymous namespace)::Worker::operator() 
(this=0x559fcbd0)
at /home/alan/display_server/mir/src/server/thread/basic_thread_pool.cpp:91
#7  0x779ed66c in std::__invoke_impl (__f=...) at /usr/include/c++/6/functional:218
#8  0x779ed62e in std::__invoke<(anonymous namespace)::Worker&> 
(__fn=...) at /usr/include/c++/6/functional:260
#9  0x779ed5d8 in std::reference_wrapper<(anonymous 
namespace)::Worker>::operator()<>(void) const (this=0x559fcf08)
at /usr/include/c++/6/functional:474
#10 0x779ed5b6 in std::_Bind_simple()>::_M_invoke<>(std::_Index_tuple<>) (this=0x559fcf08) 
at /usr/include/c++/6/functional:1400
#11 0x779ed540 in std::_Bind_simple()>::operator()(void) (
this=0x559fcf08) at /usr/include/c++/6/functional:1389
#12 0x779ed510 in 
std::thread::_State_impl()> >::_M_run(void) (this=0x559fcf00) at 
/usr/include/c++/6/thread:196
#13 0x7743650f in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#14 0x7490170a in start_thread (arg=0x7fffee013700) at 
pthread_create.c:333
#15 0x76ea50ff in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:105

And that appears to be from failing to handle an exception from
DMABufTextureBinder::ensure_egl_image() ("ERROR:
/home/alan/display_server/mir/src/platforms/mesa/server/buffer_allocator.cpp(151):"
in comment #7)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1629275] Re: Clients and server all crash

2016-10-03 Thread Alan Griffiths
The reason the server exits is:

Thread 1 "mir_demo_server" received signal SIGTERM, Terminated.
0x76ea6200 in __libc_sendmsg (fd=40, msg=0x7fffc3f0, flags=16384) 
at ../sysdeps/unix/sysv/linux/sendmsg.c:28
28  ../sysdeps/unix/sysv/linux/sendmsg.c: No such file or directory.
(gdb) info threads
  Id   Target Id Frame 
* 1Thread 0x77fa47c0 (LWP 23976) "mir_demo_server" 0x76ea6200 
in __libc_sendmsg (fd=40, msg=0x7fffc3f0, 
flags=16384) at ../sysdeps/unix/sysv/linux/sendmsg.c:28
  2Thread 0x7fffee814700 (LWP 23980) "Mir/Snapshot" 
pthread_cond_wait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  3Thread 0x7fffee013700 (LWP 23981) "Mir/Comp" 
pthread_cond_wait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  4Thread 0x7fffed812700 (LWP 23983) "Mir/Input Reade" 0x76e9910d 
in poll () at ../sysdeps/unix/syscall-template.S:84
  5Thread 0x7fffed011700 (LWP 23984) "Mir/IPC" 
pthread_cond_wait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  6Thread 0x7fffec810700 (LWP 23985) "Mir/IPC" __lll_lock_wait () at 
../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
(gdb) c
Continuing.
[Thread 0x7fffec810700 (LWP 23985) exited]
[Thread 0x7fffed011700 (LWP 23984) exited]
[Thread 0x7fffed812700 (LWP 23983) exited]
[Thread 0x7fffee013700 (LWP 23981) exited]
[Thread 0x7fffee814700 (LWP 23980) exited]
ERROR: 
/home/alan/display_server/mir/src/platforms/mesa/server/buffer_allocator.cpp(151):
 Throw in function virtual void 
{anonymous}::DMABufTextureBinder::ensure_egl_image()
Dynamic exception type: 
boost::exception_detail::clone_impl
std::exception::what: Failed to get PRIME fd from gbm bo: No such file or 
directory


Thread 1 "mir_demo_server" received signal SIGSEGV, Segmentation fault.
0x7038b62c in ?? ()
(gdb) bt
#0  0x7038b62c in ?? ()
#1  0x7740a141 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x76dd765a in __cxa_finalize (d=0x77dd60a0) at cxa_finalize.c:56
#3  0x77761d23 in __do_global_dtors_aux () from 
/usr/local/lib/libmirserver.so.42
#4  0x7fffe320 in ?? ()
#5  0x77de8efa in _dl_fini () at dl-fini.c:235
Backtrace stopped: frame did not save the PC

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1629275] Re: Clients and server all crash

2016-10-03 Thread Alan Griffiths
** Also affects: ubuntu
   Importance: Undecided
   Status: New

** Package changed: ubuntu => mir (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629275

Title:
  Clients and server all crash

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs