Re: ttrace: Protocal error

John David Anglin
2008-08-09T23:19:30Z

> On Saturday 09 August 2008 23:45:23, Pedro Alves wrote:
>
> > Hope I haven't broken anything badly. I've never in my live logged in
> > to an HP-UX system, so wear sunglasses.
>
> And of course, I meant to say that this applies on top of my other
> patch to register the main thread; and that this is an alternative
> patch for consideration. It's fine with me to go the other simpler
> route, as per your recent patch.

I always work at a distance in case thing blow...

My patch isn't a perfect solution. While EPROTO is the most
frequent error when resuming, I have also seen EINVAL and ESRCH.

Then, if I pound real hard trying to make vla6.x3g fail:

(gdb) r
Starting program: /mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libgomp/testsuite/vla6.x3g
vfork: Resource temporarily unavailable.
(gdb) r
Starting program: /mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libgomp/testsuite/vla6.x3g
vfork: Resource temporarily unavailable.
...

-bash-3.2$ ps -ef|grep vla|wc
73 585 8121

For some reason, the vla6.x3g processes aren't exiting when run under gdb
in spite of the fact that gdb says they exited normally.

I'll look at your patches.