https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79037

--- Comment #3 from John Paul Adrian Glaubitz <glaubitz at physik dot 
fu-berlin.de> ---
(In reply to John Paul Adrian Glaubitz from comment #2)
> (In reply to John Paul Adrian Glaubitz from comment #1)
> > I'll report back tomorrow.
> 
> Problem persists:

Correction: The patch fixes the alignment problem, but it exposes another bug:

root@mama:~# gccgo-6 hello-world.go -o hello-world2
root@mama:~# ./hello-world2
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x2 addr=0xa5eec0cf]

runtime stack:
runtime_dopanic
        ../../../src/libgo/runtime/panic.c:135
runtime_throw
        ../../../src/libgo/runtime/panic.c:193
sig_panic_leadin
        ../../../src/libgo/runtime/go-signal.c:249
sig_panic_info_handler
        ../../../src/libgo/runtime/go-signal.c:283

        :0
scanblock
        ../../../src/libgo/runtime/mgc0.c:1117
markroot
        ../../../src/libgo/runtime/mgc0.c:1368
runtime_parfordo
        ../../../src/libgo/runtime/parfor.c:93
gc
        ../../../src/libgo/runtime/mgc0.c:2270
mgc
        ../../../src/libgo/runtime/mgc0.c:2215
runtime_mstart
        ../../../src/libgo/runtime/proc.c:1076

goroutine 16 [garbage collection]:
runtime_mcall
        ../../../src/libgo/runtime/proc.c:295
runtime_gc
        ../../../src/libgo/runtime/mgc0.c:2191
runtime_mallocgc
        ../../../src/libgo/runtime/malloc.goc:259
__go_new
        ../../../src/libgo/runtime/go-new.c:16
main.main
        /root/hello-world.go:6
runtime_main
        ../../../src/libgo/runtime/proc.c:626

goroutine 17 [runnable]:
kickoff
        ../../../src/libgo/runtime/proc.c:232
created by runtime_main
        ../../../src/libgo/runtime/proc.c:598

goroutine 18 [runnable]:
kickoff
        ../../../src/libgo/runtime/proc.c:232
created by runtime_createfing
        ../../../src/libgo/runtime/mgc0.c:2577
root@mama:~#

Looks like we're missing a signal handler on m68k.

Reply via email to