Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78197 - [Digikam] Wrong compilation flags?

Attached to Project: Arch Linux
Opened by ROMANO (rv) - Friday, 14 April 2023, 07:14 GMT
Last edited by Antonio Rojas (arojas) - Friday, 14 April 2023, 10:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading from 7.10.0-1 to 8.0.0-1, digikam crashed at start with "Illegal Instruction (core dumped)" (not sure for the right english translation).

I rebuilt it on my computer with makepkg (without modifications of PKGBUILD), and now it's working fine.
Seems that the package was built with wrong compile flags (I have an old computer).

Additional info:
* Digikam 8.0.0-1

Steps to reproduce:
1 - Use an old computer :->
2 - Launch digikam from the command line.
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 14 April 2023, 10:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  digikam 8.0.0-2
Comment by Antonio Rojas (arojas) - Friday, 14 April 2023, 07:26 GMT
As fas as I can see it is compiled with -march=x86-64. Can you post a full backtrace?
Comment by ROMANO (rv) - Friday, 14 April 2023, 09:46 GMT
Here it is:

[rv@maisondubonheur digikam]$ coredumpctl gdb
PID: 55228 (digikam)
UID: 1000 (rv)
GID: 100 (users)
Signal: 4 (ILL)
Timestamp: Fri 2023-04-14 10:53:25 CEST (50min ago)
Command Line: digikam
Executable: /usr/bin/digikam
Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-71d91aa2-c2db-4230-b06c-0ae5899b88ae.scope
Unit: user@1000.service
User Unit: vte-spawn-71d91aa2-c2db-4230-b06c-0ae5899b88ae.scope
Slice: user-1000.slice
Owner UID: 1000 (rv)
Boot ID: 3bca9440362c4f57b857693e4c38cf3d
Machine ID: 011fc5ea012240c58a20e308fc5de2ac
Hostname: maisondubonheur
Storage: /var/lib/systemd/coredump/core.digikam.1000.3bca9440362c4f57b857693e4c38cf3d.55228.1681462405000000.zst (present)
Size on Disk: 3.6M
Message: Process 55228 (digikam) of user 1000 dumped core.

Stack trace of thread 55228:
#0 0x00007f1c77f6d08d _ZN4QtAV7Widgets17registerRenderersEv (libdigikamcore.so.8.0.0 + 0x96d08d)
#1 0x00007f1c77960ece n/a (libdigikamcore.so.8.0.0 + 0x360ece)
#2 0x00007f1c791820fe n/a (ld-linux-x86-64.so.2 + 0x50fe)
#3 0x00007f1c791821ec n/a (ld-linux-x86-64.so.2 + 0x51ec)
#4 0x00007f1c79197f00 n/a (ld-linux-x86-64.so.2 + 0x1af00)
ELF object binary architecture: AMD x86-64

GNU gdb (GDB) 13.1
Copyright (C) 2023 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 "x86_64-pc-linux-gnu".
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 /usr/bin/digikam...
Reading symbols from /home/rv/.cache/debuginfod_client/2718180ea985c1ee14064c5a1c0c605ea0ab32ad/debuginfo...
[New LWP 55228]
BFD: warning: /home/rv/.cache/debuginfod_client/a504d8d908a70a0e29bb8edba66347168fd630b8/debuginfo has a section extending past end of file
Error while reading shared library symbols for /usr/lib/libQt5WebEngineWidgets.so.5:
`/home/rv/.cache/debuginfod_client/a504d8d908a70a0e29bb8edba66347168fd630b8/debuginfo': can't read symbols: file format not recognized.
--Type <RET> for more, q to quit, c to continue without paging--c
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `digikam'.
Program terminated with signal SIGILL, Illegal instruction.
#0 0x00007f1c77f6d08d in QtAV::Widgets::registerRenderers () at /usr/src/debug/digikam/digikam-8.0.0/core/libs/video/qtav/widgets/QtAVWidgets_Global.cpp:92
92 {
(gdb) bt full
#0 0x00007f1c77f6d08d in QtAV::Widgets::registerRenderers() () at /usr/src/debug/digikam/digikam-8.0.0/core/libs/video/qtav/widgets/QtAVWidgets_Global.cpp:92
initialized = false
#1 0x00007f1c77960ece in _sub_I_65535_0.0 () at /usr/lib/libdigikamcore.so.8.0.0
#2 0x00007f1c791820fe in call_init (env=0x7ffc8d4884e8, argv=0x7ffc8d4884d8, argc=1, l=<optimized out>) at dl-init.c:70
j = 0
jm = <optimized out>
addrs = <optimized out>
init_array = <optimized out>
__PRETTY_FUNCTION__ = "call_init"
__PRETTY_FUNCTION__ = "call_init"
#3 call_init (l=<optimized out>, argc=1, argv=0x7ffc8d4884d8, env=0x7ffc8d4884e8) at dl-init.c:26
__PRETTY_FUNCTION__ = "call_init"
#4 0x00007f1c791821ec in _dl_init (main_map=0x7f1c791b12c0, argc=1, argv=0x7ffc8d4884d8, env=0x7ffc8d4884e8) at dl-init.c:117
preinit_array = <optimized out>
preinit_array_size = <optimized out>
i = <optimized out>
#5 0x00007f1c79197f00 in _dl_start_user () at /lib64/ld-linux-x86-64.so.2
#6 0x0000000000000001 in ()
#7 0x00007ffc8d488a3b in ()
#8 0x0000000000000000 in ()
(gdb)
Comment by Antonio Rojas (arojas) - Friday, 14 April 2023, 10:17 GMT
Thanks. Looks like the bundled QtAV has some CPU specific code.

Loading...