[Bug ipa/89893] Segmentation fault always occurs when node app is generated by gcc-8-branch@268745

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 5 14:14:00 GMT 2019


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

--- Comment #29 from Martin Liška <marxin at gcc dot gnu.org> ---
> Thanks for your reminder. Currently I found there were 3 ways to solve the
> issue.
> 1.Remove “enable-lto” in configure and open “fno-strict-aliasing”.
> 2.Add “__attribute__((noipa))” to the uv_unref(uv_handle_t*) function.
> 3.Add “__attribute__((noinline))” to the uv_unref(uv_handle_t*) function.
> Maybe the first solution is a more reliable one in contrast to the other two
> solutions. As solution 2 and 3 are more likely a workaround. Do you have any
> suggestions?

It's always needed to use -fno-strict-aliasing as mentioned here:
https://github.com/nodejs/node/issues/27054

and the using --enable-lto should be fine.


More information about the Gcc-bugs mailing list