public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/13535] New: pretty printers unusable from MI due to early crash
@ 2011-12-21 14:50 dodji at seketeli dot org
  2011-12-21 15:06 ` [Bug python/13535] " dodji at seketeli dot org
  2011-12-21 15:16 ` tromey at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dodji at seketeli dot org @ 2011-12-21 14:50 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 13535
           Summary: pretty printers unusable from MI due to early crash
           Product: gdb
           Version: archer
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dodji@seketeli.org
    Classification: Unclassified


A simple mi debugging session crashes when it starts when I
-enable-pretty-printing on, and doesn't crash without.  E.g:

$ cat -n ~/test.cc
     1    #include <vector>
     2    #include <string>
     3    
     4    int
     5    main()
     6    {
     7        std::string s1 = "kélé", s2 = "fila", s3 = "saba";
     8        std::vector<std::string> v;
     9        v.push_back(s1);
    10        v.push_back(s2);
    11        v.push_back(s3);
    12    }
$ 

I compiled with g++ version 4.6.1 20110908 (Red Hat 4.6.1-9), with debug
info, and -O0.

And then I do:

$ gdb --interpreter=mi2 ~/test
=thread-group-added,id="i1"
~"GNU gdb (GDB) Fedora (7.3.1-46.fc15)\n"
...
~"done.\n"
(gdb) 
-enable-pretty-printing
^done
(gdb) 
-break-insert -f -i 0 main
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000400a3d",func="main()",file="test.cc",fullname="/home/dodji/test.cc",line="7",times="0",original-location="main"}
(gdb)
-exec-run
=thread-group-started,id="i1",pid="4248"
=thread-created,id="1",group-id="i1"
^running
*running,thread-id="all"
(gdb)
...
-var-create --thread 1 --frame 0 -  * s1
Erreur de segmentation (core dumped)
$

There is no segmentation fault when I don't turn call
-enable-pretty-printing.


I guess I could have filled this under the MI component as well as
python (for pretty printers).  Please fill free to adjust the
component if I messed up.

Thanks.

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


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

* [Bug python/13535] pretty printers unusable from MI due to early crash
  2011-12-21 14:50 [Bug python/13535] New: pretty printers unusable from MI due to early crash dodji at seketeli dot org
@ 2011-12-21 15:06 ` dodji at seketeli dot org
  2011-12-21 15:16 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dodji at seketeli dot org @ 2011-12-21 15:06 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from dodji at seketeli dot org 2011-12-21 15:06:24 UTC ---
Note that I still have the crash if I change all "é" with "e" in the string to
have
something fully ASCII.

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


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

* [Bug python/13535] pretty printers unusable from MI due to early crash
  2011-12-21 14:50 [Bug python/13535] New: pretty printers unusable from MI due to early crash dodji at seketeli dot org
  2011-12-21 15:06 ` [Bug python/13535] " dodji at seketeli dot org
@ 2011-12-21 15:16 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2011-12-21 15:16 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |DUPLICATE
   Target Milestone|---                         |7.4

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2011-12-21 15:15:08 UTC ---
I think this is a known crash.
I was able to reproduce it on F15 and it has the same problem at 13522.

*** This bug has been marked as a duplicate of bug 13522 ***

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


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

end of thread, other threads:[~2011-12-21 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-21 14:50 [Bug python/13535] New: pretty printers unusable from MI due to early crash dodji at seketeli dot org
2011-12-21 15:06 ` [Bug python/13535] " dodji at seketeli dot org
2011-12-21 15:16 ` tromey 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).