This is the mail archive of the
mailing list for the GDB project.
Re: Thread exit error : gdb7.2 in FreeBSD (built from ports)
Please don't top post.
On Wednesday 14 September 2011 18:12:06, Jusctsch wrote:
> I am running on FreeBSD, and they pull vanilla source and apply their
> patches to it. In addition, I had written a patch on my own which is
> removing an error check in get_current_frame on thread exit and running into
> an issue later on. I'm disregarding the fatal errors in the previous post
> and focusing on the "invalid thread" issue. With just the FreeBSD patches
> applied on gdb7.2, I boot up my application and see the following:
> ~"[New Thread 803855740 (LWP 100223)]\n"
> ~"[New Thread 82b055500 (LWP 100235)]\n"
> ~"[Thread 82b055c00 (LWP 100221 FooTask) exited]\n"
> &"/tmp/.gdbinit:4: Error in sourced command file:\n"
> &"Invalid selected thread.\n"
I understand that the whole program exited, and you're getting
that error from withing get_current_frame, right? Please give
me the most detail as possible so that I don't have to try
to guess things.
Why is GDB calling get_current_frame at all? Please show the
same but with "set debug infrun 1". Sounds like a FreeBSD