Hello Ryutaroh Matsumoto,
I just tried to reproduce this and got such a "Bus error" while
running an armhf testing chroot on a physical armv7l system,
unfortunately not running a stock debian kernel, instead
a lineageos kernel.
Here the "Bus error" is given because of an stmib instruction
operating on a unaligned memory address.
Unfortunately this happens inside something what looks like
stack swapping, therefore cannot point to the source of this
instruction.
Therefore you might have a look at 'cat /proc/cpu/alignment',
and maybe as a workaround change it temporarily
by 'echo 3 > /proc/cpu/alignment' and retest.
Attached file contains some debugging and a manual -v3 rebuild of
the testrunner showing the used compile and link parameters.
I guess this issue need some investigation of someone who
knows more about the ghc internals.
Kind regards,
Bernhard
=> 0xd0670: stmib r1, {r9, lr}
(gdb) print/x $r1 % 4
$2 = 0x2
# Bullseye/testing chroot 2020-10-31 running on Android/LineageOS kernel
apt update
apt dist-upgrade
apt install mc htop psmisc net-tools strace sshfs wget gdb gdbserver
autopkgtest dh-runit
apt build-dep dh-runint
root@localhost:~# lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0
Off-line CPU(s) list: 1-3
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
Vendor ID: Qualcomm
Model: 0
Model name: Krait
Stepping: 0x1
CPU max MHz: 1728,0000
CPU min MHz: 384,0000
BogoMIPS: 13.50
Flags: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4
idiva idivt
root@localhost:~# uname -a
Linux localhost 3.4.113-g2fff5b1955c0 #1 SMP PREEMPT Sun Mar 8 06:23:52 CST
2020 armv7l GNU/Linux
groupadd -g 3001 aid_net_bt_admin
groupadd -g 3002 aid_net_bt
groupadd -g 3003 aid_inet
groupadd -g 3004 aid_net_raw
groupadd -g 3005 aid_net_admin
groupadd -g 3006 aid_net_bw_stats
groupadd -g 3007 aid_net_bw_acct
groupadd -g 3008 aid_net_bt_stack
usermod -G 3003,3004 -a root
usermod -G 3003 -a benutzer
usermod -g 3003 -G 3003,3004 -a _apt
mkdir /home/benutzer/source/dh-runit/orig -p
cd /home/benutzer/source/dh-runit/orig
apt source dh-runit
cd
mkdir /home/benutzer/source/ghc/orig -p
cd /home/benutzer/source/ghc/orig
apt source ghc
cd
autopkgtest dh-runit -- null
autopkgtest --shell-fail dh-runit -- null
benutzer@localhost:~$ autopkgtest dh-runit -- null
autopkgtest [16:04:08]: starting date: 2020-10-31
autopkgtest [16:04:08]: version 5.15
autopkgtest [16:04:08]: host localhost; command line: /usr/bin/autopkgtest
dh-runit -- null
autopkgtest [16:04:08]: testbed dpkg architecture: armhf
autopkgtest [16:04:08]: testbed running kernel: Linux 3.4.113-g2fff5b1955c0 #1
SMP PREEMPT Sun Mar 8 06:23:52 CST 2020
autopkgtest [16:04:08]: @@@@@@@@@@@@@@@@@@@@ apt-source dh-runit
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/dpkg-verify-sig.Mw0OcQGe/trustedkeys.kbx':
General error
gpgv: Signature made Di 21 Jul 2020 10:55:07 UTC
gpgv: using RSA key 92978A6E195E4921825F7FF0F34F09744E9F5DD9
gpgv: Can't check signature: No public key
dpkg-source: Warnung: Fehler beim Überprüfen der Signatur von
./dh-runit_2.9.0.dsc
autopkgtest [16:04:10]: testing package dh-runit version 2.9.0
autopkgtest [16:04:10]: build not needed
autopkgtest [16:04:11]: test command1: preparing testbed
autopkgtest [16:04:11]: test command1: make autopkgtest
autopkgtest [16:04:11]: test command1: [-----------------------
ghc testrunner.hs
[1 of 1] Compiling Main ( testrunner.hs, testrunner.o )
Linking testrunner ...
AUTOPKGTEST=1 ./testrunner
Bus error
make: *** [Makefile:7: autopkgtest] Error 135
autopkgtest [16:04:29]: test command1: -----------------------]
autopkgtest [16:04:29]: test command1: - - - - - - - - - - results - - - - - -
- - - -
command1 FAIL non-zero exit status 2
autopkgtest [16:04:29]: test command1: - - - - - - - - - - stderr - - - - - -
- - - -
Bus error
make: *** [Makefile:7: autopkgtest] Error 135
autopkgtest [16:04:29]: @@@@@@@@@@@@@@@@@@@@ summary
command1 FAIL non-zero exit status 2
benutzer@localhost:~$
benutzer@localhost:~/autopkgtest-dh-runit-output$ autopkgtest --shell-fail
dh-runit -- null
autopkgtest [16:10:06]: starting date: 2020-10-31
autopkgtest [16:10:06]: version 5.15
autopkgtest [16:10:06]: host localhost; command line: /usr/bin/autopkgtest
--shell-fail dh-runit -- null
autopkgtest [16:10:07]: testbed dpkg architecture: armhf
autopkgtest [16:10:07]: testbed running kernel: Linux 3.4.113-g2fff5b1955c0 #1
SMP PREEMPT Sun Mar 8 06:23:52 CST 2020
autopkgtest [16:10:07]: @@@@@@@@@@@@@@@@@@@@ apt-source dh-runit
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/dpkg-verify-sig.G8OGzlGp/trustedkeys.kbx':
General error
gpgv: Signature made Di 21 Jul 2020 10:55:07 UTC
gpgv: using RSA key 92978A6E195E4921825F7FF0F34F09744E9F5DD9
gpgv: Can't check signature: No public key
dpkg-source: Warnung: Fehler beim Überprüfen der Signatur von
./dh-runit_2.9.0.dsc
autopkgtest [16:10:09]: testing package dh-runit version 2.9.0
autopkgtest [16:10:09]: build not needed
autopkgtest [16:10:09]: test command1: preparing testbed
autopkgtest [16:10:10]: test command1: make autopkgtest
autopkgtest [16:10:10]: test command1: [-----------------------
ghc testrunner.hs
[1 of 1] Compiling Main ( testrunner.hs, testrunner.o )
Linking testrunner ...
AUTOPKGTEST=1 ./testrunner
Bus error
make: *** [Makefile:7: autopkgtest] Error 135
autopkgtest [16:10:24]: test command1: -----------------------]
autopkgtest [16:10:24]: test command1: - - - - - - - - - - results - - - - - -
- - - -
command1 FAIL non-zero exit status 2
autopkgtest [16:10:24]: test command1: - - - - - - - - - - stderr - - - - - -
- - - -
Bus error
make: *** [Makefile:7: autopkgtest] Error 135
autopkgtest [16:10:24]: - - - - - - - - - - running shell - - - - - - - - - -
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ AUTOPKGTEST=1
./testrunner
Bus-Zugriffsfehler
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ AUTOPKGTEST=1 gdb -q
--args ./testrunner
Reading symbols from ./testrunner...
(No debugging symbols found in ./testrunner)
(gdb) run
Starting program: /tmp/autopkgtest.RrcYgT/build.1JW/src/testrunner
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGBUS, Bus error.
0x000d0670 in ?? ()
(gdb) bt
#0 0x000d0670 in ?? ()
#1 0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) display/i $pc
1: x/i $pc
=> 0xd0670: stmib r1, {r9, lr}
(gdb)
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ AUTOPKGTEST=1 gdb -q
--args ./testrunner
Reading symbols from ./testrunner...
(No debugging symbols found in ./testrunner)
(gdb) b *0x000d0670
Breakpoint 1 at 0xd0670
(gdb) display/i $pc
1: x/i $pc
<error: No registers.>
(gdb) run
Starting program: /tmp/autopkgtest.RrcYgT/build.1JW/src/testrunner
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Breakpoint 1, 0x000d0670 in ?? ()
1: x/i $pc
=> 0xd0670: stmib r1, {r9, lr}
(gdb) bt
#0 0x000d0670 in ?? ()
#1 0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) disassemble 0x000d0628,0x000d0670+50
Dump of assembler code from 0xd0628 to 0xd06a2:
0x000d0628: mov r3, r6
0x000d062c: ldr r2, [r4, #804] ; 0x324
0x000d0630: add r6, r6, #8
0x000d0634: cmp r2, r6
0x000d0638: bcc 0xd069c
0x000d063c: ldr r7, [r5, #40]! ; 0x28
0x000d0640: ldr r2, [r5, #-36] ; 0xffffffdc
0x000d0644: ldr r10, [r5, #-32] ; 0xffffffe0
0x000d0648: ldr r9, [r5, #-28] ; 0xffffffe4
0x000d064c: ldr lr, [r5, #-24] ; 0xffffffe8
0x000d0650: ldr r0, [r5, #8]
0x000d0654: ldr r1, [r5, #12]
0x000d0658: ldr r8, [r5, #20]
0x000d065c: ldr r12, [r5, #-4]
0x000d0660: add r0, r1, r0
0x000d0664: mov r1, r0
0x000d0668: str r10, [r1, r2]!
0x000d066c: ldr r10, [pc, #56] ; 0xd06ac
=> 0x000d0670: stmib r1, {r9, lr}
0x000d0674: add r1, r0, #12
0x000d0678: str r12, [r1, r2]
0x000d067c: add r2, r0, #16
0x000d0680: str r10, [r3, #4]
0x000d0684: str r2, [r3, #8]
0x000d0688: str r1, [r5, #12]
0x000d068c: ldr r3, [pc, #20] ; 0xd06a8
0x000d0690: str r3, [r5]
0x000d0694: sub r9, r6, #3
0x000d0698: b 0x54aa08 <stg_ap_ppv_fast$def>
0x000d069c: mov r3, #8
0x000d06a0: str r3, [r4, #828] ; 0x33c
End of assembler dump.
(gdb) print/x $r1
$1 = 0xb6728466
(gdb) print/x $r1 % 4
$2 = 0x2
(gdb) set $r1 = $r1 + 2
(gdb) stepi
0x000d0674 in ?? ()
1: x/i $pc
=> 0xd0674: add r1, r0, #12
(gdb)
root@localhost:~# cat /proc/cpu/alignment
User: 1
System: 1
Skipped: 0
Half: 0
Word: 0
DWord: 0
Multi: 1
User faults: 4 (signal)
root@localhost:~# echo 3 > /proc/cpu/alignment
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ AUTOPKGTEST=1
./testrunner
# tar (for t/out/935997.tar)
# mv (for t/out/935997.tar)
# tar (for t/out/934173.tar)
# mv (for t/out/934173.tar)
# tar (for t/out/931425.tar)
# mv (for t/out/931425.tar)
# tar (for t/out/929778.tar)
# mv (for t/out/929778.tar)
# tar (for t/out/928935.tar)
# mv (for t/out/928935.tar)
# tar (for t/out/924903.tar)
# mv (for t/out/924903.tar)
# rm (for t/out/935997.log)
# mkdir (for t/out/935997.log)
# tar (for t/out/935997.log)
# chmod (for t/out/935997.log)
# rm (for t/out/934173.log)
# mkdir (for t/out/934173.log)
# tar (for t/out/934173.log)
# chmod (for t/out/934173.log)
# rm (for t/out/931425.log)
# mkdir (for t/out/931425.log)
# tar (for t/out/931425.log)
# chmod (for t/out/931425.log)
# rm (for t/out/929778.log)
# mkdir (for t/out/929778.log)
# tar (for t/out/929778.log)
# chmod (for t/out/929778.log)
# rm (for t/out/928935.log)
# mkdir (for t/out/928935.log)
# tar (for t/out/928935.log)
# chmod (for t/out/928935.log)
# rm (for t/out/924903.log)
# mkdir (for t/out/924903.log)
# tar (for t/out/924903.log)
# chmod (for t/out/924903.log)
# dh_runit (for t/out/935997.log)
# prove (for t/out/935997.log)
# dh_runit (for t/out/934173.log)
# prove (for t/out/934173.log)
# dh_runit (for t/out/931425.log)
# prove (for t/out/931425.log)
# dh_runit (for t/out/929778.log)
# prove (for t/out/929778.log)
# dh_runit (for t/out/928935.log)
# prove (for t/out/928935.log)
# dh_runit (for t/out/924903.log)
# prove (for t/out/924903.log)
Build completed in 8.25s
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$
root@localhost:~# dmesg -w -T
...
[Sa Okt 31 16:48:57 2020] Alignment trap: testrunner (10582) PC=0x0000e4ec
Instr=0xe9814200 Address=0xb6758c7a FSR 0x801
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ AUTOPKGTEST=1 gdb -q
--args ./testrunner
Reading symbols from ./testrunner...
(No debugging symbols found in ./testrunner)
(gdb) set width 0
(gdb) set pagination off
(gdb) display/i $pc
1: x/i $pc
<error: No registers.>
(gdb) b *0x000d0670
Breakpoint 1 at 0xd0670
(gdb) run
Starting program: /tmp/autopkgtest.RrcYgT/build.1JW/src/testrunner
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Breakpoint 1, 0x000d0670 in ?? ()
1: x/i $pc
=> 0xd0670: stmib r1, {r9, lr}
(gdb) stepi
0x000d0674 in ?? ()
1: x/i $pc
=> 0xd0674: add r1, r0, #12
(gdb) nexti
0x000d0678 in ?? ()
1: x/i $pc
=> 0xd0678: str r12, [r1, r2]
(gdb)
0x000d067c in ?? ()
1: x/i $pc
=> 0xd067c: add r2, r0, #16
(gdb)
0x000d0680 in ?? ()
1: x/i $pc
=> 0xd0680: str r10, [r3, #4]
(gdb)
0x000d0684 in ?? ()
1: x/i $pc
=> 0xd0684: str r2, [r3, #8]
(gdb)
0x000d0688 in ?? ()
1: x/i $pc
=> 0xd0688: str r1, [r5, #12]
(gdb)
0x000d068c in ?? ()
1: x/i $pc
=> 0xd068c: ldr r3, [pc, #20] ; 0xd06a8
(gdb)
0x000d0690 in ?? ()
1: x/i $pc
=> 0xd0690: str r3, [r5]
(gdb)
0x000d0694 in ?? ()
1: x/i $pc
=> 0xd0694: sub r9, r6, #3
(gdb)
0x000d0698 in ?? ()
1: x/i $pc
=> 0xd0698: b 0x54aa08 <stg_ap_ppv_fast$def>
(gdb)
0x0054aa08 in stg_ap_ppv_fast$def ()
1: x/i $pc
=> 0x54aa08 <stg_ap_ppv_fast$def>: mov r3, r6
(gdb) bt
#0 0x0054aa08 in stg_ap_ppv_fast$def ()
#1 0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) info thread
Id Target Id Frame
* 1 Thread 0xb6fef5d0 (LWP 10582) "testrunner" 0x0054aa08 in
stg_ap_ppv_fast$def ()
(gdb)
./includes/stg/MiscClosures.h:278:RTS_FUN_DECL(stg_ap_ppv_fast);
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ rm testrunner.hi
testrunner.o testrunner t/out -rf
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ ghc -debug
testrunner.hs
[1 of 1] Compiling Main ( testrunner.hs, testrunner.o )
Linking testrunner ...
benutzer@localhost:/tmp/autopkgtest.RrcYgT/build.1JW/src$ AUTOPKGTEST=1
./testrunner
# tar (for t/out/935997.tar)
...
Build completed in 8.08s
root@localhost:~# echo 4 > /proc/cpu/alignment
benutzer@localhost:/tmp/autopkgtest.Eeftd6/build.BQ2/src$ rm testrunner.hi
testrunner.o testrunner t/out -rf
benutzer@localhost:~$ autopkgtest --shell-fail dh-runit -- null
autopkgtest [17:22:05]: starting date: 2020-10-31
autopkgtest [17:22:05]: version 5.15
autopkgtest [17:22:05]: host localhost; command line: /usr/bin/autopkgtest
--shell-fail dh-runit -- null
autopkgtest [17:22:05]: testbed dpkg architecture: armhf
autopkgtest [17:22:05]: testbed running kernel: Linux 3.4.113-g2fff5b1955c0 #1
SMP PREEMPT Sun Mar 8 06:23:52 CST 2020
autopkgtest [17:22:05]: @@@@@@@@@@@@@@@@@@@@ apt-source dh-runit
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/dpkg-verify-sig.dlXHFJNS/trustedkeys.kbx':
General error
gpgv: Signature made Di 21 Jul 2020 10:55:07 UTC
gpgv: using RSA key 92978A6E195E4921825F7FF0F34F09744E9F5DD9
gpgv: Can't check signature: No public key
dpkg-source: Warnung: Fehler beim Überprüfen der Signatur von
./dh-runit_2.9.0.dsc
autopkgtest [17:22:09]: testing package dh-runit version 2.9.0
autopkgtest [17:22:09]: build not needed
autopkgtest [17:22:09]: test command1: preparing testbed
autopkgtest [17:22:10]: test command1: make autopkgtest
autopkgtest [17:22:10]: test command1: [-----------------------
ghc testrunner.hs
[1 of 1] Compiling Main ( testrunner.hs, testrunner.o )
Linking testrunner ...
AUTOPKGTEST=1 ./testrunner
Bus error
make: *** [Makefile:7: autopkgtest] Error 135
autopkgtest [17:22:28]: test command1: -----------------------]
autopkgtest [17:22:28]: test command1: - - - - - - - - - - results - - - - - -
- - - -
command1 FAIL non-zero exit status 2
autopkgtest [17:22:29]: test command1: - - - - - - - - - - stderr - - - - - -
- - - -
Bus error
make: *** [Makefile:7: autopkgtest] Error 135
autopkgtest [17:22:29]: - - - - - - - - - - running shell - - - - - - - - - -
benutzer@localhost:/tmp/autopkgtest.Eeftd6/build.BQ2/src$
...
benutzer@localhost:/tmp/autopkgtest.Eeftd6/build.BQ2/src$ ghc -v3 testrunner.hs
Glasgow Haskell Compiler, Version 8.8.4, stage 2 booted by GHC version 8.8.3
Using binary package database: /usr/lib/ghc/package.conf.d/package.cache
package flags []
loading package database /usr/lib/ghc/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.3
wired-in package integer-wired-in mapped to integer-gmp-1.0.2.0
wired-in package base mapped to base-4.13.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.15.0.0
wired-in package ghc mapped to ghc-8.8.4
package flags []
loading package database /usr/lib/ghc/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.3
wired-in package integer-wired-in mapped to integer-gmp-1.0.2.0
wired-in package base mapped to base-4.13.0.0
wired-in package rts mapped to rts-1.0
wired-in package template-haskell mapped to template-haskell-2.15.0.0
wired-in package ghc mapped to ghc-8.8.4
*** Chasing dependencies:
Chasing modules from: *testrunner.hs
!!! Chasing dependencies: finished in 10.53 milliseconds, allocated 0.712
megabytes
Stable obj: {}
Stable BCO: {}
Ready for upsweep
[NONREC
ModSummary {
ms_hs_date = 2020-03-18 18:51:54 UTC
ms_mod = Main,
ms_textual_imps = [(Nothing, Prelude), (Nothing, Text.Printf),
(Nothing, System.Directory), (Nothing,
Development.Shake.FilePath),
(Nothing, Development.Shake.Command), (Nothing,
Development.Shake)]
ms_srcimps = []
}]
*** Deleting temp files:
Deleting:
compile: input file testrunner.hs
*** Checking old interface for Main (use -ddump-hi-diffs for more details):
[1 of 1] Compiling Main ( testrunner.hs, testrunner.o )
*** Parser [Main]:
!!! Parser [Main]: finished in 8.82 milliseconds, allocated 0.990 megabytes
*** Renamer/typechecker [Main]:
!!! Renamer/typechecker [Main]: finished in 912.66 milliseconds, allocated
39.732 megabytes
*** Desugar [Main]:
Result size of Desugar (before optimization)
= {terms: 925, types: 902, coercions: 126, joins: 0/22}
Result size of Desugar (after optimization)
= {terms: 799, types: 794, coercions: 182, joins: 0/9}
!!! Desugar [Main]: finished in 20.94 milliseconds, allocated 1.431 megabytes
*** Simplifier [Main]:
Result size of Simplifier iteration=1
= {terms: 821, types: 789, coercions: 114, joins: 0/8}
Result size of Simplifier
= {terms: 799, types: 778, coercions: 70, joins: 0/8}
!!! Simplifier [Main]: finished in 71.23 milliseconds, allocated 2.466 megabytes
*** CoreTidy [Main]:
Result size of Tidy Core
= {terms: 799, types: 778, coercions: 70, joins: 0/8}
!!! CoreTidy [Main]: finished in 5.31 milliseconds, allocated 0.335 megabytes
writeBinIface: 2 Names
writeBinIface: 98 dict entries
Created temporary directory: /tmp/ghc3749_0
*** CorePrep [Main]:
Result size of CorePrep
= {terms: 1,361, types: 1,297, coercions: 70, joins: 0/172}
!!! CorePrep [Main]: finished in 14.07 milliseconds, allocated 0.908 megabytes
*** Stg2Stg:
*** CodeGen [Main]:
*** LLVM CodeGen:
*** LLVM CodeGen:
Using LLVM version: 9.0.1
!!! LLVM CodeGen: finished in 1394.81 milliseconds, allocated 128.552 megabytes
!!! CodeGen [Main]: finished in 1396.39 milliseconds, allocated 128.610
megabytes
*** LLVM Optimiser:
opt-9 -mem2reg -globalopt -enable-tbaa -tbaa '-relocation-model=static'
/tmp/ghc3749_0/ghc_2.ll -o /tmp/ghc3749_0/ghc_4.bc
*** LLVM Compiler:
llc-9 -O1 -enable-tbaa '-relocation-model=static' '-mcpu=arm1176jzf-s'
'-mattr=+strict-align' /tmp/ghc3749_0/ghc_4.bc -o /tmp/ghc3749_0/ghc_5.lm_s
*** LLVM Mangler:
!!! LLVM Mangler: finished in 95.92 milliseconds, allocated 8.879 megabytes
*** Assembler:
arm-linux-gnueabihf-gcc -marm -DTABLES_NEXT_TO_CODE -iquote. -no-pie -fno-PIC
-x assembler -c /tmp/ghc3749_0/ghc_6.s -o testrunner.o
Upsweep completely successful.
*** Deleting temp files:
Deleting: /tmp/ghc3749_0/ghc_1.ll /tmp/ghc3749_0/ghc_2.ll
/tmp/ghc3749_0/ghc_3.c /tmp/ghc3749_0/ghc_4.bc /tmp/ghc3749_0/ghc_5.lm_s
/tmp/ghc3749_0/ghc_6.s
Warning: deleting non-existent /tmp/ghc3749_0/ghc_1.ll
Warning: deleting non-existent /tmp/ghc3749_0/ghc_3.c
link: linkables are ...
LinkableM (2020-10-31 17:59:44.692860119 UTC) Main
[DotO testrunner.o]
Linking testrunner ...
*** C Compiler:
arm-linux-gnueabihf-gcc -marm -DTABLES_NEXT_TO_CODE -c /tmp/ghc3749_0/ghc_7.c
-o /tmp/ghc3749_0/ghc_8.o -no-pie -fno-PIC -I/usr/lib/ghc/include
*** C Compiler:
arm-linux-gnueabihf-gcc -marm -DTABLES_NEXT_TO_CODE -c /tmp/ghc3749_0/ghc_10.s
-o /tmp/ghc3749_0/ghc_11.o
*** Linker:
arm-linux-gnueabihf-gcc -marm -DTABLES_NEXT_TO_CODE '-fuse-ld=gold'
-Wl,-z,noexecstack -Wl,--no-as-needed -o testrunner -lm -no-pie -fno-PIC
-Wl,--gc-sections testrunner.o
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/shake-0.19.1-954RBXDG9kGJncutEVXLme
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/utf8-string-1.0.1.1-K3Cc2i5eeGM49mkpXdBKoc
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/unordered-containers-0.2.10.0-IpJ3IfcThvdASaOHaltDG
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/random-1.1-CUqV1zxrwrE4K5XCdTZSYy
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/primitive-0.7.0.1-CN4ea3Jrhra6yENuqrDg51
-L/usr/lib/ghc/transformers-0.5.6.2
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/js-jquery-3.3.1-Es1jubL8FeE97YEvmfGQez
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/js-flot-0.8.3-1yLdkOnv9AiEr7YJRI8T0z
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/js-dgtable-0.5.2-Fhi9Kl8mbievTXcVcQcUH
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/heaps-0.3.6.1-BfpBACLByuH5FJavluAE4c
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/hashable-1.3.0.0-AOP4LTmShW4Dax9brHgY53
-L/usr/lib/ghc/text-1.2.4.0 -L/usr/lib/ghc/template-haskell-2.15.0.0
-L/usr/lib/ghc/pretty-1.1.3.6 -L/usr/lib/ghc/ghc-boot-th-8.8.4
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/filepattern-0.1.2-NLayBG8n3P1GyhghHy8Ey
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/extra-1.7.4-4l57rNiWySP4U5geuo1GU4
-L/usr/lib/ghc/process-1.6.9.0 -L/usr/lib/ghc/directory-1.3.6.0
-L/usr/lib/ghc/unix-2.7.2.2 -L/usr/lib/ghc/time-1.9.3
-L/usr/lib/ghc/filepath-1.4.2.1
-L/usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-8.8.4/clock-0.8-A49D1ulhgED3S3X2LkGyEI
-L/usr/lib/ghc/binary-0.8.7.0 -L/usr/lib/ghc/containers-0.6.2.1
-L/usr/lib/ghc/bytestring-0.10.10.1 -L/usr/lib/ghc/deepseq-1.4.4.0
-L/usr/lib/ghc/array-0.5.4.0 -L/usr/lib/ghc/base-4.13.0.0
-L/usr/lib/ghc/integer-gmp-1.0.2.0 -L/usr/lib/ghc/ghc-prim-0.5.3
-L/usr/lib/ghc/rts /tmp/ghc3749_0/ghc_8.o /tmp/ghc3749_0/ghc_11.o
-Wl,-u,base_GHCziTopHandler_runIO_closure
-Wl,-u,base_GHCziTopHandler_runNonIO_closure
-Wl,-u,ghczmprim_GHCziTuple_Z0T_closure
-Wl,-u,ghczmprim_GHCziTypes_True_closure
-Wl,-u,ghczmprim_GHCziTypes_False_closure
-Wl,-u,base_GHCziPack_unpackCString_closure
-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure
-Wl,-u,base_GHCziIOziException_stackOverflow_closure
-Wl,-u,base_GHCziIOziException_heapOverflow_closure
-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure
-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure
-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure
-Wl,-u,base_GHCziIOziException_cannotCompactFunction_closure
-Wl,-u,base_GHCziIOziException_cannotCompactPinned_closure
-Wl,-u,base_GHCziIOziException_cannotCompactMutable_closure
-Wl,-u,base_ControlziExceptionziBase_absentSumFieldError_closure
-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure
-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure
-Wl,-u,base_GHCziEventziThread_blockedOnBadFD_closure
-Wl,-u,base_GHCziConcziSync_runSparks_closure
-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure
-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure
-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure
-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure
-Wl,-u,base_GHCziTopHandler_runMainIO_closure
-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info
-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info
-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info
-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info
-Wl,-u,ghczmprim_GHCziTypes_Wzh_con_info -Wl,-u,base_GHCziPtr_Ptr_con_info
-Wl,-u,base_GHCziPtr_FunPtr_con_info -Wl,-u,base_GHCziInt_I8zh_con_info
-Wl,-u,base_GHCziInt_I16zh_con_info -Wl,-u,base_GHCziInt_I32zh_con_info
-Wl,-u,base_GHCziInt_I64zh_con_info -Wl,-u,base_GHCziWord_W8zh_con_info
-Wl,-u,base_GHCziWord_W16zh_con_info -Wl,-u,base_GHCziWord_W32zh_con_info
-Wl,-u,base_GHCziWord_W64zh_con_info -Wl,-u,base_GHCziStable_StablePtr_con_info
-Wl,-u,hs_atomic_add8 -Wl,-u,hs_atomic_add16 -Wl,-u,hs_atomic_add32
-Wl,-u,hs_atomic_sub8 -Wl,-u,hs_atomic_sub16 -Wl,-u,hs_atomic_sub32
-Wl,-u,hs_atomic_and8 -Wl,-u,hs_atomic_and16 -Wl,-u,hs_atomic_and32
-Wl,-u,hs_atomic_nand8 -Wl,-u,hs_atomic_nand16 -Wl,-u,hs_atomic_nand32
-Wl,-u,hs_atomic_or8 -Wl,-u,hs_atomic_or16 -Wl,-u,hs_atomic_or32
-Wl,-u,hs_atomic_xor8 -Wl,-u,hs_atomic_xor16 -Wl,-u,hs_atomic_xor32
-Wl,-u,hs_cmpxchg8 -Wl,-u,hs_cmpxchg16 -Wl,-u,hs_cmpxchg32
-Wl,-u,hs_atomicread8 -Wl,-u,hs_atomicread16 -Wl,-u,hs_atomicread32
-Wl,-u,hs_atomicwrite8 -Wl,-u,hs_atomicwrite16 -Wl,-u,hs_atomicwrite32
-lHSshake-0.19.1-954RBXDG9kGJncutEVXLme
-lHSutf8-string-1.0.1.1-K3Cc2i5eeGM49mkpXdBKoc
-lHSunordered-containers-0.2.10.0-IpJ3IfcThvdASaOHaltDG
-lHSrandom-1.1-CUqV1zxrwrE4K5XCdTZSYy
-lHSprimitive-0.7.0.1-CN4ea3Jrhra6yENuqrDg51 -lHStransformers-0.5.6.2
-lHSjs-jquery-3.3.1-Es1jubL8FeE97YEvmfGQez
-lHSjs-flot-0.8.3-1yLdkOnv9AiEr7YJRI8T0z
-lHSjs-dgtable-0.5.2-Fhi9Kl8mbievTXcVcQcUH
-lHSheaps-0.3.6.1-BfpBACLByuH5FJavluAE4c
-lHShashable-1.3.0.0-AOP4LTmShW4Dax9brHgY53 -lHStext-1.2.4.0
-lHStemplate-haskell-2.15.0.0 -lHSpretty-1.1.3.6 -lHSghc-boot-th-8.8.4
-lHSfilepattern-0.1.2-NLayBG8n3P1GyhghHy8Ey
-lHSextra-1.7.4-4l57rNiWySP4U5geuo1GU4 -lHSprocess-1.6.9.0
-lHSdirectory-1.3.6.0 -lHSunix-2.7.2.2 -lHStime-1.9.3 -lHSfilepath-1.4.2.1
-lHSclock-0.8-A49D1ulhgED3S3X2LkGyEI -lHSbinary-0.8.7.0 -lHScontainers-0.6.2.1
-lHSbytestring-0.10.10.1 -lHSdeepseq-1.4.4.0 -lHSarray-0.5.4.0
-lHSbase-4.13.0.0 -lHSinteger-gmp-1.0.2.0 -lHSghc-prim-0.5.3 -lHSrts -lrt
-lutil -ldl -lpthread -lgmp -lc -lm -lm -lrt -ldl -lffi -lpthread
link: done
*** Deleting temp files:
Deleting: /tmp/ghc3749_0/ghc_10.s /tmp/ghc3749_0/ghc_12.rsp
/tmp/ghc3749_0/ghc_13.rsp /tmp/ghc3749_0/ghc_7.c /tmp/ghc3749_0/ghc_9.rsp
/tmp/ghc3749_0/ghc_11.o /tmp/ghc3749_0/ghc_8.o
*** Deleting temp dirs:
Deleting: /tmp/ghc3749_0
benutzer@localhost:/tmp/autopkgtest.Eeftd6/build.BQ2/src$ AUTOPKGTEST=1 gdb -q
--args ./testrunner
Reading symbols from ./testrunner...
(No debugging symbols found in ./testrunner)
(gdb) run
Starting program: /tmp/autopkgtest.Eeftd6/build.BQ2/src/testrunner
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGBUS, Bus error.
0x000d0670 in ?? ()
(gdb) display/i $pc
1: x/i $pc
=> 0xd0670: stmib r1, {r9, lr}
(gdb) print/x $r1
$1 = 0xb6728466
(gdb) print/x $r1 % 4
$2 = 0x2
(gdb) kill
Kill the program being debugged? (y or n) y
[Inferior 1 (process 3809) killed]
(gdb) q