help-octave
[Top][All Lists]
Advanced

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

Re: Build Octave Debug for Windows


From: Stefan Pofahl
Subject: Re: Build Octave Debug for Windows
Date: Wed, 17 Jun 2020 15:45:05 +0200

Hi,

the option:
" --enable-address-sanitizer-flag"
is proposed here:
https://wiki.octave.org/Debugging_Octave#Debugging_oct-files#Preliminaries
this was the reason ...

Meanwhile I have figured out, how I can pass this option to the compiler, it worked for me with:
" CPPFLAGS=-fsanitize=address"

At the end I have used a mixture from the proposed configuration by Markus and
https://wiki.octave.org/Debugging_Octave#Debugging_oct-files#Preliminaries

The full configure command was:
/home/spofahl/hg/mxe-octave/configure FFLAGS=-g CFLAGS=-g CXXFLAGS=-g CPPFLAGS=-fsanitize=address --prefix=/opt/dbg-octave --enable-devel-tools --disable-strip-dist-files --enable-windows-64 --enable-octave=release --enable-binary-packages -with-pkg-dir=/home/spofahl/hg/mxe-octave-pkg

I invoked this command in the build directory (outside of: " /home/spofahl/hg/mxe-octave") as proposed on the abovementioned
internet-site. And I am open to compile once more with further optimized configuration options for the purpose of debugging.

I am looking for a place to upload my debug-Octave-Build for others, has someone web-space where I can upload this
archive-file of 1GB?

Regards,

Stefan




Am Mo., 8. Juni 2020 um 16:15 Uhr schrieb Markus Mützel <markus.muetzel@gmx.de>:
Am 08. Juni 2020 um 15:37 Uhr schrieb "Stefan Pofahl":
> Hi,
>  
> I fail to build MXE-Octave with the proposed options specified here:
> https://wiki.octave.org/Debugging_Octave#Debugging_oct-files
>  
> Trouble maker is the option: --enable-address-sanitizer-flags
>  
> The command:
> configure FFLAGS=-g CFLAGS=-g CXXFLAGS=-g --enable-address-sanitizer-flags –prefix=/opt/dbg-octave
>
> gives the warning message:
> unrecognized options: --enable-address-sanitizer-flags
>
> What I did under Ubuntu 20.04 to correct this, was the following:
> sudo apt-get updatesudo apt-get install libasan5-amd64-cross
>
> And I set the environment variable "ASAN_OPTIONS" as follows:
> export ASAN_OPTIONS=symbolize=1
>

> Has someone an idea what to do?

> Attached a start for a HowTo-Do document.

> Regards,

> Stefan

You probably won't believe it at this point. But I'm really trying to help you.

I don't understand why you would try to compile with address sanitizer flags if you want to find the cause of a segfault (not a memory leak!).

Please, read again the first mail that I sent you on Saturday. It contains step by step instructions on how to build Octave for Windows including debug symbols.

Anyway, I still think it would be best if you first create a backtrace with the Octave that you have already installed...

Markus



--
Stefan Pofahl
Zollgasse 5
8020 Graz
Österreich
Tel.: +43 (316) 33 2001

reply via email to

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