This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug gdb/17024] SIGSTOP handling is counterintuitive


https://sourceware.org/bugzilla/show_bug.cgi?id=17024

--- Comment #2 from dje at google dot com ---
Data point: The first "continue" does resume with signal 0 (normal resume). 
Then it gets stuck in a loop of getting SIGSTOP, sending SIGSTOP.

(gdb) set debug infrun 1
(gdb) c
Continuing.
infrun: clear_proceed_status_thread (Thread 0x7f7ce3193700 (LWP 17102))
infrun: clear_proceed_status_thread (Thread 0x7f7ce2942700 (LWP 17103))
infrun: clear_proceed_status_thread (Thread 0x7f7ce20f1700 (LWP 17104))
infrun: clear_proceed_status_thread (Thread 0x7f7ce18a0700 (LWP 17105))
infrun: clear_proceed_status_thread (Thread 0x7f7ce416f740 (LWP 17100))
infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=0)
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[Thread 0x7f7ce416f740 (LWP 17100)] at 0x7f7ce31c90dd
infrun: target_wait (-1, status) =
infrun:   17100 [Thread 0x7f7ce3193700 (LWP 17102)],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_STOP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7f7ce31c90dd
infrun: context switch
infrun: Switching context from Thread 0x7f7ce416f740 (LWP 17100) to Thread
0x7f7ce3193700 (LWP 17102)
infrun: random signal (GDB_SIGNAL_STOP)

Program received signal SIGSTOP, Stopped (signal).
infrun: stop_waiting
[Switching to Thread 0x7f7ce3193700 (LWP 17102)]
0x00007f7ce31c90dd in nanosleep () from /usr/grte/v3/lib64/libc.so.6
(gdb) c
Continuing.
infrun: clear_proceed_status_thread (Thread 0x7f7ce3193700 (LWP 17102))
infrun: clear_proceed_status_thread (Thread 0x7f7ce2942700 (LWP 17103))
infrun: clear_proceed_status_thread (Thread 0x7f7ce20f1700 (LWP 17104))
infrun: clear_proceed_status_thread (Thread 0x7f7ce18a0700 (LWP 17105))
infrun: clear_proceed_status_thread (Thread 0x7f7ce416f740 (LWP 17100))
infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=0)
infrun: resume (step=0, signal=GDB_SIGNAL_STOP), trap_expected=0, current
thread [Thread 0x7f7ce3193700 (LWP 17102)] at 0x7f7ce31c90dd
infrun: target_wait (-1, status) =
infrun:   17100 [Thread 0x7f7ce3193700 (LWP 17102)],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_STOP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x7f7ce31c90dd
infrun: random signal (GDB_SIGNAL_STOP)

Program received signal SIGSTOP, Stopped (signal).
infrun: stop_waiting
0x00007f7ce31c90dd in nanosleep () from /usr/grte/v3/lib64/libc.so.6
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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