Dear experts,
When running a RooMinuit instance, I encounter the following problem:
root.exe(45813,0x7fffc90523c0) malloc: *** error for object 0x7f9f67ae1a00: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
While running it in a python script, I could understand from the error log that it comes from the destructor of TVirtualFitter:
Application Specific Information:
abort() called
*** error for object 0x12ca53000: pointer being freed was not allocated
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffc0333dd6 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffc041f787 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffc0299420 abort + 129
3 libsystem_malloc.dylib 0x00007fffc038903f free + 530
4 libdyld.dylib 0x00007fffc0203945 _tlv_atexit + 164
5 libHist.so 0x00000001091360b5 TVirtualFitter::~TVirtualFitter() + 133 (TVirtualFitter.cxx:41)
6 libMinuit.so 0x000000010631844f TFitter::~TFitter() + 79 (TFitter.cxx:51)
7 libRooFitCore.so 0x00000001098f9426 RooMinuit::cleanup() + 22 (RooMinuit.cxx:91)
8 libRooFitCore.so 0x00000001099506e9 CleanUpRooFitAtExit() + 9 (RooSentinel.cxx:53)
9 libsystem_c.dylib 0x00007fffc029a17f __cxa_finalize_ranges + 339
10 libsystem_c.dylib 0x00007fffc029a4b
2 exit + 55
11 libdyld.dylib 0x00007fffc020525c start + 8
A very simple example is attached to reproduce the problem. This is tested on macosx build from master and v6-08-02.
testTVF.C (790 Bytes)
Please let me know if you have any suggestion.
Best,
Maurizio