Bug#1062205: Crashes desktop when attempting to make a network display

2024-04-28 Thread Bernhard Übelacker

On Fri, 2 Feb 2024 00:58:31 -0800 Josh Triplett  wrote:


Feb 02 00:28:37 o kernel: gnome-shell[1083]: segfault at 20 ip 7fececdf8f04 
sp 7ffc5ad85ed8 error 4 in 
libmutter-clutter-12.so.0.0.0[7fececda5000+9] likely on CPU 3 (core 4, 
socket 0)
Feb 02 00:28:37 o kernel: Code: c3 0f 1f 44 00 00 48 8d 15 e1 1a 04 00 48 8d 35 d2 7e 
05 00 48 8d 3d 4e f4 03 00 e9 d6 f2 fa ff 66 0f 1f 44 00 00 f3 0f 1e fa <48> 8b 
47 20 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 8b 47 28 c3 0f



Hello,
I am not involved in maintaining this package, just looking through some crash 
reports.

My attempt to resolve the dmesg lines from the crash to a source line 
information led me here:

  clutter_paint_context_get_redraw_clip at 
../clutter/clutter/clutter-paint-context.c:140

  
https://sources.debian.org/src/mutter/44.8-3.1/clutter/clutter/clutter-paint-context.c/#L140
  137 const cairo_region_t *
  138 clutter_paint_context_get_redraw_clip (ClutterPaintContext 
*paint_context)
  139 {
  140   return paint_context->redraw_clip;
  141 }

This function name leads to following bug report, which sounds interesting:
  https://gitlab.gnome.org/GNOME/mutter/-/issues/2876

And which got fixed by this merge request:
  https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3283

First upstream release containing this fix would be 45.1,
unfortunately not yet in unstable or testing.


But a proper backtrace might still help to confirm, if this crash is
really the same which is described in the mentioned mutter bug report.
  https://wiki.debian.org/HowToGetABacktrace
Simplest version could be to install systemd-coredump
and inspecting the journal after a crash.

Kind regards,
Bernhard
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1062205
https://wiki.debian.org/HowToGetABacktrace
https://wiki.debian.org/InterpretingKernelOutputAtProcessCrash


Feb 02 00:28:37 o kernel: gnome-shell[1083]: segfault at 20 ip 7fececdf8f04 
sp 7ffc5ad85ed8 error 4 in 
libmutter-clutter-12.so.0.0.0[7fececda5000+9] likely on CPU 3 (core 4, 
socket 0)
Feb 02 00:28:37 o kernel: Code: c3 0f 1f 44 00 00 48 8d 15 e1 1a 04 00 48 8d 35 
d2 7e 05 00 48 8d 3d 4e f4 03 00 e9 d6 f2 fa ff 66 0f 1f 44 00 00 f3 0f 1e fa 
<48> 8b 47 20 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 8b 47 28 c3 0f


error 4 == 0b0100:
 *   bit 0 ==0: no page found
 *   bit 1 ==0: read access
 *   bit 2 ==1: user-mode access
.





# 2024-04-28 Trixie/testing amd64 qemu VM

apt update
apt dist-upgrade
apt build-dep libmutter-12-0

apt install systemd-coredump gdb libmutter-12-0 libmutter-12-0-dbgsym 
coreutils-dbgsym



mkdir /home/benutzer/source/libmutter-12-0/orig -p
cd/home/benutzer/source/libmutter-12-0/orig
apt source libmutter-12-0



echo -n "find /b ..., ..., 0x" && \
echo "c3 0f 1f 44 00 00 48 8d 15 e1 1a 04 00 48 8d 35 d2 7e 05 00 48 8d 3d 4e 
f4 03 00 e9 d6 f2 fa ff 66 0f 1f 44 00 00 f3 0f 1e fa <48> 8b 47 20 c3 0f 1f 80 
00 00 00 00 f3 0f 1e fa 48 8b 47 28 c3 0f" \
 | sed 's/[<>]//g' | sed 's/ /, 0x/g'



