Closed catompkins closed 3 years ago
I was able to get some more information with lldb --file
:
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x100504608)
* frame #0: 0x0000000100504608
frame #1: 0x00000001002000a9 libgsl.25.dylib`brent_iterate + 677
frame #2: 0x00000001001ffbd6 libgsl.25.dylib`gsl_min_fminimizer_iterate + 51
frame #3: 0x0000000100001c4e other`rgsl::types::minimizer::Minimizer::iterate::h9067c94a769cfa90(self=0x00007ffeefbff180) at minimizer.rs:251:32
frame #4: 0x0000000100000f89 other`other::main::hdb959a6f26461a41 at other.rs:24:18
Not sure what the problem is at this point...
The same problem also exists on linux, it'll make the debugging easier hopefully...
Found the issue, the problem was on the bindings.
Hi,
I was working with the library and ran into a Segfault when trying the root and minimization functions. Perhaps I'm missing how you intended them to be applied.
Running Rust 1.54 on MacOS 11.5.2 with GSL 2.7.
anyway here's an MWE for the minimizer. However, the application for roots is the same but with a different convergence check:
The failure occurs when calling
min.iterate()
.Here's the output: