One test in data.cc crashes Octave 3.1.51

John W. Eaton jwe at bevo.che.wisc.edu
Tue Aug 12 09:37:23 CDT 2008


On 12-Aug-2008, Jaroslav Hajek wrote:

| On Mon, Aug 11, 2008 at 10:54 PM, Thomas Treichl <Thomas.Treichl at gmx.net> wrote:
| > Hi,
| >
| > I have still some more problems after compiling 3.1.51 for PPC (but overall just
| > 7 test failures). One special test in data.cc crashes Octave, I have found out
| > the source where it appears (data.cc, line 1064):
| >
| >   %!assert(log2(complex(0,Inf)), Inf + log2(i));
| >
| > I split the commands and found out more:
| >
| >   octave:1> A = Inf
| >   A = Inf
| >   octave:2> B = log2(i)
| >   B =  0.00000 + 2.26618i
| >   octave:3> A+B
| >   panic: Segmentation fault -- stopping myself...
| >   ans = Inf + attempting to save variables to `octave-core'...
| >   save to `octave-core' complete
| >   Segmentation fault
| >
| 
| I can't reproduce this crash. Can you share your config.log, or just
| tell me whether you have log2 in libm?
| 
| 
| > And I don't have any idea where to go from here looking for this bug. My second

To start with, run Octave under gdb and find out where it crashes.

jwe


More information about the Bug-octave mailing list