[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: error() or nil, 'error msg'
- From: William Ahern <william@...>
- Date: Sat, 27 Sep 2014 16:25:00 -0700
On Sat, Sep 27, 2014 at 04:38:05AM -0400, Sean Conner wrote:
<snip>
> [3] setjmp() pretty much saves the current contents of the registers,
> incl uding the stack pointer, and longjmp() restores the contents,
> thus resetting the stack pointer. Great, as long as you haven't
> allocated any memory, opened any files, or in general, obtained any
> form of resources ...
>
I assume you're using the volatile qualifer appropriately. But in case
not... it's a big deal. Many times if you fail to use volatile it will be
obvious from the core dumps. Other times you end up with Heisenbugs.
- References:
- error() or nil, 'error msg', Andrew Starks
- Re: error() or nil, 'error msg', Sean Conner
- Re: error() or nil, 'error msg', Andrew Starks
- Re: error() or nil, 'error msg', Sean Conner
- Re: error() or nil, 'error msg', William Ahern
- Re: error() or nil, 'error msg', Sean Conner
- Re: error() or nil, 'error msg', Andrew Starks
- Re: error() or nil, 'error msg', Sean Conner