tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ptrace code crash (now for real)



On Wed, Dec 19, 2018 at 07:59:33AM +0100, Kamil Rytarowski wrote:
> On 19.12.2018 03:26, coypu%sdf.org@localhost wrote:
> > Now with a shorter example
> > 
> > Why does this crash?
> > 
> 
> PT_DETACH resumes execution since address 0x0.
> 
> You need to specify (void *)1 to resume in the old position.
> 


Thanks. I guess we should do this for everyone (in the _PTRACE define).
solaris doesn't seem to care and OS X is the same as the BSDs.


Home | Main Index | Thread Index | Old Index