gdb -q 
set width 0
set pagination off
file /usr/bin/true
tb main
run
call 
dlopen("/usr/lib/x86_64-linux-gnu/mutter-12/libmutter-clutter-12.so.0.0.0",0x102)
pipe info target | grep "\.text.*libmutter-clutter"
find /b 0x77cf0f30, 0x77d7a6de, 0xc3, 0x0f, 0x1f, 0x44, 0x00, 
0x00, 0x48, 0x8d, 0x15, 0xe1, 0x1a, 0x04, 0x00, 0x48, 0x8d, 0x35, 0xd2, 0x7e, 
0x05, 0x00, 0x48, 0x8d, 0x3d, 0x4e, 0xf4, 0x03, 0x00, 0xe9, 0xd6, 0xf2, 0xfa, 
0xff, 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00, 0xf3, 0x0f, 0x1e, 0xfa, 0x48, 0x8b, 
0x47, 0x20, 0xc3, 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x0f, 0x1e, 
0xfa, 0x48, 0x8b, 0x47, 0x28, 0xc3, 0x0f
b * (0x77d3eeda + 42)
info b
disassemble /r 0x77d3eeda, 0x77d3eeda + 62
directory /home/benutzer/source/libmutter-12-0/orig/mutter-44.8/clutter



benutzer@debian:~$ gdb -q 
(gdb) set width 0
(gdb) set pagination off
(gdb) file /usr/bin/true
Reading symbols from /usr/bin/true...
Reading symbols from 
/usr/lib/debug/.build-id/04/6669aefa60ba9f99cc1c829bf6aac6e0d05d4c.debug...
(gdb) tb main
Temporary breakpoint 1 at 0x2310: file src/true.c, line 56.
(gdb) run
Starting program: /usr/bin/true 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Temporary breakpoint 1, main (argc=1, argv=0x7fffe488) at src/true.c:56
56  src/true.c: Datei oder Verzeichnis nicht gefunden.
(gdb) call 
dlopen("/usr/lib/x86_64-linux-gnu/mutter-12/libmutter-clutter-12.so.0.0.0",0x102)
$1 = (void *) 0xe340
(gdb) pipe info target | grep "\.text.*libmutter-clutter"
0x77cf0f30 - 0x77d7a6de is .text in 
/usr/lib/x86_64-linux-gnu/mutter-12/libmutter-clutter-12.so.0.0.0
(gdb) find /b 0x77cf0f30, 0x77d7a6de, 0xc3, 0x0f, 0x1f, 0x44, 
0x00, 0x00, 0x48, 0x8d, 0x15, 0xe1, 0x1a, 0x04, 0x00, 0x48, 0x8d, 0x35, 0xd2, 
0x7e, 0x05, 0x00, 0x48, 0x8d, 0x3d, 0x4e, 0xf4, 0x03, 0x00, 0xe9, 0xd6, 0xf2, 

Bug#1062205: Crashes desktop when attempting to make a network display

2024-02-02 Thread Josh Triplett
On Wed, Jan 31, 2024 at 08:23:22PM -0500, Jeremy Bícha wrote:
> On Wed, Jan 31, 2024 at 12:39 PM Josh Triplett  wrote:
> > I've attempted to use gnome-network-displays a few times, creating a
> > virtual display and sharing that display on a Chromecast on the local
> > network. When doing so, the entire GNOME desktop crashes, dropping me
> > into GDM to log back in.
> 
> I am uploading gnome-network-displays 0.92.1-1 now so try the new
> version. Both this version and the version you tried worked for me
> using the Chromecast protocol. Could you try to provide a bit more
> information?
> 
> What version of GNOME Shell are you using?

44.8-1

> Are you using X or Wayland?

Wayland.

> Is there anything unusual about your system you should mention?

Nothing that I can think of. Tested with latest sid as of today.

> If you are using Shell extensions, have you tried without them?

No, I'm not running any extensions.

> Does it still crash if you try while logged in as a new user?

Yes.

> Try looking through your systemd log with journatlctl to see if there
> are related errors.

I tried with the newly uploaded version, and managed to get some further
information.

Attempting to cast a window, or the whole screen, appears to work now,
but with 8-10 seconds of lag, making it unusable. (I'll report that as a
separate bug.)

Attempting to cast a virtual monitor still causes a crash. Here are logs
from that attempt:

