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 win32/14679] New: [regression] gdb got stuck in ser-unix.c:176


http://sourceware.org/bugzilla/show_bug.cgi?id=14679

             Bug #: 14679
           Summary: [regression] gdb got stuck in ser-unix.c:176
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: win32
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jojelino@gmail.com
    Classification: Unclassified


Since gdb hanged as i attached the hanged gdb and stepped one instruction.
so i manually inspected the stack frame.
this bug reproducible for all case. so i don't write trivial step to reproduce
this bug.

session tried stack frame dump
=================================================================
Attaching to process 3776
[New Thread 3776.0xa28]
[New Thread 3776.0xc6c]
[New Thread 3776.0x7bc]
[New Thread 3776.0x1304]
[New Thread 3776.0xea0]
Reading symbols from /usr/bin/gdb...done.
(gdb) 15, gdb.exe+0x13447
Undefined command: "15".  Try "help".
(gdb) Quitgdb.exe+0x13447
(gdb) x main
0x6b1180 <main>:        0x83e58955
(gdb) x *(0x400000+0x13447)
0xc11cc483:     Cannot access memory at address 0xc11cc483
(gdb) i l *(0x400000+0x13447)
Ambiguous info command "l *(0x400000+0x13447)": line, locals.
(gdb) i li *(0x400000+0x13447)
Line 176 of "ser-unix.c" starts at address 0x413447 <set_tty_state+23>
   and ends at 0x41344a <set_tty_state+26>.
(gdb) i li *(0x400000+0x1857e)
Line 1639 of "windows-nat.c" starts at address 0x418578 <windows_wait+24>
   and ends at 0x418580 <windows_wait+32>.
(gdb) i li *(0x400000+0xf3ce5)
Line 1932 of "infrun.c" starts at address 0x4f3ce5 <resume+501>
   and ends at 0x4f3cf0 <resume+512>.
(gdb) i li *(0x400000+0xf8905)
Line 2288 of "infrun.c" starts at address 0x4f8905 <proceed+437>
   and ends at 0x4f8918 <proceed+456>.
(gdb)
(gdb) i li *(0x400000+0x13447)
Line 176 of "ser-unix.c" starts at address 0x413447 <set_tty_state+23>
   and ends at 0x41344a <set_tty_state+26>.
(gdb) i li *(0x400000+0x1857e)
Line 1639 of "windows-nat.c" starts at address 0x418578 <windows_wait+24>
   and ends at 0x418580 <windows_wait+32>.
(gdb) i li *(0x400000+0xf3ce5)
Line 1932 of "infrun.c" starts at address 0x4f3ce5 <resume+501>
   and ends at 0x4f3cf0 <resume+512>.
(gdb) i li *(0x400000+0xf8905)
Line 2288 of "infrun.c" starts at address 0x4f8905 <proceed+437>
   and ends at 0x4f8918 <proceed+456>.
(gdb) i li *(0x400000+0xeae1b)
Line 1097 of "infcmd.c" starts at address 0x4eae1b <step_once+299>
   and ends at 0x4eae25 <step_once+309>.
(gdb) i li *(0x400000+0x129db0)
Line 3052 of "target.c"
   starts at address 0x529da2 <find_default_run_target+34>
   and ends at 0x529db4 <find_default_run_target+52>.
(gdb) i li *(0x400000+0xebaff)
Line 929 of "infcmd.c" starts at address 0x4ebaff <step_1+223>
   and ends at 0x4ebb08 <step_1+232>.
(gdb) i li *(0x400000+0x1bcd37)
Line 470 of "utils.c"
   starts at address 0x5bcd37 <make_cleanup_value_free_to_mark+23>
   and ends at 0x5bcd40 <make_cleanup_value_free>.
(gdb) i li *(0x400000+0x1baf6f)
Line 486 of "top.c" starts at address 0x5baf5b <execute_command+603>
   and ends at 0x5baf74 <execute_command+628>.
(gdb) i li *(0x400000+0xad84f)
Line 87 of "cleanups.c" starts at address 0x4ad84f <make_cleanup_dtor+15>
   and ends at 0x4ad853 <make_cleanup_dtor+19>.
(gdb)

and event log when this bug is occured
==========================================================================
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 "i686-pc-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

warning: the current range check setting does not match the language.

