[solved] qt apps terminates with segfault (XE303C12)

This forum is for discussion about general software issues.

[solved] qt apps terminates with segfault (XE303C12)

Postby armuseru » Sun Jul 18, 2021 7:05 am

Hi.
I faced a segfault when launching some qt apps.
$this->bbcode_second_pass_code('', '
$ kate
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so: (libhspell.so.0: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so: (libvoikko.so.1: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so: (libhspell.so.0: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so: (libvoikko.so.1: cannot open shared object file: No such file or directory)"
kf.sonnet.core: No language dictionaries for the language: "C" trying to load en_US as default
Segmentation fault

$ calibre
Segmentation fault

$ gwenview
org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mng"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-nikon-nrw"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw"
Segmentation fault

$ vlc
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[01dc7298] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Segmentation fault')
gtk apps work as expected.
System is updated, except mesa and cups.
In my case xorg fails to run with last mesa
$this->bbcode_second_pass_code('', '$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
:: Starting full system upgrade...
warning: cups: ignoring package upgrade (2.3.3-1 => 1:2.3.3op2-3)
warning: cups-filters: ignoring package upgrade (1.28.7-1 => 1.28.9-1)
warning: libcups: ignoring package upgrade (2.3.3-1 => 1:2.3.3op2-3)
warning: libtool: local (2.4.6+44+gb9b44533-14) is newer than core (2.4.6+42+gb88cebd5-15)
warning: mesa: ignoring package upgrade (21.0.1-1 => 21.1.4-1)
warning: vboot-utils: local (67.10575-1) is newer than alarm (r1908.4c84e0778-1)
there is nothing to do')
Last edited by armuseru on Sat Sep 11, 2021 3:55 pm, edited 1 time in total.
armuseru
 
Posts: 34
Joined: Sat Jan 09, 2021 9:36 am

Re: qt apps terminates with segfault (XE303C12)

Postby armuseru » Thu Jul 22, 2021 5:34 am

With mesa 21.1.5-1 Xorg still won't start, so I don't know if it was mesa or something else that was causing the qt apps to crash

$this->bbcode_second_pass_code('', 'Jul 22 07:45:56 test systemd[1]: Stopped LXDE Display Manager.
Jul 22 07:45:56 test systemd[1]: lxdm.service: Scheduled restart job, restart counter is at 52.
Jul 22 07:45:56 test systemd[1]: lxdm.service: Failed with result 'exit-code'.
Jul 22 07:45:56 test systemd[1]: lxdm.service: Main process exited, code=exited, status=1/FAILURE
Jul 22 07:45:50 test systemd[1]: Started LXDE Display Manager.
Jul 22 07:45:50 test systemd[1]: Stopped LXDE Display Manager.
Jul 22 07:45:50 test systemd[1]: lxdm.service: Scheduled restart job, restart counter is at 51.
Jul 22 07:45:50 test systemd[1]: lxdm.service: Failed with result 'exit-code'.
Jul 22 07:45:50 test systemd[1]: lxdm.service: Main process exited, code=exited, status=1/FAILURE
Jul 22 07:45:44 test systemd[1]: Started LXDE Display Manager.')
$this->bbcode_second_pass_code('', '[ 307.640]
X.Org X Server 1.20.12
X Protocol Version 11, Revision 0
[ 307.641] Build Operating System: Linux Archlinux
[ 307.641] Current Operating System: Linux test 5.12.14-1 #1 SMP PREEMPT Sat Jul 3 09:55:01 EEST 2021 armv7l
[ 307.641] Kernel command line: cros_secure console= console=tty0 init=/sbin/init root=PARTUUID=0c3d1c3c-5b8f-1e45-ae49-dabb029be52e/PARTNROFF=1 rootwait rw noinitrd zswap.compressor=zstd zswap.max_pool_percent=40 audit=0
[ 307.641] Build Date: 09 July 2021 06:44:57AM
[ 307.641]
[ 307.641] Current version of pixman: 0.40.0
[ 307.641] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 307.641] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 307.642] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 22 07:45:50 2021
[ 307.642] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 307.642] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 307.643] (==) No Layout section. Using the first Screen section.
[ 307.643] (==) No screen section available. Using defaults.
[ 307.643] (**) |-->Screen "Default Screen Section" (0)
[ 307.643] (**) | |-->Monitor "<default monitor>"
[ 307.644] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 307.644] (==) Automatically adding devices
[ 307.644] (==) Automatically enabling devices
[ 307.644] (==) Automatically adding GPU devices
[ 307.644] (==) Automatically binding GPU devices
[ 307.644] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 307.644] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 307.644] Entry deleted from font path.
[ 307.644] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 307.644] Entry deleted from font path.
[ 307.644] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 307.644] Entry deleted from font path.
[ 307.644] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 307.644] Entry deleted from font path.
[ 307.645] (==) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 307.645] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 307.645] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 307.645] (II) Module ABI versions:
[ 307.645] X.Org ANSI C Emulation: 0.4
[ 307.645] X.Org Video Driver: 24.1
[ 307.645] X.Org XInput driver : 24.1
[ 307.645] X.Org Server Extension : 10.0
[ 307.647] (++) using VT number 1

