linuxmint / cjs

The Cinnamon Javascript interpreter
Other
71 stars 30 forks source link

segfault libcjs.so.0.0.0 #92

Closed hloe0xff closed 3 years ago

hloe0xff commented 3 years ago

Cinnamon running in fallback mode after apt upgrade, segfault in dmesg.

shell$ dmesg
[   15.854776] cinnamon[2391]: segfault at 7f84a2e550d0 ip 00007f84a2e53404 sp 00007ffd443647a8 error 7 in libcjs.so.0.0.0[7f84a2e2b000+8c000]
[   15.854781] Code: 2f f2 fd ff f3 0f 1e fa 48 89 c7 e9 33 f2 fd ff 66 0f 1f 44 00 00 f3 0f 1e fa 83 07 01 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <83> 2f 01 75 67 55 48 89 fd 48 8b 7f 10 48 85 ff 74 0d 48 c7 45 10
shell$ 00007f84a2e53404 − 7f84a2e2b000 = 28404
shell$ addr2line -e /usr/lib/x86_64-linux-gnu/libcjs.so.0.0.0 28404 -fCi
??
??:0
shell$ apt list --installed | grep cjs
cjs/ulyssa,now 4.8.2+ulyssa amd64 [installed]
libcjs-dbg/ulyssa,now 4.8.2+ulyssa amd64 [installed]
libcjs0f/ulyssa,now 4.8.2+ulyssa amd64 [installed]
shell$ inxi -Fxz
System:    Kernel: 5.8.0-25-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 4.8.6 Distro: Linux Mint 20.1 Ulyssa 
           base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: ASRock model: X370 Pro4 serial: <filter> UEFI [Legacy]: American Megatrends v: P6.40 
           date: 08/31/2020 
CPU:       Topology: Quad Core model: AMD Ryzen 3 3200G with Radeon Vega Graphics bits: 64 type: MCP arch: Zen+ rev: 1 
           L2 cache: 2048 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 28746 
           Speed: 1397 MHz min/max: 1400/3600 MHz Core speeds (MHz): 1: 1417 2: 1318 3: 1323 4: 1797 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Picasso driver: amdgpu v: 5.9.15 bus ID: 0c:00.0 
           Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.40.0 5.8.0-25-generic LLVM 11.0.0) v: 4.6 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel v: kernel 
           bus ID: 0c:00.1 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASRock driver: snd_hda_intel v: kernel 
           bus ID: 0c:00.6 
           Sound Server: ALSA v: k5.8.0-25-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASRock driver: r8169 v: kernel port: d000 
           bus ID: 0a:00.0 
           IF: enp10s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-1: docker0 state: down mac: <filter> 
           IF-ID-2: docker_gwbridge state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-3: lxcbr0 state: down mac: <filter> 
           IF-ID-4: V10 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-5: V1000 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-6: V3 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-7: V333 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-8: V50 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-9: vethd79be05 state: up speed: 10000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 3.87 TiB used: 22.34 GiB (0.6%) 
           ID-1: /dev/nvme0n1 vendor: A-Data model: SX6000PNP size: 238.47 GiB 
           ID-2: /dev/sda vendor: Western Digital model: WD40EFRX-68N32N0 size: 3.64 TiB temp: 30 C 
Partition: ID-1: / size: 29.40 GiB used: 22.34 GiB (76.0%) fs: ext4 dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 40.1 C mobo: N/A gpu: amdgpu temp: 40 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 246 Uptime: 1h 34m Memory: 5.73 GiB used: 2.14 GiB (37.3%) Init: systemd runlevel: 5 Compilers: 
           gcc: 10.2.0 Shell: bash v: 5.0.17 inxi: 3.0.38 
