gdm3 crashed with SIGTRAP logging "Creating pipes for GWakeup: Too many open files\n" in g_wakeup_new() from g_main_context_new() from g_dbus_connection_send_message_with_reply_sync()

Bug #1597150 reported by errors.ubuntu.com bug bridge
90
This bug affects 11 people
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Confirmed
High
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding gdm3. This problem was most recently seen with version 3.20.1-0ubuntu1~xenial1, the problem page at https://errors.ubuntu.com/problem/f1a0b7d69a408c29549cadfaef83d29a10d491db contains more details.

Tags: bionic focal
summary: - /usr/sbin/gdm3:5:g_wakeup_new:g_main_context_new:g_dbus_connection_send_message_with_reply_sync:g_dbus_connection_call_sync_internal:g_dbus_connection_call_sync
+ gdm3 crashed with SIGTRAP in g_wakeup_new() from g_main_context_new()
+ from g_dbus_connection_send_message_with_reply_sync() from
+ g_dbus_connection_call_sync_internal() from
+ g_dbus_connection_call_sync()
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: gdm3 crashed with SIGTRAP in g_wakeup_new() from g_main_context_new() from g_dbus_connection_send_message_with_reply_sync() from g_dbus_connection_call_sync_internal() from g_dbus_connection_call_sync()

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdm3 (Ubuntu):
status: New → Confirmed
tags: added: artful
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue looks like a resource leak on the system, could somebody having the issue run "sudo lsof" and copy the output to the bug?

Changed in gdm3 (Ubuntu):
importance: Undecided → High
summary: - gdm3 crashed with SIGTRAP in g_wakeup_new() from g_main_context_new()
- from g_dbus_connection_send_message_with_reply_sync() from
- g_dbus_connection_call_sync_internal() from
- g_dbus_connection_call_sync()
+ gdm3 crashed with SIGTRAP logging "Creating pipes for GWakeup: Too many
+ open files\n" in g_wakeup_new() from g_main_context_new() from
+ g_dbus_connection_send_message_with_reply_sync()
tags: added: bionic
tags: added: cosmic
Revision history for this message
Dash (devel-tootai) wrote :

I ran lsof, max display lines I saw (sudo lsof |wc -l) are near of 22000. Attached is an lsof runned after I restart gdm3

Daniel

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

Thanks, but unfortunately that snapshot was taken at the wrong time.

We would need 'lsof' to be run before gdm3 has crashed (but after it has been running for a long time), so as to see what exactly is accumulating over time.

Revision history for this message
Dash (devel-tootai) wrote :

Hi, here is the detail of what happend:

- remove all files from /var/crash
- restart computer, the Ubuntu screen with the dots is shown
- when time of greeting appears in /var/crash _usr_bin_Xwayland.124.crash and .lock files
- some seconds after appears _usr_bin_gnome-shell.124.crash in this directory
- after a long time, eg 15min, no other crash
- I ran lsof and killed gdm3 PID with kill -9 <PID of GDM3> (attached lsof file)
- appears in /var/crash _usr_lib_xorg_Xorg.0.crash

If the log fiel is still unusable I could perhaps try the command you told me yesterday:
ubuntu-bug _usr_bin_Xwayland.124.crash
ubuntu-bug _usr_bin_gnome-shell.124.crash

Please advice.

Daniel

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

Thanks. Sorry, I forgot to mention you need to run it under 'sudo' to avoid all those "Permission denied" errors.

Try this:

  sudo lsof -c gdm3

Revision history for this message
Dash (devel-tootai) wrote :

I did the all stuff again and first crashed gnome-shell then Xwayland. gdm3 is still running with the same PID but gdm-wayland-session PID change after few seconds. Example:

  821 ? Ssl 0:00 /usr/sbin/gdm3
 3911 pts/3 S+ 0:00 grep --color=auto gdm3
 3935 tty1 Ssl+ 0:00 /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
severine@JS-PC:~$ sudo ps ax|grep gdm3
  821 ? Ssl 0:00 /usr/sbin/gdm3
 4486 tty1 Ssl+ 0:00 /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
 4551 pts/3 S+ 0:00 grep --color=auto gdm3
severine@JS-PC:~$ sudo ps ax|grep gdm3
  821 ? Ssl 0:00 /usr/sbin/gdm3
 4662 tty1 Ssl+ 0:00 /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
 4811 pts/3 S+ 0:00 grep --color=auto gdm3