Feb 02 00:28:36 o gnome-shell[1083]: Added virtual monitor Meta-0
...
Feb 02 00:28:37 o kernel: gnome-shell[1083]: segfault at 20 ip 7fececdf8f04 
sp 7ffc5ad85ed8 error 4 in 
libmutter-clutter-12.so.0.0.0[7fececda5000+9] likely on CPU 3 (core 4, 
socket 0)
Feb 02 00:28:37 o kernel: Code: c3 0f 1f 44 00 00 48 8d 15 e1 1a 04 00 48 8d 35 
d2 7e 05 00 48 8d 3d 4e f4 03 00 e9 d6 f2 fa ff 66 0f 1f 44 00 00 f3 0f 1e fa 
<48> 8b 47 20 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 8b 47 28 c3 0f



Bug#1062205: Crashes desktop when attempting to make a network display

2024-02-01 Thread Matthias Geiger
On Wed, 31 Jan 2024 20:23:22 -0500 =?UTF-8?Q?Jeremy_B=C3=ADcha?= 
 wrote:
> On Wed, Jan 31, 2024 at 12:39 PM Josh Triplett 
 wrote:

> > I've attempted to use gnome-network-displays a few times, creating a
> > virtual display and sharing that display on a Chromecast on the local
> > network. When doing so, the entire GNOME desktop crashes, dropping me
> > into GDM to log back in.
>
> I am uploading gnome-network-displays 0.92.1-1 now so try the new
> version. Both this version and the version you tried worked for me
> using the Chromecast protocol. Could you try to provide a bit more
> information?
>
> What version of GNOME Shell are you using?
>
> Are you using X or Wayland?
>
> Is there anything unusual about your system you should mention?
>
> If you are using Shell extensions, have you tried without them?
>
> Does it still crash if you try while logged in as a new user?
>
> Try looking through your systemd log with journatlctl to see if there
> are related errors.
>
> Thank you,
> Jeremy Bícha
>

>

Hi Josh,

I uploaded network-displays 0.92.1 yesterday. Can you try this version 
and see if you still run into this issue ?


best,

--
Matthias Geiger 
Debian Maintainer



OpenPGP_0x18BD106B3B6C5475.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1062205: Crashes desktop when attempting to make a network display

2024-01-31 Thread Jeremy Bícha
On Wed, Jan 31, 2024 at 12:39 PM Josh Triplett  wrote:
> I've attempted to use gnome-network-displays a few times, creating a
> virtual display and sharing that display on a Chromecast on the local
> network. When doing so, the entire GNOME desktop crashes, dropping me
> into GDM to log back in.

I am uploading gnome-network-displays 0.92.1-1 now so try the new
version. Both this version and the version you tried worked for me
using the Chromecast protocol. Could you try to provide a bit more
information?

What version of GNOME Shell are you using?

Are you using X or Wayland?

Is there anything unusual about your system you should mention?

If you are using Shell extensions, have you tried without them?

Does it still crash if you try while logged in as a new user?

Try looking through your systemd log with journatlctl to see if there
are related errors.

Thank you,
Jeremy Bícha



Bug#1062205: Crashes desktop when attempting to make a network display

2024-01-31 Thread Josh Triplett
Package: gnome-network-displays
Version: 0.91.0-1
Severity: important
X-Debbugs-Cc: j...@joshtriplett.org

I've attempted to use gnome-network-displays a few times, creating a
virtual display and sharing that display on a Chromecast on the local
network. When doing so, the entire GNOME desktop crashes, dropping me
into GDM to log back in.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 6.6.13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-network-displays depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-4+b1
ii  libavahi-common3 0.8-13+b1
ii  libavahi-gobject00.8-13+b1
ii  libc62.37-14
ii  libglib2.0-0 2.78.3-2
ii  libgstreamer-plugins-base1.0-0   1.22.8-1
ii  libgstreamer1.0-01.22.8-1
ii  libgstrtspserver-1.0-0   1.22.8-1
ii  libgtk-3-0   3.24.40-2
ii  libjson-glib-1.0-0   1.8.0-2
ii  libnm0   1.44.2-7
ii  libprotobuf-c1   1.4.1-1+b1
ii  libpulse-mainloop-glib0  16.1+dfsg1-3
ii  libpulse016.1+dfsg1-3
ii  libsoup-3.0-03.4.4-5
ii  network-manager  1.44.2-7
ii  wpasupplicant2:2.10-21

gnome-network-displays recommends no packages.

gnome-network-displays suggests no packages.

-- no debconf information