Re: [RFC][PR 67336][PING^2] Verify pointers during stack unwind

2017-06-26 Thread Yuri Gribov
On Sun, Jun 25, 2017 at 8:13 PM, Andrew Pinski wrote: > On Sun, Jun 25, 2017 at 12:08 PM, Yuri Gribov wrote: >> Hi all, >> >> Libgcc unwinder currently does not do any verification of pointers >> which it chases on stack. In practice this not so rarely causes >> segfaults when unwinding on corrup

Re: [RFC][PR 67336][PING^2] Verify pointers during stack unwind

2017-06-25 Thread Andrew Pinski
On Sun, Jun 25, 2017 at 12:08 PM, Yuri Gribov wrote: > Hi all, > > Libgcc unwinder currently does not do any verification of pointers > which it chases on stack. In practice this not so rarely causes > segfaults when unwinding on corrupted stacks (e.g. when when trying to > print diagnostic on > f

[RFC][PR 67336][PING^2] Verify pointers during stack unwind

2017-06-25 Thread Yuri Gribov
Hi all, Libgcc unwinder currently does not do any verification of pointers which it chases on stack. In practice this not so rarely causes segfaults when unwinding on corrupted stacks (e.g. when when trying to print diagnostic on fatal error) [1]. Ironically this usually happens in error reporting