shell$ cinnamon --version
Cinnamon 4.8.6
shell$ cat .xsession-errors
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting XAUTHORITY=/home/coc/.Xauthority
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
dbus-update-activation-environment: setting XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
dbus-update-activation-environment: setting LANGUAGE=en_US
dbus-update-activation-environment: setting MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
dbus-update-activation-environment: setting LC_ADDRESS=ru_RU.UTF-8
dbus-update-activation-environment: setting LC_NAME=ru_RU.UTF-8
dbus-update-activation-environment: setting DESKTOP_SESSION=cinnamon
dbus-update-activation-environment: setting LC_MONETARY=ru_RU.UTF-8
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting PWD=/home/coc
dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=cinnamon
dbus-update-activation-environment: setting LOGNAME=coc
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting XAUTHORITY=/home/coc/.Xauthority
dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/coc
dbus-update-activation-environment: setting GDM_LANG=en_US
dbus-update-activation-environment: setting HOME=/home/coc
dbus-update-activation-environment: setting IM_CONFIG_PHASE=1
dbus-update-activation-environment: setting LANG=en_US.UTF-8
dbus-update-activation-environment: setting LC_PAPER=ru_RU.UTF-8
dbus-update-activation-environment: setting XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting LC_IDENTIFICATION=ru_RU.UTF-8
dbus-update-activation-environment: setting DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
dbus-update-activation-environment: setting USER=coc
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting SHLVL=1
dbus-update-activation-environment: setting LC_TELEPHONE=ru_RU.UTF-8
dbus-update-activation-environment: setting LC_MEASUREMENT=ru_RU.UTF-8
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
dbus-update-activation-environment: setting GTK3_MODULES=xapp-gtk3-module
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/home/coc/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
dbus-update-activation-environment: setting NLSPATH=/opt/cprocsp/share/locale/%L/LC_MESSAGES/%N
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
dbus-update-activation-environment: setting GDMSESSION=cinnamon
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting LC_NUMERIC=ru_RU.UTF-8
dbus-update-activation-environment: setting _=/usr/bin/dbus-update-activation-environment
** Message: 14:59:36.543: Existing monitor config (/home/coc/.config/cinnamon-monitors.xml) not found at startup. Looking for legacy configuration (monitors.xml)
[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
Cjs-Message: 14:59:37.268: Profiler is disabled. Not setting up signals.
Clutter-Message: 14:59:37.306: Sync method: PRESENTATION TIME

ERROR: Unable to load info from any available system

Cjs-Message: 14:59:37.524: JS LOG: About to start Cinnamon
Cjs-Message: 14:59:37.811: JS LOG: [LookingGlass/info] Cinnamon.AppSystem.get_default() started in 278 ms
Cjs-Message: 14:59:37.830: JS LOG: [LookingGlass/info] loading user theme: /usr/share/themes/Linux Mint/cinnamon/cinnamon.css
Cjs-Message: 14:59:37.869: JS LOG: [LookingGlass/info] added icon directory: /usr/share/themes/Linux Mint/cinnamon
** Message: 14:59:38.163: nemo-desktop: session is cinnamon, establishing proxy
Unable to open desktop file /usr/share/applications/caja-browser.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/mate-terminal.desktop for panel launcher: No such file or directory

(nm-applet:2430): Gdk-CRITICAL **: 14:59:38.545: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

** (nemo-desktop:2426): WARNING **: 14:59:42.975: nemo-desktop: Desktop failsafe timeout reached, applying fallback behavior
Nemo-Share-Message: 14:59:43.233: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.

cinnamon-session[2125]: WARNING: t+6,99743s: Detected that screensaver has appeared on the bus

** (xapp-sn-watcher:2412): CRITICAL **: 15:04:19.370: Could not get properties for :1.63: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.DBus.Properties” on object at path /org/ayatana/NotificationItem/Skype1

(metacity:2591): metacity-WARNING **: 15:04:21.097: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 15:06:59.442: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3a00003 (Authenticate)

(metacity:2591): metacity-WARNING **: 15:07:20.346: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 15:07:38.637: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 15:08:06.639: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 15:21:36.502: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 15:21:46.540: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 15:21:53.883: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 16:11:27.434: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

(metacity:2591): metacity-WARNING **: 16:18:12.352: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 16:20:41.318: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)

