Bug in svd for fat single complex matrices

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in svd for fat single complex matrices

Susnak
Dear maintainers,
the following crashes Octave with the "double free or corruption error"
svd(single(randn(30,50) + i*randn(30,50)))
on Ubuntu 16.04.4 LTS with Octave compiled from
https://ftp.gnu.org/gnu/octave/octave-4.4.0.tar.gz
It only occurs in this particular case i.e. for single complex and 'fat'
matrix.
It works fine with 4.2.1
Zdenek



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html

Reply | Threaded
Open this post in threaded view
|

Re: Bug in svd for fat single complex matrices

Marco Caliari-4
On Thu, 3 May 2018 05:27:20 -0700 (MST)
Susnak <[hidden email]> wrote:

> Dear maintainers,
> the following crashes Octave with the "double free or corruption error"
> svd(single(randn(30,50) + i*randn(30,50)))
> on Ubuntu 16.04.4 LTS with Octave compiled from
> https://ftp.gnu.org/gnu/octave/octave-4.4.0.tar.gz
> It only occurs in this particular case i.e. for single complex and 'fat'
> matrix.
> It works fine with 4.2.1
> Zdenek
>
>
>
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html
>

As a workaround, you can run

svd_driver('gesvd')

before calling svd. I will look at this.

Marco

Reply | Threaded
Open this post in threaded view
|

Re: Bug in svd for fat single complex matrices

Marco Caliari-4
On Thu, 3 May 2018 15:49:58 +0200
Marco Caliari <[hidden email]> wrote:

> On Thu, 3 May 2018 05:27:20 -0700 (MST)
> Susnak <[hidden email]> wrote:
>
> > Dear maintainers,
> > the following crashes Octave with the "double free or corruption error"
> > svd(single(randn(30,50) + i*randn(30,50)))
> > on Ubuntu 16.04.4 LTS with Octave compiled from
> > https://ftp.gnu.org/gnu/octave/octave-4.4.0.tar.gz
> > It only occurs in this particular case i.e. for single complex and 'fat'
> > matrix.
> > It works fine with 4.2.1
> > Zdenek
> >
> >
> >
> > --
> > Sent from:
> > http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html
> >  
>
> As a workaround, you can run
>
> svd_driver('gesvd')
>
> before calling svd. I will look at this.
>
> Marco
 
The problem is solved for me here: https://savannah.gnu.org/bugs/index.php?53823

Marco