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 c++/16997] Stepping hangs on gettimeofday with recording enabled


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

--- Comment #2 from konradsa <konradsa at gmail dot com> ---
It seems to get stuck in some sort of loop:

Here the tail end of the output I see when stepping with si:

...
(gdb) si
infrun: clear_proceed_status_thread (process 45441)
infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=1)
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 45441] at 0x3181609d56
LLR: Preparing to step process 45441, 0, inferior_ptid process 45441
RC: Not resuming sibling process 45441 (not stopped)
LLR: PTRACE_SINGLESTEP process 45441, 0 (resume event thread)
sigchld
infrun: wait_for_inferior ()
linux_nat_wait: [process -1], []
LLW: enter
LNW: waitpid(-1, ...) returned 45441, No child processes
LLW: waitpid 45441 received Trace/breakpoint trap (stopped)
LLW: Candidate event Trace/breakpoint trap (stopped) in process 45441.
SEL: Select single-step process 45441
LLW: trap ptid is process 45441.
LLW: exit
infrun: target_wait (-1, status) =
infrun:   45441 [process 45441],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x3181609d59
infrun: stepi/nexti
infrun: stop_stepping
0x0000003181609d59 in _dl_lookup_symbol_x () from /lib64/ld-linux-x86-64.so.2
(gdb) si
infrun: clear_proceed_status_thread (process 45441)
infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=1)
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 45441] at 0x3181609d59
LLR: Preparing to step process 45441, 0, inferior_ptid process 45441
RC: Not resuming sibling process 45441 (not stopped)
LLR: PTRACE_SINGLESTEP process 45441, 0 (resume event thread)
sigchld
infrun: wait_for_inferior ()
linux_nat_wait: [process -1], []
LLW: enter
LNW: waitpid(-1, ...) returned 45441, No child processes
LLW: waitpid 45441 received Trace/breakpoint trap (stopped)
LLW: Candidate event Trace/breakpoint trap (stopped) in process 45441.
SEL: Select single-step process 45441
LLW: trap ptid is process 45441.
LLW: exit
infrun: target_wait (-1, status) =
infrun:   45441 [process 45441],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x3181609d5b
infrun: stepi/nexti
infrun: stop_stepping
0x0000003181609d5b in _dl_lookup_symbol_x () from /lib64/ld-linux-x86-64.so.2
(gdb) si
infrun: clear_proceed_status_thread (process 45441)
infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=1)
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 45441] at 0x3181609d5b
LLR: Preparing to step process 45441, 0, inferior_ptid process 45441
RC: Not resuming sibling process 45441 (not stopped)
LLR: PTRACE_SINGLESTEP process 45441, 0 (resume event thread)
sigchld
infrun: wait_for_inferior ()
linux_nat_wait: [process -1], []
LLW: enter
LNW: waitpid(-1, ...) returned 45441, No child processes
LLW: waitpid 45441 received Trace/breakpoint trap (stopped)
LLW: Candidate event Trace/breakpoint trap (stopped) in process 45441.
SEL: Select single-step process 45441
LLW: trap ptid is process 45441.
LLW: exit
infrun: target_wait (-1, status) =
infrun:   45441 [process 45441],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x3181609d40
infrun: stepi/nexti
infrun: stop_stepping
0x0000003181609d40 in _dl_lookup_symbol_x () from /lib64/ld-linux-x86-64.so.2

-- 
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]