Whether backtraces should continue past the entry point of a program is off.
Reading symbols from /usr/bin/id...done.
(gdb) set debugevents
(gdb) set debugexec
(gdb) set debugexceptions
(gdb) start
Temporary breakpoint 1 at 0x403cc4: file id.c, line 119.
Starting program: /usr/bin/id
gdb: windows_init_thread_list
gdb: kernel event for pid=5424 tid=1f28 code=CREATE_PROCESS_DEBUG_EVENT)
[New Thread 5424.0x1f28]
gdb: windows_resume (pid=5424, tid=7976, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/cygdrive/c/WINDOWS/system32/ntdll.dll" at 0x7c940000.
gdb: windows_resume (pid=5424, tid=7976, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/cygdrive/c/WINDOWS/system32/kernel32.dll" at 0x7c800000.
gdb: windows_resume (pid=5424, tid=7976, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/usr/bin/cygwin1.dll" at 0x61000000.
gdb: windows_resume (pid=5424, tid=7976, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/usr/bin/cygintl-8.dll" at 0x61580000.
gdb: windows_resume (pid=5424, tid=7976, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/usr/bin/cygiconv-2.dll" at 0x62730000.
gdb: windows_resume (pid=5424, tid=7976, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_BREAKPOINT at 0x7c95a229
gdb: windows_resume (pid=5424, tid=7976, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=OUTPUT_DEBUG_STRING_EVENT)
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=758 code=CREATE_THREAD_DEBUG_EVENT)
[New Thread 5424.0x758]
gdb: windows_resume (pid=5424, tid=1880, step=0, sig=0);
ContinueDebugEvent (cpid=5424, ctid=758, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=OUTPUT_DEBUG_STRING_EVENT)
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_BREAKPOINT at 0x403cc4

Temporary breakpoint 1, main (argc=0x1, argv=0x22ac6c) at id.c:119
119       bool just_user = false;
(gdb) s
gdb: windows_resume (pid=5424, tid=7976, step=1, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_SINGLE_STEP at 0x403cc6
108     {
(gdb)
gdb: windows_resume (pid=5424, tid=7976, step=1, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);
gdb: kernel event for pid=5424 tid=1f28 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_SINGLE_STEP at 0x403cc7
gdb: windows_resume (pid=5424, tid=7976, step=1, sig=0);
ContinueDebugEvent (cpid=5424, ctid=1f28, DBG_CONTINUE);

D:\torrents\CSE\out>
D:\torrents\CSE\out>gdb --args id
GNU gdb (GDB) 7.5.50.20121006-cvs
Copyright (C) 2012 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 "i686-pc-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

warning: the current range check setting does not match the language.

Whether backtraces should continue past the entry point of a program is off.
Reading symbols from /usr/bin/id...done.
(gdb) set debug
debug                 debugexceptions       debugvarobj
debug-file-directory  debugexec
debugevents           debugmemory
(gdb) set debug
debug                 debugexceptions       debugvarobj
debug-file-directory  debugexec
debugevents           debugmemory
(gdb) set debugevents
(gdb) set debugmemory
(gdb) set debugexec
(gdb) set debugexceptions
(gdb) start
Temporary breakpoint 1 at 0x403cc4: file id.c, line 119.
Starting program: /usr/bin/id
gdb: windows_init_thread_list
gdb: kernel event for pid=7808 tid=108 code=CREATE_PROCESS_DEBUG_EVENT)
[New Thread 7808.0x108]
gdb: windows_resume (pid=7808, tid=264, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/cygdrive/c/WINDOWS/system32/ntdll.dll" at 0x7c940000.
gdb: windows_resume (pid=7808, tid=264, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/cygdrive/c/WINDOWS/system32/kernel32.dll" at 0x7c800000.
gdb: windows_resume (pid=7808, tid=264, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/usr/bin/cygwin1.dll" at 0x61000000.
gdb: windows_resume (pid=7808, tid=264, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/usr/bin/cygintl-8.dll" at 0x61580000.
gdb: windows_resume (pid=7808, tid=264, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=LOAD_DLL_DEBUG_EVENT)
gdb: Loading dll "/usr/bin/cygiconv-2.dll" at 0x62730000.
gdb: windows_resume (pid=7808, tid=264, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_BREAKPOINT at 0x7c95a229
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 14 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 14 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 14 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 14 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 5 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc1
gdb: read target memory, 1 bytes at 0x00403cc2
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc3
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc0
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: read target memory, 1 bytes at 0x00403cc4
gdb: write target memory, 1 bytes at 0x00403cc4
gdb: windows_resume (pid=7808, tid=264, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=OUTPUT_DEBUG_STRING_EVENT)
gdb: read target memory, 4 bytes at 0x0021fce8
gdb: read target memory, 4 bytes at 0x0021fcec
gdb: read target memory, 4 bytes at 0x0021fcf0
gdb: read target memory, 4 bytes at 0x0021fcf4
gdb: read target memory, 4 bytes at 0x0021fcf8
gdb: read target memory, 4 bytes at 0x0021fcfc
gdb: read target memory, 4 bytes at 0x0021fd00
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=1078 code=CREATE_THREAD_DEBUG_EVENT)
[New Thread 7808.0x1078]
gdb: windows_resume (pid=7808, tid=4216, step=0, sig=0);
ContinueDebugEvent (cpid=7808, ctid=1078, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=OUTPUT_DEBUG_STRING_EVENT)
gdb: read target memory, 4 bytes at 0x0022ac24
gdb: read target memory, 4 bytes at 0x0022ac28
gdb: read target memory, 4 bytes at 0x0022ac2c
gdb: read target memory, 4 bytes at 0x0022ac30
gdb: read target memory, 4 bytes at 0x0022ac34
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_BREAKPOINT at 0x403cc4
gdb: write target memory, 1 bytes at 0x00403cc4

Temporary breakpoint 1, gdb: read target memory, 64 bytes at 0x0022ac40
main (argc=0x1, argv=0x22ac6c) at id.c:119
119       bool just_user = false;
(gdb) s
gdb: read target memory, 1 bytes at 0x610d962b
gdb: write target memory, 1 bytes at 0x610d962b
gdb: windows_resume (pid=7808, tid=264, step=1, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_SINGLE_STEP at 0x403cc6
gdb: read target memory, 64 bytes at 0x0022ac40
gdb: write target memory, 1 bytes at 0x610d962b
108     {
(gdb) s
gdb: read target memory, 1 bytes at 0x610d962b
gdb: write target memory, 1 bytes at 0x610d962b
gdb: windows_resume (pid=7808, tid=264, step=1, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);
gdb: kernel event for pid=7808 tid=108 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_SINGLE_STEP at 0x403cc7
gdb: windows_resume (pid=7808, tid=264, step=1, sig=0);
ContinueDebugEvent (cpid=7808, ctid=108, DBG_CONTINUE);

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]