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 is crashing with 'malloc' error when batch processing #13

Closed
ap-respeecher opened this issue Jul 14, 2020 · 2 comments
Closed

python is crashing with 'malloc' error when batch processing #13

ap-respeecher opened this issue Jul 14, 2020 · 2 comments

Comments

@ap-respeecher
Copy link

When I apply a pyreaper.reaper function on a folder of files, it's crashing with this error:

python(94746,0x119755dc0) malloc: Incorrect checksum for freed object 0x7f9d2c43d780: probably modified after being freed.
Corrupt value: 0x800000003f052325
python(94746,0x119755dc0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6

I tried python 3.6.9 with pyreaper 0.0.8 and 0.0.6 and python 3.7.8 with pyreaper 0.0.8. Here is an output from the report on mac os in case that might help:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff6e86033a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6e91ce60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff6e7e7808 abort + 120
3 libsystem_malloc.dylib 0x00007fff6e8dd50b malloc_vreport + 548
4 libsystem_malloc.dylib 0x00007fff6e8eed27 malloc_zone_error + 183
5 libsystem_malloc.dylib 0x00007fff6e8d5081 tiny_free_list_remove_ptr + 690
6 libsystem_malloc.dylib 0x00007fff6e8d4279 tiny_free_no_lock + 1018
7 libsystem_malloc.dylib 0x00007fff6e8d3d8b free_tiny + 459
8 creaper.cpython-36m-darwin.so 0x000000013ad2b952 __pyx_f_8pyreaper_7creaper_12EpochTracker_GetF0AndCorrTrack(__pyx_obj_8pyreaper_7creaper_EpochTracker*, float, Track*, Track*) + 578
9 creaper.cpython-36m-darwin.so 0x000000013ad3201a __pyx_pf_8pyreaper_7creaper_reaper_internal(_object*, tagPyArrayObject_fields*, _object*, float, float, bool, bool, float, float, float) + 5306
10 python 0x000000010eab28fb _PyCFunction_FastCallDict + 475
11 python 0x000000010eb42d4b call_function + 539
12 python 0x000000010eb3f98e _PyEval_EvalFrameDefault + 26014
13 python 0x000000010eb438aa _PyEval_EvalCodeWithName + 2698
14 python 0x000000010eb440b2 fast_function + 386
15 python 0x000000010eb42d15 call_function + 485
16 python 0x000000010eb3fa34 _PyEval_EvalFrameDefault + 26180
17 python 0x000000010eb438aa _PyEval_EvalCodeWithName + 2698
18 python 0x000000010eb440b2 fast_function + 386
19 python 0x000000010eb42d15 call_function + 485
20 python 0x000000010eb3f98e _PyEval_EvalFrameDefault + 26014
21 python 0x000000010eb438aa _PyEval_EvalCodeWithName + 2698
22 python 0x000000010eb440b2 fast_function + 386
23 python 0x000000010eb42d15 call_function + 485
24 python 0x000000010eb3f98e _PyEval_EvalFrameDefault + 26014
25 python 0x000000010eb438aa _PyEval_EvalCodeWithName + 2698
26 python 0x000000010eb440b2 fast_function + 386
27 python 0x000000010eb42d15 call_function + 485
28 python 0x000000010eb3fa34 _PyEval_EvalFrameDefault + 26180
29 python 0x000000010eb44159 fast_function + 553
30 python 0x000000010eb42d15 call_function + 485
31 python 0x000000010eb3f98e _PyEval_EvalFrameDefault + 26014
32 python 0x000000010eb44159 fast_function + 553
33 python 0x000000010eb42d15 call_function + 485
34 python 0x000000010eb3f98e _PyEval_EvalFrameDefault + 26014
35 python 0x000000010eb438aa _PyEval_EvalCodeWithName + 2698
36 python 0x000000010eb39360 PyEval_EvalCode + 48
37 python 0x000000010eb7293e PyRun_FileExFlags + 174
38 python 0x000000010eb71ede PyRun_SimpleFileExFlags + 270
39 python 0x000000010eb8e72a Py_Main + 3306
40 python 0x000000010ea59ac8 main + 248
41 libdyld.dylib 0x00007fff6e718cc9 start + 1

@ap-respeecher ap-respeecher changed the title python is crashing when batch processing with 'malloc' error python is crashing with 'malloc' error when batch processing Jul 14, 2020
@r9y9
Copy link
Owner

r9y9 commented Jul 14, 2020

Could you provide steps/data to reproduce?

@ap-respeecher
Copy link
Author

i wrote a script with minimum of code to reproduce a bug and it stopped crashing. thank you for your immediate answer and pardon for bothering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants