runtime error in ExRootLHEFConvert: pointer being freed was not allocated

Asked by Roberto Franceschini on 2014-05-15

Hello I am on Mac OS X 10.9.2 and I got to compite ExRootAnalysis 1.0.12.
Unfortunately all the executables from ExRootAnalysis, for instance ExRootLHEFConverter, give errors like the following:

./ExRootLHEFConverter
ExRootLHEFConverter(21781,0x7fff79232310) malloc: *** error for object 0x7fff79112330: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

On the other hand the library in lib/libExRootAnalysis.so seems to work fine when I compile it in my bigger code that makes use of it to read ROOT files from, say, the Madgraph cluster.

I am rather puzzled by this error at run-time, any suggestion?

Thanks for helping,
Roberto

Question information

Language:
English Edit question
Status:
Open
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Pavel Demin Edit question
Last query:
2014-07-09
Last reply:

Does it help if I add that this error appears both with gcc 4.8.1 and 4.9? Does it make sense to try other compilers? can the compiler be the problem?

I have tried as well ExRootAnalysis 1.0.9 but still the error is:

ExRootLHEFConverter(39902,0x7fff7a355310) malloc: *** error for object 0x7fff7b525330: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

I tried also the lldb debugger of Mac OS X 10.9 and the output is

ExRootAnalysis>lldb ExRootLHEFConverter
Current executable set to 'ExRootLHEFConverter' (x86_64).
(lldb) run
Process 43742 launched: '/Users/roberto/ExRootAnalysis/ExRootLHEFConverter' (x86_64)
ExRootLHEFConverter(43742,0x7fff7a355310) malloc: *** error for object 0x7fff7b525330: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Process 43742 stopped
* thread #1: tid = 0xa54601, 0x00007fff95859866 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff95859866 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill + 10:
-> 0x7fff95859866: jae 0x7fff95859870 ; __pthread_kill + 20
   0x7fff95859868: movq %rax, %rdi
   0x7fff9585986b: jmpq 0x7fff95856175 ; cerror_nocancel
   0x7fff95859870: ret

Can you help with this problem?

Provide an answer of your own, or ask Roberto Franceschini for more information if necessary.

To post a message you must log in.