[Bug libgcc/103510] _Unwind_GetGR crashed for uninitialized registers

2021-12-09 Thread ashimida at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103510 --- Comment #5 from ashimida --- (In reply to Andrew Pinski from comment #3) > The only registers which are saved are the callee saved register IIRC. So > you need to know the ABI. Hi Andrew, Is it reasonable to save all registers (include cal

[Bug libgcc/103510] _Unwind_GetGR crashed for uninitialized registers

2021-12-02 Thread ashimida at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103510 --- Comment #4 from ashimida --- (In reply to Andrew Pinski from comment #3) > The only registers which are saved are the callee saved register IIRC. So > you need to know the ABI. Thanks Andrew, I saw the following description in the IA-64 C+

[Bug libgcc/103510] _Unwind_GetGR crashed for uninitialized registers

2021-12-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103510 --- Comment #3 from Andrew Pinski --- The only registers which are saved are the callee saved register IIRC. So you need to know the ABI.

[Bug libgcc/103510] _Unwind_GetGR crashed for uninitialized registers

2021-12-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103510 --- Comment #2 from Andrew Pinski --- Funny there is a comment in the libgcc sources: /* This will segfault if the register hasn't been saved. */ Which has been there since day 1 of IA-64 ABI exception handling back in g:52a11cbfcf0cfb32628b6

[Bug libgcc/103510] _Unwind_GetGR crashed for uninitialized registers

2021-11-30 Thread ashimida at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103510 --- Comment #1 from ashimida --- For example, such a c code works find in clang with libunwind, and will cause a crash in gcc with libgcc in aarch64. #include #include #include _Unwind_Reason_Code callback(struct _Unwind_Context *context, v