[Bug 247738] on powerpc64 bc exits with segfault right after starting it

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 3 19:56:47 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247738

--- Comment #7 from Leandro Lupori <luporl at FreeBSD.org> ---
Created attachment 216180
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=216180&action=edit
Disable -flto on powerpc64

The attached patch fixes the issue for me.

There is probably a bug with LLVM's LTO for PowerPC64 (but, at least on PPC64,
it doesn't seem related to floating point incompatibilities, as a comment in
the Makefile suggests).

It is probably worth to investigate why LLVM LTO is producing incorrect code,
but disabling LTO for gh-bc should be fine while LLVM is not fixed (if this is
really the case).

For the record, the code fragment that is crashing is jumping to a pointer to a
TOC entry, instead of using the pointer stored at that TOC entry, that
correctly points to main().

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list