bakkeby / dusk

Just another fork of dwm
MIT License
154 stars 21 forks source link

Process dusk dumped core. #6

Closed kmarzic closed 2 years ago

kmarzic commented 2 years ago

Hi, I am trying the latest github version od dusk. If I press 5 times MODKEY+1, dusk restarts. Later I discovered from journalctl and dmesg that there is segmentation fault. I am not sure if this is related with my changes in config.h. config.h.txt

[root@dle5570 ~]# journalctl -xe
...
Jan 07 09:57:18 dle5570 kernel: audit: type=1130 audit(1641545838.279:214): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@10-19075-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=>
Jan 07 09:57:18 dle5570 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@10-19075-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 09:57:18 dle5570 systemd-coredump[19076]: [🡕] Process 18488 (dusk) of user 24840 dumped core.

                                                 Module /home/kmarzic/bin/dusk with build-id 7c58ebbf30969476359db1591636318932e6147f
                                                 Module linux-vdso.so.1 with build-id 035c7da8b451e8d19aed30c8ca3970d363e14060
                                                 Module libXfixes.so.3 with build-id 0a05c7e8714522bfbdd7c0027c3e2a94965664b0
                                                 Module libXcursor.so.1 with build-id eb6315bcd7526aaf51b0a1307efdc587cea0a152
                                                 Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767
                                                 Module libbrotlicommon.so.1 with build-id a4ba3f4b4571c8272343b621da812a6e24a202a7
                                                 Module libglib-2.0.so.0 with build-id 8214b56e554b7cbead4034b6ba32c90bc8c674da
                                                 Module libgraphite2.so.3 with build-id 47761dc11e553f519cde97ed9ee985be12ccdae2
                                                 Module libbrotlidec.so.1 with build-id 45defc036e918e0140a72f1fbce6e7692d38241d
                                                 Module libharfbuzz.so.0 with build-id 1d9dee49dd99162c3f83eb3259c3c88c6b4cd7fe
                                                 Module libpng16.so.16 with build-id 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
                                                 Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
                                                 Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26
                                                 Module ld-linux-x86-64.so.2 with build-id 040cc3dd10461562f177df39e3be2f3704258c3c
                                                 Module libxcb-shm.so.0 with build-id fb797f299a446f559a95afcc168227482cc800d1
                                                 Module libm.so.6 with build-id 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
                                                 Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955
                                                 Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff
                                                 Module libpthread.so.0 with build-id 07c8f95b4f3251d08550217ad8a1f31066229996
                                                 Module libexpat.so.1 with build-id 16023a53e7b5bbdff92bd0bf2eebd36f9b5b879f
                                                 Module libfreetype.so.6 with build-id 26c5f833068ff72660d1975cbc2074c3eb47fad8
                                                 Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa
                                                 Module libdl.so.2 with build-id 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
                                                 Module libc.so.6 with build-id 4b406737057708c0e4c642345a703c47a61c73dc
                                                 Module libImlib2.so.1 with build-id f5c3881e6d998f80a7666caa27c070a6f21dd4cd
                                                 Module libyajl.so.2 with build-id 392467faca2d964441b8226ee48d994ffc70e545
                                                 Module libxcb-res.so.0 with build-id b825f66a75478fd00eeb4c57ecb0ac7792e00f5e
                                                 Module libxcb.so.1 with build-id 0d1ef11740a5daad2ee331e812a51aa6574af222
                                                 Module libX11-xcb.so.1 with build-id 0db4f94d8ae31b8dc9a83f825a9171656f1e532c
                                                 Module libXrender.so.1 with build-id 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3
                                                 Module libXft.so.2 with build-id 21aed1dfa73fa7301e280e3a573cc2523a1f7ff2
                                                 Module libfontconfig.so.1 with build-id 1103a641395c7d3b42e49b793d3a9ea927c77bf6
                                                 Module libXinerama.so.1 with build-id dbb6adece34ea2766d3efcd628af8f9757344dd6
                                                 Module libX11.so.6 with build-id 5ba5798d193c0065014b8c6252a0678671c8d478
                                                 Stack trace of thread 18488:
                                                 #0  0x000055ed99768e01 n/a (/home/kmarzic/bin/dusk + 0x18e01)
                                                 ELF object binary architecture: AMD x86-64
â–‘â–‘ Subject: Process 18488 (dusk) dumped core
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
â–‘â–‘ Documentation: man:core(5)
â–‘â–‘
â–‘â–‘ Process 18488 (dusk) crashed and dumped core.
â–‘â–‘
â–‘â–‘ This usually indicates a programming error in the crashing program and
â–‘â–‘ should be reported to its vendor as a bug.
Jan 07 09:57:18 dle5570 kernel: audit: type=1131 audit(1641545838.373:215): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@10-19075-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=>
Jan 07 09:57:18 dle5570 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@10-19075-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 09:57:18 dle5570 systemd[1]: systemd-coredump@10-19075-0.service: Deactivated successfully.
â–‘â–‘ Subject: Unit succeeded
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
...
[root@dle5570 ~]# 
[root@dle5570 ~]#  dmesg -T
...
[Fri Jan  7 09:57:17 2022] show_signal_msg: 30 callbacks suppressed
[Fri Jan  7 09:57:17 2022] dusk[18488]: segfault at a0 ip 000055ed99768e01 sp 00007ffc1f54fe00 error 4 in dusk[55ed9975b000+20000]
[Fri Jan  7 09:57:17 2022] Code: a8 00 00 00 48 89 fe eb 28 bf 40 00 00 00 e8 19 0f 01 00 41 89 c0 b8 02 00 00 00 45 85 c0 74 16 48 8b 43 08 31 f6 48 8b 40 50 <48> 8b b8 a0 00 00 00 e8 ba 70 ff ff 83 7b 38 00 89 43 3c 74 50 48
[Fri Jan  7 09:57:17 2022] audit: type=1701 audit(1641545838.243:210): auid=24840 uid=24840 gid=100 ses=1 pid=18488 comm="dusk" exe="/home/kmarzic/bin/dusk" sig=11 res=1
...
[root@dle5570 ~]# 

Best regards

bakkeby commented 2 years ago

Hi @kmarzic,

I was only able to replicate this issue if you do Super+1 as the first action after you have started dusk, had to do with ending up with no workspaces being selected.

I have pushed a fix for this. Can you let me know if the issue is still reproducible for you?

\ Thanks,

-Stein

kmarzic commented 2 years ago

Thanks, The problem seems to be fixed now. I am closing this issue.