After a while, around 20~30 min, gdm-wayland-session is no more running

Attached is the log file before I killed gdm3

Do you not prefer that I send you the gnome-shell and Xwayland crash files ?

Daniel

Revision history for this message
Andrew Diete (adiete-adiete) wrote : Re: [Bug 1597150] Re: gdm3 crashed with SIGTRAP logging "Creating pipes for GWakeup: Too many open files\n" in g_wakeup_new() from g_main_context_new() from g_dbus_connection_send_message_with_reply_sync()
Download full text (8.4 KiB)

Hi,

The crash I recall submitting is for when a regular user is logged out of
seat0 the seat then has to terminated with loginctl to be able to log in
again.

Here is the command output you asked for. its from seat0 while logged into
the desktop. Let me know of other times or conditions you would like to see?

sudo lsof -c gdm3
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs
      Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gdm3 1670 root cwd DIR 8,18 4096 2 /
gdm3 1670 root rtd DIR 8,18 4096 2 /
gdm3 1670 root txt REG 8,18 420224 3278823
/usr/sbin/gdm3
gdm3 1670 root mem REG 8,18 47568 6291806
/lib/x86_64-linux-gnu/libnss_files-2.27.so
gdm3 1670 root mem REG 8,18 47576 6291808
/lib/x86_64-linux-gnu/libnss_nis-2.27.so
gdm3 1670 root mem REG 8,18 39744 6291804
/lib/x86_64-linux-gnu/libnss_compat-2.27.so
gdm3 1670 root mem REG 8,18 3004224 3282687
/usr/lib/locale/locale-archive
gdm3 1670 root mem REG 8,18 27112 6291462
/lib/x86_64-linux-gnu/libuuid.so.1.3.0
gdm3 1670 root mem REG 8,18 84032 6291689
/lib/x86_64-linux-gnu/libgpg-error.so.0.22.0
gdm3 1670 root mem REG 8,18 311720 6291863
/lib/x86_64-linux-gnu/libblkid.so.1.1.0
gdm3 1670 root mem REG 8,18 14560 6291702
/lib/x86_64-linux-gnu/libdl-2.27.so
gdm3 1670 root mem REG 8,18 1155768 6292246
/lib/x86_64-linux-gnu/libgcrypt.so.20.2.1
gdm3 1670 root mem REG 8,18 112672 3279547
/usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
gdm3 1670 root mem REG 8,18 153984 6297074
/lib/x86_64-linux-gnu/liblzma.so.5.2.2
gdm3 1670 root mem REG 8,18 31680 6291813
/lib/x86_64-linux-gnu/librt-2.27.so
gdm3 1670 root mem REG 8,18 97176 6291803
/lib/x86_64-linux-gnu/libnsl-2.27.so
gdm3 1670 root mem REG 8,18 80104 6291960
/lib/x86_64-linux-gnu/libbsd.so.0.8.7
gdm3 1670 root mem REG 8,18 39208 6291701
/lib/x86_64-linux-gnu/libcrypt-2.27.so
gdm3 1670 root mem REG 8,18 464824 6291833
/lib/x86_64-linux-gnu/libpcre.so.3.13.3
gdm3 1670 root mem REG 8,18 31032 3277313
/usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
gdm3 1670 root mem REG 8,18 340232 6291865
/lib/x86_64-linux-gnu/libmount.so.1.1.0
gdm3 1670 root mem REG 8,18 101168 6291812
/lib/x86_64-linux-gnu/libresolv-2.27.so
gdm3 1670 root mem REG 8,18 154832 6291841
/lib/x86_64-linux-gnu/libselinux.so.1
gdm3 1670 root mem REG 8,18 116960 6297190
/lib/x86_64-linux-gnu/libz.so.1.2.11
gdm3 1670 root mem REG 8,18...

Read more...

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

Thanks. Unfortunately that doesn't show a leak yet.

Next, please leave the machine running for a few days first, and then repeat the command.

Revision history for this message
Andrew Diete (adiete-adiete) wrote :
Download full text (7.8 KiB)

Its been up 2 days, 57 min

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gdm3 1561 root cwd DIR 8,18 4096 2 /
gdm3 1561 root rtd DIR 8,18 4096 2 /
gdm3 1561 root txt REG 8,18 420224 3278823
/usr/sbin/gdm3
gdm3 1561 root mem REG 8,18 47568 6291806
/lib/x86_64-linux-gnu/libnss_files-2.27.so
gdm3 1561 root mem REG 8,18 47576 6291808
/lib/x86_64-linux-gnu/libnss_nis-2.27.so
gdm3 1561 root mem REG 8,18 39744 6291804
/lib/x86_64-linux-gnu/libnss_compat-2.27.so
gdm3 1561 root mem REG 8,18 3004224 3282687
/usr/lib/locale/locale-archive
gdm3 1561 root mem REG 8,18 27112 6291462
/lib/x86_64-linux-gnu/libuuid.so.1.3.0
gdm3 1561 root mem REG 8,18 84032 6291689
/lib/x86_64-linux-gnu/libgpg-error.so.0.22.0
gdm3 1561 root mem REG 8,18 311720 6291863
/lib/x86_64-linux-gnu/libblkid.so.1.1.0
gdm3 1561 root mem REG 8,18 14560 6291702
/lib/x86_64-linux-gnu/libdl-2.27.so
gdm3 1561 root mem REG 8,18 1155768 6292246
/lib/x86_64-linux-gnu/libgcrypt.so.20.2.1
gdm3 1561 root mem REG 8,18 112672 3279547
/usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
gdm3 1561 root mem REG 8,18 153984 6297074
/lib/x86_64-linux-gnu/liblzma.so.5.2.2
gdm3 1561 root mem REG 8,18 31680 6291813
/lib/x86_64-linux-gnu/librt-2.27.so
gdm3 1561 root mem REG 8,18 97176 6291803
/lib/x86_64-linux-gnu/libnsl-2.27.so
gdm3 1561 root mem REG 8,18 80104 6291960
/lib/x86_64-linux-gnu/libbsd.so.0.8.7
gdm3 1561 root mem REG 8,18 39208 6291701
/lib/x86_64-linux-gnu/libcrypt-2.27.so
gdm3 1561 root mem REG 8,18 464824 6291833
/lib/x86_64-linux-gnu/libpcre.so.3.13.3
gdm3 1561 root mem REG 8,18 31032 3277313
/usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
gdm3 1561 root mem REG 8,18 340232 6291865
/lib/x86_64-linux-gnu/libmount.so.1.1.0
gdm3 1561 root mem REG 8,18 101168 6291812
/lib/x86_64-linux-gnu/libresolv-2.27.so
gdm3 1561 root mem REG 8,18 154832 6291841
/lib/x86_64-linux-gnu/libselinux.so.1
gdm3 1561 root mem REG 8,18 116960 6297190
/lib/x86_64-linux-gnu/libz.so.1.2.11
gdm3 1561 root mem REG 8,18 14232 3281761
/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.5600.2
gdm3 1561 root mem REG 8,18 2030544 6291699
/lib/x86_64-linux-gnu/libc-2.27.so
gdm3 1561 root mem REG 8,18 144976 6291811
/lib/x86_64-linux-gnu/libpthread-2.27.so
gdm3 1561 root mem REG 8,18 536648 6316343
/lib/x86_64-linux-gnu/libsystemd.so.0.21.0
gdm3 1561 root mem REG 8,18 39784 6291720
/lib/x86_64-linux-gnu/libwrap.so.0.7.6
gdm3 1561 root mem REG ...

Read more...

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

Thanks. Please keep a close eye on those ones that look similar:

gdm3 1561 root 8u unix 0xffff995a67bdcc00 0t0 25239
@/tmp/dbus-VGj4R3Fs type=STREAM
gdm3 1561 root 9u unix 0xffff995a67bdd000 0t0 25240
@/tmp/dbus-NnCbDQ5S type=STREAM
gdm3 1561 root 10u unix 0xffff995a67bdf800 0t0 25241
@/tmp/dbus-7L6kj5Hp type=STREAM
gdm3 1561 root 11u unix 0xffff995a67bdc800 0t0 25242
@/tmp/dbus-rb6ixhfk type=STREAM
gdm3 1561 root 12u unix 0xffff995a65b22800 0t0 25246
@/tmp/dbus-7L6kj5Hp type=STREAM
gdm3 1561 root 13u unix 0xffff995a2be27c00 0t0 25301
type=STREAM

and tell us if the number of those entries increases over time.

Revision history for this message
Andrew Diete (adiete-adiete) wrote :
Download full text (5.6 KiB)

after killing 'seat0' due to not having a gdm login. (loginctl
--terminate-seat seat0) etc

