Re: gdb ignores set follow-fork-mode child

RVP <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
> I tried to add nanosleep() for 20 seconds to forked child
> setting breakpoint on next line after nanosleep()
> and then to attach with gdb.
> 
> After attaching it stops inside of nanosleep(), when continuing it crashes.
> 
> I don't understand what happens here. Any ideas ?
>

That should've worked. Can you try again after turning PaX mprotect off:

sysctl -w security.pax.mprotect.enabled=0

-RVP
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.