octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure test for arpack coredumps with -O2 -fsanitize=leak


From: Dmitri A. Sergatskov
Subject: Re: configure test for arpack coredumps with -O2 -fsanitize=leak
Date: Wed, 28 Mar 2018 17:18:00 -0500



On Wed, Mar 28, 2018 at 4:59 PM, John W. Eaton <address@hidden> wrote:
On 03/28/2018 04:39 PM, Dmitri A. Sergatskov wrote:
I am trying to compile the latest stable with "-O2 -fsanitize=leak" and configure
coredumps with:

configure:75374: checking whether the arpack library works
configure:75578: g++ -o conftest -O2 -fsanitize=leak -pthread -fopenmp     conftest.cpp -larpack   -lopenblas  -L/usr/lib/gcc/x86_64-redhat-linux/7 -L/usr/
lib/gcc/x86_64-redhat-linux/7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/7/../../.. -llsan -lgfortran -lm -lq
uadmath -lutil -lm   >&5
configure:75578: $? = 0
configure:75578: ./conftest
../configure: line 3774: 27291 Segmentation fault      (core dumped) ./conftest$ac_exeext
configure:75578: $? = 139
configure: program exited with status 139

Has anyone see the same? (gcc 7.3.1)

What configure args did you use?

Did you use --enable-address-sanitizer-flags or just set -fsanitize-leak in CXXFLAGS?

I'm trying now with --enable-address-sanitizer-flags and the configure script executed all the way through.  Debian, GCC 7.3.0.

​"​
-O2 -fsanitize=leak
​"​


​I think "​
--enable-address-sanitizer-flags
​" ​
​ adds "​
-fsanitize=address -fno-omit-frame-pointer
​"

(and either option works for me).

I wanted to do with -fsanitize=leak. I tried -O2, -O0, and adding  -fno-omit-frame-pointer
; neither of those
made any difference.




jwe


​Dmitri.
--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]