public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17970] New: cannot call any function or method with "print" or "call"
@ 2015-02-13 15:51 Claude at renegat dot net
  2015-02-13 18:09 ` [Bug c++/17970] " keiths at redhat dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: Claude at renegat dot net @ 2015-02-13 15:51 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17970
           Summary: cannot call any function or method with "print" or
                    "call"
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: critical
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: Claude at renegat dot net

Steps to reproduce

foo.cpp contains:

#include <iostream>

int main()
{
    const char foo[] = "foo";
    std::cout << "foo=" << foo << std::endl;
}


Then:

$ g++ -D_DEBUG -g -o foo foo.cpp
$ gdb --args ./foo
(gdb) b foo.cpp:6
(gdb) r
Starting program: /tmp/foo 

Breakpoint 1, main () at foo.cpp:6
6        std::cout << "foo=" << foo << std::endl;
(gdb) p strlen(foo)

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
The program being debugged exited while in a function called from GDB.
Evaluation of the expression containing the function
(strlen) will be abandoned.

This occurs for *any* function or method call.

$ gdb --version
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs


$ uname -a
Linux pegasus 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:06:37 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux

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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-06-16  8:58 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-13 15:51 [Bug c++/17970] New: cannot call any function or method with "print" or "call" Claude at renegat dot net
2015-02-13 18:09 ` [Bug c++/17970] " keiths at redhat dot com
2015-02-13 18:18 ` Claude at renegat dot net
2015-02-13 19:09 ` keiths at redhat dot com
2015-02-13 19:16 ` Claude at renegat dot net
2015-02-13 19:40 ` keiths at redhat dot com
2015-02-14 10:09 ` [Bug c++/17970] cannot call any function or method with "print" or "call" ahter command "handle SIGSEGV noprint pass" Claude at renegat dot net
2015-02-14 10:09 ` [Bug c++/17970] cannot call any function or method with "print" or "call" Claude at renegat dot net
2015-02-14 20:16 ` [Bug c++/17970] cannot call any function or method with "print" or "call" after command "handle SIGSEGV noprint pass" Claude at renegat dot net
2015-02-15 23:33 ` Claude at renegat dot net
2015-06-12  8:30 ` arigo at tunes dot org
2015-06-12 10:19 ` palves at redhat dot com
2015-06-12 19:37 ` arigo at tunes dot org
2015-06-13 10:33 ` palves at redhat dot com
2015-06-13 11:00 ` palves at redhat dot com
2015-06-13 11:04 ` palves at redhat dot com
2015-06-14 12:41 ` arigo at tunes dot org
2015-06-15  8:56 ` palves at redhat dot com
2015-06-15 21:30 ` dje at google dot com
2015-06-16  8:58 ` palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).