(metacity:2591): metacity-WARNING **: 16:24:59.654: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5a00011 (mintMenu.py)
shell$ ls -al .config/cinnamon-monitors.xml 
-rw-rw-r-- 1 coc coc 1664 Aug  6  2020 .config/cinnamon-monitors.xml
leigh123linux commented 3 years ago

Without a full backtrace the issue will remain unsolved.

leigh123linux commented 3 years ago

Perhaps you should check dmesg for amdgpu issues.

hloe0xff commented 3 years ago

Without a full backtrace the issue will remain unsolved.

How can i do that?

Perhaps you should check dmesg for amdgpu issues.

shell$ sudo dmesg | grep -i amdgpu
[    0.803966] [drm] amdgpu kernel modesetting enabled.
[    0.803967] [drm] amdgpu version: 5.9.15
[    0.804096] amdgpu: Topology: Add APU node [0x0:0x0]
[    0.808465] fb0: switching to amdgpudrmfb from VESA VGA
[    0.808641] amdgpu 0000:0c:00.0: vgaarb: deactivate vga console
[    0.808851] amdgpu 0000:0c:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[    0.832234] amdgpu 0000:0c:00.0: amdgpu: Fetched VBIOS from ROM BAR
[    0.832236] amdgpu: ATOM BIOS: 113-PICASSO-115
[    0.832363] amdgpu 0000:0c:00.0: amdgpu: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
[    0.832366] amdgpu 0000:0c:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[    0.832368] amdgpu 0000:0c:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[    0.832613] [drm] amdgpu: 2048M of VRAM memory ready
[    0.832617] [drm] amdgpu: 5865M of GTT memory ready.
[    0.834176] amdgpu: [powerplay] hwmgr_sw_init smu backed is smu10_smu
[    0.955594] amdgpu 0000:0c:00.0: amdgpu: RAS: optional ras ta ucode is not available
[    0.963592] amdgpu 0000:0c:00.0: amdgpu: RAP: optional rap ta ucode is not available
[    1.021300] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[    1.021891] kfd kfd: amdgpu: error getting iommu info. is the iommu enabled?
[    1.021896] kfd kfd: amdgpu: Error initializing iommuv2
[    1.022012] kfd kfd: amdgpu: device 1002:15d8 NOT added due to errors
[    1.022015] amdgpu 0000:0c:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 11, active_cu_number 8
[    1.023428] fbcon: amdgpudrmfb (fb0) is primary device
[    1.171389] amdgpu 0000:0c:00.0: fb0: amdgpudrmfb frame buffer device
[    1.185584] amdgpu 0000:0c:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[    1.185586] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    1.185587] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    1.185588] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    1.185589] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    1.185590] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    1.185591] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    1.185592] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    1.185593] amdgpu 0000:0c:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    1.185594] amdgpu 0000:0c:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[    1.185596] amdgpu 0000:0c:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
[    1.185597] amdgpu 0000:0c:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
[    1.185598] amdgpu 0000:0c:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
[    1.185599] amdgpu 0000:0c:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
[    1.185601] amdgpu 0000:0c:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
[    1.191530] [drm] Initialized amdgpu 3.40.0 20150101 for 0000:0c:00.0 on minor 0
[    6.270508] snd_hda_intel 0000:0c:00.1: bound 0000:0c:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
leigh123linux commented 3 years ago

I believe mintreport could provide the required info.

hloe0xff commented 3 years ago

Hello @leigh123linux! Sorry, i was found the trouble cause. I inadvertently add ubuntu 20.10 repository and ran apt upgrade, which is corrupt the OS. I was remove the connected repo and downgrade all the upgraded packages and troubles gone. It was my mistake, sorry. Thanks!

Cheers!