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

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

[Octave-bug-tracker] [bug #38237] segfault in contourf()


From: Elias Pipping
Subject: [Octave-bug-tracker] [bug #38237] segfault in contourf()
Date: Sat, 02 Feb 2013 23:12:22 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.16 (KHTML, like Gecko) Chrome/24.0.1297.0 Safari/537.16

URL:
  <http://savannah.gnu.org/bugs/?38237>

                 Summary: segfault in contourf()
                 Project: GNU Octave
            Submitted by: pipping
            Submitted on: Sat 02 Feb 2013 23:12:22 GMT
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The sequence


  load ~/data_N;
  contourf(N);


leads to


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff714ac87 in Array<double>::xelem (this=0x7fffffffa040, n=0)
    at ../liboctave/Array.h:328
328       crefT xelem (octave_idx_type n) const { return slice_data [n]; }

#0  0x00007ffff714ac87 in Array<double>::xelem (this=0x7fffffffa040, n=0)
    at ../liboctave/Array.h:328
#1  0x00007ffff714992e in Array<double>::elem (this=0x7fffffffa040, n=0)
    at ../liboctave/Array.h:383
#2  0x00007ffff619e83f in Array<double>::checkelem (this=0x7fffffffa040, n=0)
    at Array.cc:231
#3  0x00007ffff712790a in Array<double>::operator() (this=0x7fffffffa040,
n=0)
    at ../liboctave/Array.h:393
#4  0x00007fffecfeb6a7 in drawcn (X=..., Y=..., Z=...,
lvl=-10.708945033769947, r=64, 
    c=0, ct_x=2, ct_y=66, start_edge=2, first=false, mark=...)
    at DLD-FUNCTIONS/__contourc__.cc:104
#5  0x00007fffecfebcb7 in drawcn (X=..., Y=..., Z=...,
lvl=-10.708945033769947, r=65, 
    c=0, ct_x=2, ct_y=67, start_edge=2, first=false, mark=...)
    at DLD-FUNCTIONS/__contourc__.cc:211
#6  0x00007fffecfebcb7 in drawcn (X=..., Y=..., Z=...,
lvl=-10.708945033769947, r=66, 
    c=0, ct_x=2, ct_y=68, start_edge=2, first=false, mark=...)
    at DLD-FUNCTIONS/__contourc__.cc:211
#7  0x00007fffecfebcb7 in drawcn (X=..., Y=..., Z=...,
lvl=-10.708945033769947, r=67, 
    c=0, ct_x=2, ct_y=69, start_edge=2, first=false, mark=...)
    at DLD-FUNCTIONS/__contourc__.cc:211
#8  0x00007fffecfebcb7 in drawcn (X=..., Y=..., Z=...,
lvl=-10.708945033769947, r=68, 
    c=0, ct_x=2, ct_y=70, start_edge=2, first=false, mark=...)
    at DLD-FUNCTIONS/__contourc__.cc:211
#9  0x00007fffecfebcb7 in drawcn (X=..., Y=..., Z=...,
lvl=-10.708945033769947, r=69, 
    c=0, ct_x=2, ct_y=71, start_edge=2, first=false, mark=...)
    at DLD-FUNCTIONS/__contourc__.cc:211
#10 0x00007fffecfebcb7 in drawcn (X=..., Y=..., Z=...,
lvl=-10.708945033769947, r=70, 
    c=0, ct_x=2, ct_y=72, start_edge=2, first=false, mark=...)


The above is with a debugging build of octave 3.6.4-rc1.

I can reproduce this with an optimised build on the same machine and octave
3.6.4-rc0.
I can also reproduce this with an optimised build on another machine and
octave 3.6.3.

I have another test case, though, i.e. the matrix X from data_X, which leads
to a segfault on two of those three setups but not on the optimised
3.6.4-rc0.

When it does, the crash only takes a second or two to occur (with larger
matrices, it can take quite a while, so this is already quite the reduction.

This is on Exherbo Linux with a 3.7.2 kernel.
The other machine I mentioned above is Debian with a 3.2.0-0.bpo.1-amd64
kernel.

Data's at

http://page.mi.fu-berlin.de/pipping/data_X
http://page.mi.fu-berlin.de/pipping/data_N

(because savannah always gives me an error when I try to upload it)




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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