Discussion:
ghc: FTBFS haskell-random powerpc (ghc Segmentation fault)
(too old to reply)
Christian Marillat
2023-10-09 07:00:02 UTC
Permalink
Hi Christian!
Hi Adrian,

[...]
Could you provide the disassembled code for the affected code section?
I don't remember but now I can install ghc (>= 9.4) only 9.0.2 is
available.

Is it important ?

Christian
Christian Marillat
2023-10-09 07:30:01 UTC
Permalink
Hi Christian!
Hi Adrian,
Could you provide the disassembled code for the affected code section?
Is this enough ?

,----
| Dump of assembler code for function __GI_kill:
| 0xf7644b94 <+0>: li r0,37
| 0xf7644b98 <+4>: sc
| => 0xf7644b9c <+8>: bnslr+
| 0xf7644ba0 <+12>: b 0xf762a200 <__syscall_error>
| End of assembler dump.
`----

Christian
Christian Marillat
2023-10-09 07:50:01 UTC
Permalink
On 09 oct. 2023 09:32, John Paul Adrian Glaubitz <***@physik.fu-berlin.de> wrote:


[...]
I think the interesting part would be the disassembly of
base_GHCziFloat_floatToDigits_closure ()
where the actual crash happened. Your disassembly seems to show parts
of the segfault handler.
,----
| 10a19f20 <base_GHCziFloat_zdwzdsfloatToDigits_closure>:
| 10a19f20: 10 83 c0 48 vmulouh v4,v3,v24
| 10a19f24: 10 a2 0d bc vaddeuqm v5,v2,v1,v22
| 10a19f28: 10 a1 9e 80 vsubuws v5,v1,v19
| 10a19f2c: 10 a1 9e b0 maddhd r5,r1,r19,r26
| 10a19f30: 10 a1 9e d0 zvdotphssui r5,r1,r19
| 10a19f34: 10 a1 9f 10 .long 0x10a19f10
| 10a19f38: 00 00 00 00 .long 0x0
| 10a19f3c: 10 90 f7 d0 .long 0x1090f7d0
| 10a19f40: 10 a1 9c 18 vextdubvlx v5,v1,v19,r16
| 10a19f44: 10 a1 9c c0 vsubudm v5,v1,v19
| 10a19f48: 00 00 00 00 .long 0x0
| 10a19f4c: 10 90 f7 f0 maddhd r4,r16,r30,r31
| 10a19f50: 10 a1 9c 08 vpmsumb v5,v1,v19
| 10a19f54: 10 a1 9f 00 vsubsbs v5,v1,v19
| 10a19f58: 10 a1 9f 3c vaddeuqm v5,v1,v19,v28
| 10a19f5c: 00 00 00 00 .long 0x0
| 10a19f60: 10 90 f7 d0 .long 0x1090f7d0
| 10a19f64: 10 a1 9f 20 vmhaddshs v5,v1,v19,v28
| 10a19f68: 10 a1 9f 4c psq_lux f5,r1,r19,1,6
| 10a19f6c: 00 00 00 00 .long 0x0
`----

Christian

Loading...