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/18523] New: gdb hangs on stepping into some function calls


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

            Bug ID: 18523
           Summary: gdb hangs on stepping into some function calls
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: hovnatan at gmail dot com
  Target Milestone: ---

Created attachment 8359
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8359&action=edit
debugger view

At first I reported this bug to Qt Creator bug
tracker(https://bugreports.qt.io/browse/QTCREATORBUG-14566), but I think this
could be a GDB bug. GDB hangs calling pread() all the time (attached to the
bottom of this text), I also tried debugging GDB and I have attached the
debugging window of Qt Creator (stacktrace and local variables are shown).


rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x6b2930, [], SA_RESTORER|SA_STACK, 0x3a7340f710},
{SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER, 0x3a7340f710}, NULL, 8) = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x7fffee132230, [0x4cadfc]) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cadf8, [0x48c28948fff48484]) = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae00, [0x89480044f63a058b]) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cadf8, [0x48c28948fff48484]) = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae00, [0x89480044f63a058b]) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cadf8, [0x48c28948fff48484]) = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae00, [0x89480044f63a058b]) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RT_1], 8) = 0
mmap(NULL, 4304896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f13d0d4e000
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"H\211\302H\213\5:\366D\0H\211\20H\213\0050\366D\0H\213\0H\205\300u9H\2155t"...,
4301520, 5025276) = 2413060
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cadf8, [0x48c28948fff48484]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\213\5:\366D\0H\211\20H\213\0050\366D\0H\213\0H\205\300u9H\2155t\271\31\0H"...,
4301516, 5025280) = 2413056
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae00, [0x89480044f63a058b]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\20H\213\0050\366D\0H\213\0H\205\300u9H\2155t\271\31\0H\215=m\253\31\0\270\0"...,
4301508, 5025288) = 2413048
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae08, [0x44f630058b4810]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"H\213\0H\205\300u9H\2155t\271\31\0H\215=m\253\31\0\270\0\0\0\0\350\240o\364\377"...,
4301500, 5025296) = 2413040
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae10, [0x3975c08548008b48]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"H\2155t\271\31\0H\215=m\253\31\0\270\0\0\0\0\350\240o\364\377\350+u\364\377H\213\5"...,
4301492, 5025304) = 2413032
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae18, [0x480019b974358d48]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\215=m\253\31\0\270\0\0\0\0\350\240o\364\377\350+u\364\377H\213\0054\361D\0H\213\0H"...,
4301484, 5025312) = 2413024
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae20, [0xb80019ab6d3d8d]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\0\0\0\350\240o\364\377\350+u\364\377H\213\0054\361D\0H\213\0H\211\307\350\tw\364\377\270"...,
4301476, 5025320) = 2413016
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae28, [0xfff46fa0e8000000]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\350+u\364\377H\213\0054\361D\0H\213\0H\211\307\350\tw\364\377\270\1\0\0\0\351\257\0\0"...,
4301468, 5025328) = 2413008
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae30, [0x58b48fff4752be8]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"4\361D\0H\213\0H\211\307\350\tw\364\377\270\1\0\0\0\351\257\0\0\0H\213\5\350\365D\0"...,
4301460, 5025336) = 2413000
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae38, [0x48008b480044f134]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\211\307\350\tw\364\377\270\1\0\0\0\351\257\0\0\0H\213\5\350\365D\0L\213\20H\213E\20H"...,
4301452, 5025344) = 2412992
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae40, [0xb8fff47709e8c789]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\1\0\0\0\351\257\0\0\0H\213\5\350\365D\0L\213\20H\213E\20H\211E\260H\213E\30H"...,
4301444, 5025352) = 2412984
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae48, [0xafe900000001]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\0H\213\5\350\365D\0L\213\20H\213E\20H\211E\260H\213E\30H\211E\270H\213E
H"..., 4301436, 5025360) = 2412976
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae50, [0x44f5e8058b4800]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12, "L\213\20H\213E\20H\211E\260H\213E\30H\211E\270H\213E
H\211E\300H\213E(H"..., 4301428, 5025368) = 2412968
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae58, [0x4810458b48108b4c]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12, "\211E\260H\213E\30H\211E\270H\213E
H\211E\300H\213E(H\211E\310H\213E0H"..., 4301420, 5025376) = 2412960
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae60, [0x4818458b48b04589]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12, "\211E\270H\213E
H\211E\300H\213E(H\211E\310H\213E0H\211E\320H\213E8H"..., 4301412, 5025384) =
2412952
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae68, [0x4820458b48b84589]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\211E\300H\213E(H\211E\310H\213E0H\211E\320H\213E8H\211E\330H\213E\210H"...,
4301404, 5025392) = 2412944
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae70, [0x4828458b48c04589]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\211E\310H\213E0H\211E\320H\213E8H\211E\330H\213E\210H\211E\340H\213E\220H"...,
4301396, 5025400) = 2412936
close(12)                               = 0
ptrace(PTRACE_PEEKTEXT, 30362, 0x4cae78, [0x4830458b48c84589]) = 0
open("/proc/30362/mem", O_RDONLY|O_CLOEXEC) = 12
pread(12,
"\211E\320H\213E8H\211E\330H\213E\210H\211E\340H\213E\220H\211E\350L\213E\200H"...,
4301388, 5025408) = 2412928
close(12)                               = 0

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