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] New: Stepping hangs on gettimeofday with recording enabled


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

            Bug ID: 16997
           Summary: Stepping hangs on gettimeofday with recording enabled
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: konradsa at gmail dot com

Consider this simple program:

#include <iostream>

#include <sys/time.h>
#include <time.h>

using namespace std;

int main() {
    timeval now;
    gettimeofday( &now, 0);

    cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
    return 0;
}


When stepping through the code with reverse debugging enabled (recording
enabled), gdb seems to hang on the gettimeofday call. Here some sample output:

(gdb) run
Starting program: /home12/skonrad/workspace-luna/gdbTest/Debug/gdbTest

Breakpoint 1, main () at ../src/gdbTest.cpp:18
18          gettimeofday( &now, 0);
(gdb) record
(gdb) n
Do you want to auto delete previous execution log entries when record/replay
buffer becomes full (record full stop-at-limit)?([y] or n) y
...

Waited for several minutes, step never completed. Without recording, no issue.
This was tested on RedHat Linux with g++ (GCC) 4.4.7 20120313 (Red Hat
4.4.7-3).

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