jart / blink

tiniest x86-64-linux emulator
ISC License
6.96k stars 222 forks source link

Segfault when trying to use Blink to run Redbean at Ubuntu 23.10 s390x at IBM LinuxOne #162

Closed xet7 closed 9 months ago

xet7 commented 9 months ago

Hi, Blink compiled from this repo today at Ubuntu 23.10 s390x with ./configure && make -j4

This works: https://redbean.dev/redbean-demo-2.2.com

But this has segfault: https://cosmo.zip/pub/cosmos/bin/redbean

$ blink ./redbean.com 
E2024-01-21T05:20:10.238472:blink/blink.c:158:5261 terminating due to SIGSEGV (rip=0x602bae code=1 faultaddr=0xa0503f0080200000)
E2024-01-21T05:20:10.238601:blink/blink.c:142:5261 additional information
     PC 602bae cmpl $3,4(%rax) 83 78 04 03 75 ec 45 0f
     AX a0503f0080200000  CX 0000000000000000  DX 0000000000000000  BX 0000000000000000
     SP 00004ffffffbfe90  BP 00004ffffffbff00  SI 0000000000002500  DI 0000000000004000
     R8 a0503f0080200000  R9 00000000006dff78 R10 006261747274732e R11 0000000000000030
    R12 00000000006d9a64 R13 0000100080200000 R14 0000000000000003 R15 00000000002f59e0
     FS 0000000000699f00  GS 0000000000000000 OPS 5701             FLG .S....
    redbean
    4ffffffbff00 000000602bae UNKNOWN 112 bytes
    4ffffffbff20 000000602fdd UNKNOWN 32 bytes
    4ffffffbff40 0000006012db UNKNOWN 32 bytes
    4ffffffbff80 0000005d9e6f UNKNOWN 64 bytes
    4ffffffbffc0 0000005d9f04 UNKNOWN 64 bytes
    4ffffffbffe0 000000404941 UNKNOWN 32 bytes
    4ffffffbfff0 000000404ec7 UNKNOWN 16 bytes
    000000000000 000000404604 UNKNOWN
000000400000-000000636fff 2268k rx  redbean
000000637000-000000692fff  368k r   redbean
000000693000-0000006e6fff  336k rw  redbean
100080200000-1000804f5fff 3032k r   /usr/local/bin/blink
4fffff800000-4fffffffffff 8192k rw  [stack]
6fe000040000-6fe00004ffff   64k rw  
<blink backtrace unavailable>
jart commented 9 months ago

Hello IBMer! Thanks for reporting this. Fix incoming.

xet7 commented 9 months ago

@jart

Thanks! It works!

jart commented 9 months ago

New 1.1 release out https://github.com/jart/blink/releases/tag/1.1.0