stanle / madopt

Apache License 2.0
16 stars 5 forks source link

*** Error in `python': free(): invalid pointer: 0x0000000003a562b0 *** #19

Closed tarun018 closed 7 years ago

tarun018 commented 7 years ago

Hello,

I am using python multiprocessing.Pool as follows:

a = multiprocessing.Pool(processes=3) a.map_async(func=function_which_uses_madopt, iterable=independent_arguments, callback=something)

The first call returns fine, however subsequent calls to map_async fails with the above error with a long backtrack. Seems to be an issue with freeing memory in C. https://stackoverflow.com/questions/27529857/invalid-pointer-error-when-using-free

Please let me know if you need more information.

Any help will be appreciated. Thanks in advance.

tarun018 commented 7 years ago

Please find attached the log: https://pastebin.com/Ffz63QuA

tarun018 commented 7 years ago

The issue seems to be getting resolved after using: export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4"