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 python/14634] New: crash in python gdb during quit


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]