This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIGTTOU on multi-threaded programs


Daniel Jacobowitz wrote:

> > I'm having trouble running multi-threaded programs under gdb, soon after
> > starting the shell says that gdb is "stopped" -- and it seems like it
> > receives SIGTTOU.
...
> > The debugged program and gdb have different process group id, and
> > debugged program is initially in the foreground -- so gdb in in
> > background. It looks like gdb tries to output something while it's still
> > in background, and recieves the signal.
> >
> > Is this a known issue? 
...
> It's not a known issue.  If you can just verify what is being printed
> while GDB does not have the terminal, we can fix it - GDB already has
> hooks to take and release the terminal but is obviously not using them
> somewhere it should be.

I suspect it's the 

    [New Thread 32769 (LWP 17346)]

message, which is printed in thread-db.c, in function attach_thread.
When I comment out that print stamtent, everything's fine.

- Volodya


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]