[ 307.647] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 307.671] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 307.687] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 307.688] (II) no primary bus or device found
[ 307.688] falling back to /sys/devices/platform/exynos-drm/drm/card1
[ 307.688] (II) LoadModule: "glx"
[ 307.688] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 307.702] (II) Module glx: vendor="X.Org Foundation"
[ 307.703] compiled for 1.20.12, module version = 1.0.0
[ 307.703] ABI class: X.Org Server Extension, version 10.0
[ 307.703] (==) Matched modesetting as autoconfigured driver 0
[ 307.703] (==) Matched fbdev as autoconfigured driver 1
[ 307.703] (==) Assigned the driver to the xf86ConfigLayout
[ 307.703] (II) LoadModule: "modesetting"
[ 307.703] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 307.705] (II) Module modesetting: vendor="X.Org Foundation"
[ 307.705] compiled for 1.20.12, module version = 1.20.12
[ 307.705] Module class: X.Org Video Driver
[ 307.705] ABI class: X.Org Video Driver, version 24.1
[ 307.705] (II) LoadModule: "fbdev"
[ 307.705] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 307.705] (II) Module fbdev: vendor="X.Org Foundation"
[ 307.706] compiled for 1.20.8, module version = 0.5.0
[ 307.706] Module class: X.Org Video Driver
[ 307.706] ABI class: X.Org Video Driver, version 24.1
[ 307.706] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 307.706] (II) FBDEV: driver for framebuffer: fbdev
[ 307.723] (II) modeset(0): using drv /dev/dri/card1
[ 307.723] (WW) Falling back to old probe method for fbdev
[ 307.723] (II) Loading sub module "fbdevhw"
[ 307.723] (II) LoadModule: "fbdevhw"
[ 307.723] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 307.723] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 307.723] compiled for 1.20.12, module version = 0.0.2
[ 307.724] ABI class: X.Org Video Driver, version 24.1
[ 307.724] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 307.724] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 307.724] (==) modeset(0): RGB weight 888
[ 307.724] (==) modeset(0): Default visual is TrueColor
[ 307.724] (II) Loading sub module "glamoregl"
[ 307.724] (II) LoadModule: "glamoregl"
[ 307.724] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 307.735] (II) Module glamoregl: vendor="X.Org Foundation"
[ 307.735] compiled for 1.20.12, module version = 1.0.1
[ 307.735] ABI class: X.Org ANSI C Emulation, version 0.4
[ 307.821] couldn't get display device
[ 307.821] (EE) modeset(0): glamor initialization failed
[ 307.821] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[ 307.840] (EE)
[ 307.840] (EE) Backtrace:
[ 307.841] (EE)
[ 307.841] (EE)
Fatal server error:
[ 307.841] (EE) Caught signal 6 (Aborted). Server aborting
[ 307.841] (EE)
[ 307.841] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 307.841] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 307.841] (EE)
[ 307.854] (EE) Server terminated with error (1). Closing log file.')
armuseru
 
Posts: 34
Joined: Sat Jan 09, 2021 9:36 am

Re: qt apps terminates with segfault (XE303C12)

Postby armuseru » Sun Aug 29, 2021 8:19 pm