gdm3 1613 root 0r CHR 1,3 0t0 6
/dev/null
gdm3 1613 root 1u unix 0xffff884865f68400 0t0 31869
type=STREAM
gdm3 1613 root 2u unix 0xffff884865f68400 0t0 31869
type=STREAM
gdm3 1613 root 3u a_inode 0,13 0 12692
[eventfd]
gdm3 1613 root 4u a_inode 0,13 0 12692
[eventfd]
gdm3 1613 root 5u unix 0xffff88485e5cf000 0t0 23297
type=STREAM
gdm3 1613 root 6u a_inode 0,13 0 12692
[eventfd]
gdm3 1613 root 7u unix 0xffff884861a29000 0t0 23307
@/tmp/dbus-sSMbCGqA type=STREAM
gdm3 1613 root 8u unix 0xffff884861a2e000 0t0 23308
@/tmp/dbus-79fbBUC2 type=STREAM
gdm3 1613 root 9u unix 0xffff88483adf3800 0t0 2100934
@/tmp/dbus-0dYR00N4 type=STREAM
gdm3 1613 root 10u unix 0xffff88483adf3c00 0t0 2100935
@/tmp/dbus-q34pj5Rp type=STREAM
gdm3 1613 root 11u REG 0,22 102 1260
/run/gdm3/auth-for-gdm-Oeih8z/database
gdm3 1613 root 12u unix 0xffff88482dcfa000 0t0 23313
@/tmp/dbus-DSlORT3r type=STREAM
gdm3 1613 root 13u unix 0xffff884861584800 0t0 2006939
type=STREAM
gdm3 1613 root 14u unix 0xffff884868444000 0t0 29948
@/tmp/dbus-aoClxyNW type=STREAM
gdm3 1613 root 15u unix 0xffff884868442c00 0t0 29949
@/tmp/dbus-TpHvgcEH type=STREAM
gdm3 1613 root 16u unix 0xffff884866b38000 0t0 791260
@/tmp/dbus-7BEa2EQm type=STREAM
gdm3 1613 root 17u unix 0xffff884866b3e000 0t0 791261
@/tmp/dbus-SOXIIEWV type=STREAM
gdm3 1613 root 18u unix 0xffff88484b21f800 0t0 779751
type=DGRAM
gdm3 1613 root 19u unix 0xffff884863d11c00 0t0 33651
@/tmp/dbus-TpHvgcEH type=STREAM
gdm3 1613 root 20u unix 0xffff884843ce9400 0t0 33653
@/tmp/dbus-79fbBUC2 type=STREAM
gdm3 1613 root 21u unix 0xffff88482dcf8c00 0t0 2049575
@/tmp/dbus-dq7sN3q4 type=STREAM
gdm3 1613 root 22u unix 0xffff884832eafc00 0t0 40604
@/tmp/dbus-3bgOJJm0 type=STREAM
gdm3 1613 root 23u unix 0xffff884832eaf400 0t0 40605
@/tmp/dbus-dq7sN3q4 type=STREAM
gdm3 1613 root 24u unix 0xffff88483051c800 0t0 47039
@/tmp/dbus-TpHvgcEH type=STREAM
gdm3 1613 root 25u unix 0xffff884861580400 0t0 2006940
@/tmp/dbus-UKbjR5Jj type=STREAM
gdm3 1613 root 26u unix 0xffff884861580800 0t0 2006941
@/tmp/dbus-7fYVmno7 type=STREAM
gdm3 1613 root 27u unix 0xffff88483adf6400 0t0 2100936
@/tmp/dbus-3dGDoAE8 type=STREAM
gdm3 1613 root 28u unix 0xffff88484b1e5c00 0t0 798514
@/tmp/dbus-SOXIIEWV type=STREAM
gdm3 1613 root 29u unix 0xffff88484962f400 0t0 800887
@/tmp/dbus-SOXIIEWV type=STREAM
gdm3 1613 root 30u unix 0xffff88483422e000 0t0 813851
@/tmp/dbus-SOXIIEWV type=STREAM
gdm3 1613 root 31u unix 0xffff88483adf2000 0t0 2100937
@/tmp/dbus-hip0Tu6H type=STREAM
gdm3 1613 root 32u REG 0,22 1...

Read more...

tags: removed: artful cosmic
tags: added: eoan focal
tags: removed: eoan xenial
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.