julia(24106,0x107048dc0) malloc: *** error for object 0x7f9a308a3400: pointer being freed was not allocated
julia(24106,0x107048dc0) malloc: *** set a breakpoint in malloc_error_break to debug
signal (6): Abort trap: 6
in expression starting at none:0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 41926025 (Pool: 41914119; Big: 11906); GC: 36
I think I can reproduce the error with the following snippet but I'm unsure if the error I get there is actually the same as the error I get when I just use MJDSigGen in my other code. I don't call signal_calc_finalize!
explicitly anywhere. I suspect julia garbage collection might be calling it though, so may be that's why I keep getting errors.
using MJDSigGen: signal_calc_init, signal_calc_finalize!
setup = signal_calc_init(path_to_config)
signal_calc_finalize!(setup)
# Here comes the error...
setup2 = signal_calc_init(path_to_config)
Edit: actually, if I don't run that snippet in Juno, but just run it in the terminal I can reproduce the error with just:
using MJDSigGen: signal_calc_init
setup = signal_calc_init(path_to_config)
setup2 = signal_calc_init(path_to_config)
This is an issue for me, since I'd like to be able to run signal generation from one config file in parallel in multiple processes.