$this->bbcode_second_pass_quote('', 'g')db kate
GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "armv7l-unknown-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kate...
(No debugging symbols found in kate)
(gdb) run
Starting program: /usr/bin/kate
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xb050e0c0 (LWP 1074)]
[New Thread 0xaea600c0 (LWP 1075)]
[New Thread 0xae0ff0c0 (LWP 1076)]
[New Thread 0xad6ff0c0 (LWP 1077)]
[New Thread 0xaa3ec0c0 (LWP 1079)]
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so: (libhspell.so.0: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so: (libvoikko.so.1: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so: (libhspell.so.0: cannot open shared object file: No such file or directory)"
kf.sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so: (libvoikko.so.1: cannot open shared object file: No such file or directory)"
kf.sonnet.core: No language dictionaries for the language: "C" trying to load en_US as default
[New Thread 0xa983c0c0 (LWP 1080)]

Thread 1 "kate" received signal SIGSEGV, Segmentation fault.
0xb4e393a0 in fread () from /usr/lib/libc.so.6
(gdb) bt
#0 0xb4e393a0 in fread () at /usr/lib/libc.so.6
#1 0xa98a37f2 in c480187709f72ae0c0add7da5851442e9f06c10c8 ()
at /usr/lib/mali-egl/libEGL.so.1
#2 0xa98a3d74 in __egl_main_open_mali () at /usr/lib/mali-egl/libEGL.so.1
#3 0xa98a29aa in _egl_initialize () at /usr/lib/mali-egl/libEGL.so.1
#4 0xa98a3250 in eglInitialize () at /usr/lib/mali-egl/libEGL.so.1
#5 0xa9ae1570 in ()
at /usr/lib/qt/plugins/xcbglintegrations/libqxcb-egl-integration.so



gdb vlc
GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "armv7l-unknown-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from vlc...
(No debugging symbols found in vlc)
(gdb) run
Starting program: /usr/bin/vlc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[New Thread 0xb3e4f350 (LWP 1195)]
[New Thread 0xb30bf350 (LWP 1196)]
[New Thread 0xa2eff350 (LWP 1197)]
[00413298] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[New Thread 0xa1506350 (LWP 1198)]
[New Thread 0xa0f9a350 (LWP 1199)]
[New Thread 0x9f474350 (LWP 1200)]
[New Thread 0x9ec73350 (LWP 1201)]
[New Thread 0x9c885350 (LWP 1202)]
[New Thread 0x9c084350 (LWP 1203)]
[New Thread 0x9b883350 (LWP 1204)]
[New Thread 0x9acff350 (LWP 1205)]
[New Thread 0x9ab5c350 (LWP 1206)]

Thread 5 "vlc" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xa1506350 (LWP 1198)]
0xb6e2f3a0 in fread () from /usr/lib/libc.so.6
(gdb) bt
#0 0xb6e2f3a0 in fread () at /usr/lib/libc.so.6
#1 0x9abc37f2 in c480187709f72ae0c0add7da5851442e9f06c10c8 ()
at /usr/lib/mali-egl/libEGL.so.1
#2 0x9abc3d74 in __egl_main_open_mali () at /usr/lib/mali-egl/libEGL.so.1
#3 0x9abc29aa in _egl_initialize () at /usr/lib/mali-egl/libEGL.so.1
#4 0x9abc3250 in eglInitialize () at /usr/lib/mali-egl/libEGL.so.1
#5 0x9ae49570 in ()
at /usr/lib/qt/plugins/xcbglintegrations/libqxcb-egl-integration.so

It looks like the old mesa is no longer compatible, so this issue will probably be fixed when the last mesa is fixed for the snow chromebook. Hopefully it will be on the next mesa update https://gitlab.freedesktop.org/mesa/mesa/-/issues/5269
armuseru
 
Posts: 34
Joined: Sat Jan 09, 2021 9:36 am

Re: qt apps terminates with segfault (XE303C12)

Postby armuseru » Sat Sep 11, 2021 3:54 pm

recompiled mesa with patch $this->bbcode_second_pass_code('', 'diff -Naur a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
--- a/src/gallium/drivers/panfrost/pan_screen.c 1970-01-01 03:00:00.000000000 +0300
+++ b/src/gallium/drivers/panfrost/pan_screen.c 2021-09-11 14:04:32.869208578 +0300
@@ -699,7 +699,8 @@
panfrost_pool_cleanup(&screen->blitter.desc_pool);
pan_blend_shaders_cleanup(dev);

- screen->vtbl.screen_destroy(pscreen);
+ if (screen->vtbl.screen_destroy)
+ screen->vtbl.screen_destroy(pscreen);

if (dev->ro)
dev->ro->destroy(dev->ro);
')
and now it seems all ok. At least X doesn't crash and kate works

18.10.21 upd: since newer mesa wont work for me I still use patched and compiled mesa-21.2.1
armuseru
 
Posts: 34
Joined: Sat Jan 09, 2021 9:36 am

Re: [solved] qt apps terminates with segfault (XE303C12)

Postby sonalford » Tue Nov 02, 2021 9:26 am

I also had the same problem and luckily I found your workaround on the mesa-21.2.1 forum worked again.
super mario bros
sonalford
 
Posts: 1
Joined: Tue Nov 02, 2021 9:17 am

Re: [solved] qt apps terminates with segfault (XE303C12)

Postby armuseru » Sat Dec 18, 2021 6:02 am

by the way you may enable gpu acceleration, as mesa developer says:
$this->bbcode_second_pass_quote('', 'I')f you change the panfrost_create_screen function in pan_screen.c so that 0x600 is in the list of supported GPUs, then you should be able to get an accelerated X session.
But Mali t604 is marked as unsupported for a reason, and we are unlikely to be able to help much with debugging any issues that you hit. So unless you think you can fix any bugs yourself, it's safer to just stay with CPU rendering.

patch
$this->bbcode_second_pass_code('', 'diff -Naur a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
--- a/src/gallium/drivers/panfrost/pan_screen.c 1970-01-01 03:00:00.000000000 +0300
+++ b/src/gallium/drivers/panfrost/pan_screen.c 2021-09-12 10:25:43.956486436 +0300
@@ -845,6 +846,8 @@
/* Check if we're loading against a supported GPU model. */

switch (dev->gpu_id) {
+ case 0x600: /* T60x - try unsupported gpu*/
+ case 0x604: /* T60x - try unsupported gpu*/
case 0x720: /* T720 */
case 0x750: /* T760 */
case 0x820: /* T820 */')

and fellow that did try it says $this->bbcode_second_pass_quote('', 'P')laying video with mpv or ffplay do not eat whole cpu now.
armuseru
 
Posts: 34
Joined: Sat Jan 09, 2021 9:36 am
Top


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests