Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python crash on exit #68362

Closed
gnumdk mannequin opened this issue May 13, 2015 · 3 comments
Closed

Python crash on exit #68362

gnumdk mannequin opened this issue May 13, 2015 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@gnumdk
Copy link
Mannequin

gnumdk mannequin commented May 13, 2015

BPO 24174
Nosy @tirkarthi, @isidentical

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2019-12-29.16:57:55.027>
created_at = <Date 2015-05-13.11:50:23.205>
labels = ['interpreter-core', 'type-crash']
title = 'Python crash on exit'
updated_at = <Date 2019-12-29.16:57:55.024>
user = 'https://bugs.python.org/gnumdk'

bugs.python.org fields:

activity = <Date 2019-12-29.16:57:55.024>
actor = 'SilentGhost'
assignee = 'none'
closed = True
closed_date = <Date 2019-12-29.16:57:55.027>
closer = 'SilentGhost'
components = ['Interpreter Core']
creation = <Date 2015-05-13.11:50:23.205>
creator = 'gnumdk'
dependencies = []
files = []
hgrepos = []
issue_num = 24174
keywords = []
message_count = 3.0
messages = ['243074', '358990', '358993']
nosy_count = 4.0
nosy_names = ['SilentGhost', 'gnumdk', 'xtreak', 'BTaskaya']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue24174'
versions = ['Python 3.4']

@gnumdk
Copy link
Mannequin Author

gnumdk mannequin commented May 13, 2015

Hello, i'm lollypop dev:
https://github.com/gnumdk/lollypop

Sometimes, when lollypop quits, i get a segfault...

Here bracktrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6b3b528 in _int_free (av=0x7ffff6e65620 <main_arena>, p=<optimized out>,
have_lock=0) at malloc.c:3996
3996 malloc.c: Aucun fichier ou dossier de ce type.
(gdb) backtrace
#0 0x00007ffff6b3b528 in _int_free (av=0x7ffff6e65620 <main_arena>,
p=<optimized out>, have_lock=0) at malloc.c:3996
#1 0x00000000005eae0f in code_dealloc (co=0x7ffff68be150)
at ../Objects/codeobject.c:364
#2 0x00000000005f57f7 in func_dealloc (op=0x7ffff4dc4488)
at ../Objects/funcobject.c:555
#3 0x00000000005f531f in sm_dealloc (sm=0x7ffff4dbd8d0)
at ../Objects/funcobject.c:908
#4 0x0000000000459acf in free_keys_object (keys=0xb462e0)
at ../Objects/dictobject.c:369
#5 PyDict_Clear (op=<optimized out>) at ../Objects/dictobject.c:1282
#6 0x000000000045c102 in PyDict_Clear (op=<optimized out>)
at ../Objects/dictobject.c:1260
#7 0x000000000047b8d8 in type_clear (type=0xb46f28) at ../Objects/typeobject.c:3228
#8 0x000000000052bb3a in delete_garbage (old=<optimized out>,
collectable=<optimized out>) at ../Modules/gcmodule.c:866
#9 collect (generation=generation@entry=2, n_collected=n_collected@entry=0x0,
n_uncollectable=n_uncollectable@entry=0x0, nofail=nofail@entry=1)
at ../Modules/gcmodule.c:1032
#10 0x000000000052c651 in _PyGC_CollectNoFail () at ../Modules/gcmodule.c:1638
#11 0x00000000004fbf1d in PyImport_Cleanup () at ../Python/import.c:540
#12 0x000000000050ecb9 in Py_Finalize () at ../Python/pythonrun.c:616
#13 0x000000000051125c in Py_Finalize () at ../Python/pythonrun.c:2795
#14 Py_Exit (sts=sts@entry=0) at ../Python/pythonrun.c:2793
#15 0x000000000041e409 in handle_system_exit () at ../Python/pythonrun.c:1812
#16 0x00000000005115b4 in handle_system_exit () at ../Python/pythonrun.c:1881
#17 PyErr_PrintEx (set_sys_last_vars=<optimized out>) at ../Python/pythonrun.c:1822
#18 0x00000000005123cf in PyErr_Print () at ../Python/pythonrun.c:1718
#19 PyRun_SimpleFileExFlags (fp=0x7ffff6e65620 <main_arena>,
filename=0xffffffff <error: Cannot access memory at address 0xffffffff>,
closeit=1, flags=0xffff800008d504d0) at ../Python/pythonrun.c:1611
#20 0x0000000000422cbc in run_file (p_cf=<optimized out>, filename=<optimized out>,
fp=<optimized out>) at ../Modules/main.c:319
#21 Py_Main (argc=-157933448, argv=0x7ffff6a24180) at ../Modules/main.c:751
#22 0x000000000041f06c in main (argc=2, argv=<optimized out>)
at ../Modules/python.c:69

@gnumdk gnumdk mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump labels May 13, 2015
@isidentical
Copy link
Sponsor Member

The link you gave is broken, can you give a simple code to reproduce the issue?

@SilentGhost
Copy link
Mannequin

SilentGhost mannequin commented Dec 29, 2019

Currently lollypop seems to be residing at https://gitlab.gnome.org/World/lollypop
However, this issue is filled against a no longer supported version which along with many changes in the C code warrants out-of-date closure, I think. Cédric, please re-open this issue if you're still experiencing this crash on a recent Python version.

@SilentGhost SilentGhost mannequin closed this as completed Dec 29, 2019
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant