octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #46449] Address-sanitizer triggered in scripts


From: Robert Jenssen
Subject: [Octave-bug-tracker] [bug #46449] Address-sanitizer triggered in scripts/sparse/ichol.m
Date: Tue, 17 Nov 2015 08:08:27 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Follow-up Comment #2, bug #46449 (project octave):

I know almost nothing about autoconf. I stole the following from:
 http://bugs.python.org/review/21037/patch/11412/42165


diff configure.ac configure.ac.old
229,241d228
< ### Add address-sanitizer checking
< AC_MSG_CHECKING(for --with-address-sanitizer)
< AC_ARG_WITH(address-sanitizer,
<             AS_HELP_STRING([--with-address-sanitizer],
<                            [add Address-Sanitizer checking]),
< [
< AC_MSG_RESULT($withval)
< CFLAGS="-fsanitize=address -fno-omit-frame-pointer $CFLAGS"
< CXXFLAGS="-fsanitize=address -fno-omit-frame-pointer $CXXFLAGS"
< LDFLAGS="-fsanitize=address $LDFLAGS"
< ],
< [AC_MSG_RESULT(no)])
< 


I ran autoconf then configure with "--with-address-sanitizer". This causes all
the conf tests to be compiled with 
"-fsanitize=address" which may not be what the maintainers want. The resulting
octave still fails "make check" at scripts/sparse/ichol.m as below.

Regarding my segfault problem: my test script copies the relevant files to a
directory under /tmp, saves the expected results to a file, runs octave and
compares the results with the saved file.
Surrounding octave with sync's works. Briefly:

cat > test.ok << 'EOF'
expected results
EOF
sync
octave-cli -q my_test.m >test.out
sync
diff test.ok test.out



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46449>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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