Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

testhandlertable test crashes with Bus Error on sparc64 #529

Open
glaubitz opened this issue Nov 15, 2023 · 0 comments
Open

testhandlertable test crashes with Bus Error on sparc64 #529

glaubitz opened this issue Nov 15, 2023 · 0 comments

Comments

@glaubitz
Copy link

On Debian unstable on sparc64, the test testhandlertable crashes with Bus Error which indicates incorrect alignment.

From the build log [1]:

      Start 10: testhandlertable

10: Test command: /<<PKGBUILDDIR>>/obj-sparc64-linux-gnu/test/testhandlertable
10: Working Directory: /<<PKGBUILDDIR>>/obj-sparc64-linux-gnu/test
10: Test timeout computed to be: 10000000
10/16 Test #10: testhandlertable .................Bus error***Exception:   0.01 sec

I tried to obtain a backtrace, but that did not work:

(sid_sparc64-dchroot)glaubitz@stadler:~/fcitx/fcitx-4.2.9.9$ gdb ./obj-sparc64-linux-gnu/test/testhandlertable
GNU gdb (Debian 13.2-1) 13.2
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 "sparc64-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 ./obj-sparc64-linux-gnu/test/testhandlertable...
(gdb) r
Starting program: /home/glaubitz/fcitx/fcitx-4.2.9.9/obj-sparc64-linux-gnu/test/testhandlertable

Program received signal SIGBUS, Bus error.
0xfff800010030a290 in ?? ()
(gdb) bt
#0  0xfff800010030a290 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) q
A debugging session is active.

        Inferior 1 [process 474836] will be killed.

Quit anyway? (y or n) y
(sid_sparc64-dchroot)glaubitz@stadler:~/fcitx/fcitx-4.2.9.9$

Looking at test/testhandlertable.c, I cannot see anything that looks like an unaligned access though.

[1] https://buildd.debian.org/status/fetch.php?pkg=fcitx&arch=sparc64&ver=1%3A4.2.9.9-1&stamp=1699700786&raw=0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant