MicroscPSF / MicroscPSF-Cpp

Fast and Accurate 3D PSF Computation for Fluorescence Microscopy
MIT License
0 stars 0 forks source link

Stack overflow with `libopenblas64 == v0.3.8`. #9

Open antonysigma opened 6 days ago

antonysigma commented 6 days ago

Step to reproduce the issue:

meson setup -Darmadillo-code:lapack=openblas -Db_sanitize=address,undefined build/
ninja -C build/ test

Error:

AddressSanitizer:DEADLYSIGNAL
=================================================================
==25656==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd0c823100 (pc 0x7fc2bf113414 bp 0x000000000004 sp 0x7ffd0c819550 T0)
    #0 0x7fc2bf113413 in zlarft_ (/usr/lib/x86_64-linux-gnu/openblas64-serial/libopenblas64.so.0+0x1df9413)
    #1 0x7fc2bf1a74c8 in zunmqr_ (/usr/lib/x86_64-linux-gnu/openblas64-serial/libopenblas64.so.0+0x1e8d4c8)
    #2 0x7fc2bf049a24 in zgels_ (/usr/lib/x86_64-linux-gnu/openblas64-serial/libopenblas64.so.0+0x1d2fa24)
    #3 0x558bdcd0f65c in void arma::lapack::gels<std::complex<double> >(char*, int*, int*, int*, std::complex<double>*, int*, std::complex<double>*, int*, std::complex<double>*, int*, int*) ../3rdparty/armadillo-code/include/armadillo_bits/translate_lapack.hpp:679
    #4 0x558bdcd0f65c in bool arma::auxlib::solve_rect_rcond<arma::Op<arma::Mat<std::complex<double> >, arma::op_htrans> >(arma::Mat<arma::Op<arma::Mat<std::complex<double> >, arma::op_htrans>::elem_type>&, arma::Op<arma::Mat<std::complex<double> >, arma::op_htrans>::pod_type&, arma::Mat<arma::Op<arma::Mat<std::complex<double> >, arma::op_htrans>::elem_type>&, arma::Base<arma::Op<arma::Mat<std::complex<double> >, arma::op_htrans>::elem_type, arma::Op<arma::Mat<std::complex<double> >, arma::op_htrans> > const&) ../3rdparty/armadillo-code/include/armadillo_bits/auxlib_meat.hpp:4790

SUMMARY: AddressSanitizer: stack-overflow (/usr/lib/x86_64-linux-gnu/openblas64-serial/libopenblas64.so.0+0x1df9413) in zlarft_
==25656==ABORTING

The issue is resolved when -Darmadillo-code:lapack=lapack .