public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/14634] New: crash in python gdb during quit
@ 2012-09-27 17:28 jan.kratochvil at redhat dot com
  2012-09-27 19:40 ` [Bug python/14634] " tromey at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-27 17:28 UTC (permalink / raw)
  To: gdb-prs


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

             Bug #: 14634
           Summary: crash in python gdb during quit
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
    Classification: Unclassified
              Host: i386-unknown-linux-gnu
            Target: i386-unknown-linux-gnu


(gdb) bt
#0  0x082a6ba4 in sympy_dealloc (obj=<gdb.Symbol at remote 0xf721e650>) at
./python/py-symbol.c:338
#1  0xf752d9a5 in tupledealloc (op=0xf71f21ec) at
/usr/src/debug/Python-2.7.3/Objects/tupleobject.c:236
#2  0xf7511a69 in insertdict (mp=mp@entry=0xf729f35c, key=key@entry='sym',
hash=-559589938, value=None) at
/usr/src/debug/Python-2.7.3/Objects/dictobject.c:539
#3  0xf75140e9 in PyDict_SetItem (op=op@entry={'__builtins__': <module at
remote 0xf726f11c>, 'GdbRemoveReadlineFinder': None, 'sym': None,
'__package__': None, 'sys': <module at remote 0xf726f2e4>, 'gdb': <module at
remote 0xf7201aac>, 'objfile': <gdb.Objfile at remote 0xf72a0140>, '__name__':
'__main__', '__doc__': None}, key='sym', value=None) at
/usr/src/debug/Python-2.7.3/Objects/dictobject.c:784
#4  0xf7517f51 in _PyModule_Clear (m=<module at remote 0xf726f494>) at
/usr/src/debug/Python-2.7.3/Objects/moduleobject.c:138
#5  0xf758662a in PyImport_Cleanup () at
/usr/src/debug/Python-2.7.3/Python/import.c:445
#6  0xf7592975 in Py_Finalize () at
/usr/src/debug/Python-2.7.3/Python/pythonrun.c:454
#7  Py_Finalize () at /usr/src/debug/Python-2.7.3/Python/pythonrun.c:400
#8  0x08299ae3 in finalize_python (ignore=0x0) at ./python/python.c:1286
#9  0x082fa816 in do_my_cleanups (pmy_chain=0x93ba8cc <final_cleanup_chain>,
old_chain=0x8b5cdd4 <sentinel_cleanup>) at cleanups.c:155
#10 0x082fa88c in do_final_cleanups (old_chain=0x8b5cdd4 <sentinel_cleanup>) at
cleanups.c:186
#11 0x0844b352 in quit_target (arg=0xff8f0828) at top.c:1304
#12 0x083648fb in catch_errors (func=0x844b2fb <quit_target>,
func_args=0xff8f0828, errstring=0x8ba93c0 "Quitting: ", mask=6) at
exceptions.c:546
#13 0x0844b3ca in quit_force (args=0x0, from_tty=0) at top.c:1332
#14 0x0827a557 in quit_command (args=0x0, from_tty=0) at ./cli/cli-cmds.c:330
#15 0x08449e96 in quit_cover () at top.c:298
#16 0x0836e6b7 in async_disconnect (arg=0x0) at event-top.c:865
#17 0x0836d27c in invoke_async_signal_handlers () at event-loop.c:1052
#18 0x0836c2a1 in process_event () at event-loop.c:361
#19 0x0836c41e in gdb_do_one_event () at event-loop.c:465
#20 0x0836c470 in start_event_loop () at event-loop.c:490
#21 0x0836d9ac in cli_command_loop () at event-top.c:176
#22 0x08365a33 in current_interp_command_loop () at interps.c:332
#23 0x08366247 in captured_command_loop (data=0x0) at main.c:226
#24 0x083648fb in catch_errors (func=0x8366232 <captured_command_loop>,
func_args=0x0, errstring=0x8b768af "", mask=6) at exceptions.c:546
#25 0x08367512 in captured_main (data=0xff8f0b90) at main.c:999
#26 0x083648fb in catch_errors (func=0x8366497 <captured_main>,
func_args=0xff8f0b90, errstring=0x8b768af "", mask=6) at exceptions.c:546
#27 0x0836755e in gdb_main (args=0xff8f0b90) at main.c:1008
#28 0x080be13f in main (argc=5, argv=0xff8f0c44) at gdb.c:34
(gdb) frame
#0  0x082a6ba4 in sympy_dealloc (obj=<gdb.Symbol at remote 0xf721e650>) at
./python/py-symbol.c:338
338      else if (SYMBOL_SYMTAB (sym_obj->symbol))
(gdb) l
333    {
334      symbol_object *sym_obj = (symbol_object *) obj;
335    
336      if (sym_obj->prev)
337        sym_obj->prev->next = sym_obj->next;
338      else if (SYMBOL_SYMTAB (sym_obj->symbol))
339        {
340          set_objfile_data (SYMBOL_SYMTAB (sym_obj->symbol)->objfile,
341                sympy_objfile_data_key, sym_obj->next);
342        }
(gdb) p sym_obj->symbol
$4 = (struct symbol *) 0x0

/home/jkratoch/hammock/20120927Build-gdbcvs-gdbserver-f18/fedora-18-i386/build/src/gdb/testsuite.unix.-m32/core.20935

-- 
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] 5+ messages in thread

* [Bug python/14634] crash in python gdb during quit
  2012-09-27 17:28 [Bug python/14634] New: crash in python gdb during quit jan.kratochvil at redhat dot com
@ 2012-09-27 19:40 ` tromey at redhat dot com
  2012-10-15 15:20 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2012-09-27 19:40 UTC (permalink / raw)
  To: gdb-prs


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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com
         AssignedTo|unassigned at sourceware    |tromey at redhat dot com
                   |dot org                     |

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-09-27 19:40:47 UTC ---
bug in symbol destructor

-- 
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] 5+ messages in thread

* [Bug python/14634] crash in python gdb during quit
  2012-09-27 17:28 [Bug python/14634] New: crash in python gdb during quit jan.kratochvil at redhat dot com
  2012-09-27 19:40 ` [Bug python/14634] " tromey at redhat dot com
@ 2012-10-15 15:20 ` cvs-commit at gcc dot gnu.org
  2012-10-15 15:27 ` tromey at redhat dot com
  2012-12-05 12:00 ` pmuldoon at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-10-15 15:20 UTC (permalink / raw)
  To: gdb-prs


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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-15 15:20:33 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    tromey@sourceware.org    2012-10-15 15:20:27

Modified files:
    gdb            : ChangeLog 
    gdb/python     : py-symbol.c 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.python: py-symbol.exp 

Log message:
    PR python/14634:
    * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
    testsuite
    * gdb.python/py-symbol.exp: Test symbol destructor.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14732&r2=1.14733
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-symbol.c.diff?cvsroot=src&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3410&r2=1.3411
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-symbol.exp.diff?cvsroot=src&r1=1.15&r2=1.16

-- 
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] 5+ messages in thread

* [Bug python/14634] crash in python gdb during quit
  2012-09-27 17:28 [Bug python/14634] New: crash in python gdb during quit jan.kratochvil at redhat dot com
  2012-09-27 19:40 ` [Bug python/14634] " tromey at redhat dot com
  2012-10-15 15:20 ` cvs-commit at gcc dot gnu.org
@ 2012-10-15 15:27 ` tromey at redhat dot com
  2012-12-05 12:00 ` pmuldoon at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2012-10-15 15:27 UTC (permalink / raw)
  To: gdb-prs


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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |7.6

--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2012-10-15 15:27:36 UTC ---
Fixed.

-- 
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] 5+ messages in thread

* [Bug python/14634] crash in python gdb during quit
  2012-09-27 17:28 [Bug python/14634] New: crash in python gdb during quit jan.kratochvil at redhat dot com
                   ` (2 preceding siblings ...)
  2012-10-15 15:27 ` tromey at redhat dot com
@ 2012-12-05 12:00 ` pmuldoon at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: pmuldoon at redhat dot com @ 2012-12-05 12:00 UTC (permalink / raw)
  To: gdb-prs

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

Phil Muldoon <pmuldoon at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.zaoui at yahoo dot
                   |                            |com

--- Comment #4 from Phil Muldoon <pmuldoon at redhat dot com> 2012-12-05 11:59:56 UTC ---
*** Bug 14916 has been marked as a duplicate of this bug. ***

-- 
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] 5+ messages in thread

end of thread, other threads:[~2012-12-05 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-27 17:28 [Bug python/14634] New: crash in python gdb during quit jan.kratochvil at redhat dot com
2012-09-27 19:40 ` [Bug python/14634] " tromey at redhat dot com
2012-10-15 15:20 ` cvs-commit at gcc dot gnu.org
2012-10-15 15:27 ` tromey at redhat dot com
2012-12-05 12:00 ` pmuldoon 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).