* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
@ 2009-11-02 17:30 ` matthijstijink at hotmail dot com
2009-11-02 17:32 ` matthijstijink at hotmail dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: matthijstijink at hotmail dot com @ 2009-11-02 17:30 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From matthijstijink at hotmail dot com 2009-11-02 17:30 -------
I confirm this behaviour. I didn't use wine, but with a lot of programs I tried
gdb just hangs.
I tried running a simple bash script but even that doesn't work. Sometimes
Ctrl-C can stop the process so you can quit gdb, but other times gdb hangs and
I have to kill it.
If you use 'set print inferior-events', you see that the new process is
started, but nothing happens.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
2009-11-02 17:30 ` [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child matthijstijink at hotmail dot com
@ 2009-11-02 17:32 ` matthijstijink at hotmail dot com
2010-04-06 6:29 ` flavio dot etrusco at gmail dot com
` (8 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: matthijstijink at hotmail dot com @ 2009-11-02 17:32 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From matthijstijink at hotmail dot com 2009-11-02 17:32 -------
My architecture is x86_64, by the way
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
2009-11-02 17:30 ` [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child matthijstijink at hotmail dot com
2009-11-02 17:32 ` matthijstijink at hotmail dot com
@ 2010-04-06 6:29 ` flavio dot etrusco at gmail dot com
2010-04-06 10:33 ` pedro at codesourcery dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: flavio dot etrusco at gmail dot com @ 2010-04-06 6:29 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |flavio dot etrusco at gmail
| |dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (2 preceding siblings ...)
2010-04-06 6:29 ` flavio dot etrusco at gmail dot com
@ 2010-04-06 10:33 ` pedro at codesourcery dot com
2010-04-07 23:03 ` flavio dot etrusco at gmail dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pedro at codesourcery dot com @ 2010-04-06 10:33 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From pedro at codesourcery dot com 2010-04-06 10:33 -------
Can someone confirm this still happens with the latest release? Seeing
"set debug infrun 1" and "set debug lin-lwp 1" output would also be
interesting.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (3 preceding siblings ...)
2010-04-06 10:33 ` pedro at codesourcery dot com
@ 2010-04-07 23:03 ` flavio dot etrusco at gmail dot com
2010-04-07 23:11 ` flavio dot etrusco at gmail dot com
` (5 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: flavio dot etrusco at gmail dot com @ 2010-04-07 23:03 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From flavio dot etrusco at gmail dot com 2010-04-07 23:03 -------
TBH I don't know whether this issue is the same I'm experiencing.
My problem appears to be that a forked (notice that I don't really not what
syscall it uses) process doesn't freeze execution. If I Ctrl+C I can change
inferiors and invoke 'continue'. Then this process forks another process, again
I Ctrl+C and change the inferior, then when I run it it seems to finish and gets
listed as 'null' in the inferior list. Then I can't continue the inferior, gdb
says they have no threads.
Funny thing is that I ran with the parameters you suggested. Before I ran it the
second time I enabled logging, than the execution did not freeze! I'll copy it
from the terminal and attach it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (4 preceding siblings ...)
2010-04-07 23:03 ` flavio dot etrusco at gmail dot com
@ 2010-04-07 23:11 ` flavio dot etrusco at gmail dot com
2010-04-07 23:33 ` pedro at codesourcery dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: flavio dot etrusco at gmail dot com @ 2010-04-07 23:11 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From flavio dot etrusco at gmail dot com 2010-04-07 23:11 -------
Created an attachment (id=4709)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4709&action=view)
gdb log with debugging info
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (5 preceding siblings ...)
2010-04-07 23:11 ` flavio dot etrusco at gmail dot com
@ 2010-04-07 23:33 ` pedro at codesourcery dot com
2010-04-08 1:25 ` flavio dot etrusco at gmail dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pedro at codesourcery dot com @ 2010-04-07 23:33 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From pedro at codesourcery dot com 2010-04-07 23:33 -------
> My problem appears to be that a forked (notice that I don't really not what
syscall it uses) process doesn't freeze execution.
Why would it? Did you have "catch fork"/"catch vfork" set?
> If I Ctrl+C I can change
> inferiors and invoke 'continue'. Then this process forks another process,
again I Ctrl+C and change the inferior,
Did you mean to use "set schedule-multiple on" to have all inferiors
running simultaneously?
> then when I run it it seems to finish and gets
> listed as 'null' in the inferior list.
If the inferior exited, then it will have no process id, hence <null>.
> gdb says they have no threads.
If the program isn't running anymore, it can't have any threads.
I think most of your problems will go away with "set schedule-multiple on".
(gdb) help set schedule-multiple
Set mode for resuming threads of all processes.
When on, execution commands (such as 'continue' or 'next') resume all
threads of all processes. When off (which is the default), execution
commands only resume the threads of the current process. The set of
threads that are resumed is further refined by the scheduler-locking
mode (see help set scheduler-locking).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (6 preceding siblings ...)
2010-04-07 23:33 ` pedro at codesourcery dot com
@ 2010-04-08 1:25 ` flavio dot etrusco at gmail dot com
2010-04-08 1:26 ` flavio dot etrusco at gmail dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: flavio dot etrusco at gmail dot com @ 2010-04-08 1:25 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From flavio dot etrusco at gmail dot com 2010-04-08 01:25 -------
Thanks for the tip on "set schedule-multiple on", I've been looking for a
setting like this for quite some time in the documentation(s).
But I anyway, trying gdb behavior seems erratic, not even running the child process.
Also, unfortunately the option didn't fix the problem for me.
> Did you have "catch fork"/"catch vfork" set?
No.
> If the inferior exited, then it will have no process id, hence <null>.
Sure.
>> gdb says they have no threads.
> If the program isn't running anymore, it can't have any threads.
I meant the other inferiors, 1 and 2, not the exited inferior 3.
> I think most of your problems will go away with "set schedule-multiple on".
I'll attach the session (should have done it before...).
Thanks.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (7 preceding siblings ...)
2010-04-08 1:25 ` flavio dot etrusco at gmail dot com
@ 2010-04-08 1:26 ` flavio dot etrusco at gmail dot com
2010-04-08 1:28 ` flavio dot etrusco at gmail dot com
2010-04-08 15:19 ` pedro at codesourcery dot com
10 siblings, 0 replies; 13+ messages in thread
From: flavio dot etrusco at gmail dot com @ 2010-04-08 1:26 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From flavio dot etrusco at gmail dot com 2010-04-08 01:26 -------
Forgot to attach "show version":
(gdb) show version
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (8 preceding siblings ...)
2010-04-08 1:26 ` flavio dot etrusco at gmail dot com
@ 2010-04-08 1:28 ` flavio dot etrusco at gmail dot com
2010-04-08 15:19 ` pedro at codesourcery dot com
10 siblings, 0 replies; 13+ messages in thread
From: flavio dot etrusco at gmail dot com @ 2010-04-08 1:28 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From flavio dot etrusco at gmail dot com 2010-04-08 01:28 -------
Created an attachment (id=4710)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4710&action=view)
gdb with sched-multiple on
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/9585] GNU/Linux x86, gdb freezes after fork wit detach-on-fork off and follow-fork-mode child
[not found] <20080721155802.9585.aviseldom@infonegocio.com>
` (9 preceding siblings ...)
2010-04-08 1:28 ` flavio dot etrusco at gmail dot com
@ 2010-04-08 15:19 ` pedro at codesourcery dot com
10 siblings, 0 replies; 13+ messages in thread
From: pedro at codesourcery dot com @ 2010-04-08 15:19 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From pedro at codesourcery dot com 2010-04-08 15:19 -------
These issues don't seem to have anything to do with gdb freezing, and we're
going quite offtopic by now. Please open a new bug report. While doing so,
please paste the relevant bit of the GDB session in the bug report body, and
describe what you think is wrong, so one doesn't have to open an attachment
and guess to quickly analyse the issue. Thanks.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9585
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 13+ messages in thread