public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Octave segmentation fault when plotting graph
@ 2016-04-12 11:53 Stephen Wilkinson
  2016-04-12 12:24 ` Marco Atzeri
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Wilkinson @ 2016-04-12 11:53 UTC (permalink / raw)
  To: cygwin

Tatsuro: I tried to roll back to earlier version of Cygwin (all packages) but that broke several other things.

Marco: I confirm that was broken for 32-bit. I've just installed Cygwin 64-bit and Octave works as expected. I got crashes with fltk and qt graphic toolkits, but I admit I didn't try gnuplot. All was working fine until I updated -- I can't remember what version of Octave I was running but 4.0.0 sounds about right.

Regards,
Steve 

P.S. apologies for the poorly formatted initial e-mail

-----Original Message-----
From: Wilkinson, Stephen (GE Aviation) 
Sent: 12 April 2016 11:27
To: 'cygwin-at-cygwin.com'
Subject: Octave segmentation fault when plotting graph

Following a recent Cygwin update, I get segmentation faults when I try to plot graphs in Octave. Creating the figure window works (i.e. issuing the command "figure" doesn't cause the crash, it is only when plotting within the figure that I get a crash). I use the Octave command "sombrero" to test the plotting of data, but even simpler commands ("plot(1:10,1:10);") cause the crash. The crash occurs whether using the fltk or qt graphics toolkit.

I'm using:
Octave: GNU Octave, version 4.0.1
Cygwin: CYGWIN_NT-6.1-WOW OEM-9D7L362 2.5.0(0.297/5/3) 2016-04-11 09:55 i686 Cygwin

The command I issue in Octave is:
>> sombrero
And I get this error message:
>> panic: Segmentation fault -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete

I ran strace to try to debug the problem. The strace output is too large (MB) to attach, but comparing strace for a normal termination of octave (run octave, create a figure but without plotting) and a segmentation fault termination of octave (run octave, issue command "sombrero"), I see that a segmentation fault causes "threads exited with status 0xc0000005". However I don't know how to debug this any further.

I attach the output of cygcheck -s -v -r 

Any suggestions on how to debug this further or how to fix it would be very welcome! I have tried downgrading octave and qt but to no avail.

Regards,
Steve 

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Octave segmentation fault when plotting graph
  2016-04-12 11:53 Octave segmentation fault when plotting graph Stephen Wilkinson
@ 2016-04-12 12:24 ` Marco Atzeri
  2016-04-12 12:52   ` Octave segmentation fault when plotting graph -- dri-drivers Marco Atzeri
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Atzeri @ 2016-04-12 12:24 UTC (permalink / raw)
  To: cygwin

On 12/04/2016 13:53, Stephen Wilkinson wrote:
> Tatsuro: I tried to roll back to earlier version of Cygwin (all packages) but that broke several other things.
>
> Marco: I confirm that was broken for 32-bit. I've just installed Cygwin 64-bit and Octave works as expected. I got crashes with fltk and qt graphic toolkits, but I admit I didn't try gnuplot. All was working fine until I updated -- I can't remember what version of Octave I was running but 4.0.0 sounds about right.
>
> Regards,
> Steve
>

I guess Tatsuro was thinking to revert only cygwin package to 2.4.1.
I just tried and it makes no difference.


the segfault seems in the X libraries

#1  0x43934357 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#2  0x439346c6 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#3  0x4385314d in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#4  0x4384bd7d in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#5  0x4384c247 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#6  0x43967ca5 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#7  0x436978c6 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#8  0x4366a3a2 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#9  0x43651882 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#10 0x43666f95 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#11 0x43563674 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#12 0x43563ce9 in gallium_dri!__driDriverGetExtensions_swrast ()
    from E:/cygwin/lib/dri/swrast_dri.so
#13 0x4ac0a82c in opengl_renderer::set_polygon_offset (this=0x806b1030,
     on=false, offset=0)
     at /usr/src/debug/octave-4.0.1-1/libinterp/corefcn/gl-render.cc:2916
#14 0x4ac0c8e6 in opengl_renderer::draw_axes_planes (
     this=this@entry=0x806b1030, props=...)
     at /usr/src/debug/octave-4.0.1-1/libinterp/corefcn/gl-render.cc:904
#15 0x4ac11110 in opengl_renderer::draw_axes (this=0x806b1030, props=...)
     at /usr/src/debug/octave-4.0.1-1/libinterp/corefcn/gl-render.cc:1474
#16 0x4ac0ae07 in opengl_renderer::draw (this=0x806b1030, go=...,
     toplevel=false)
     at /usr/src/debug/octave-4.0.1-1/libinterp/corefcn/gl-render.cc:589
#17 0x4afc355b in opengl_renderer::draw (this=this@entry=0x806b1030,
     hlist=..., toplevel=toplevel@entry=false)
     at /usr/src/debug/octave-4.0.1-1/libinterp/corefcn/gl-render.h:81
#18 0x4ac0cd5d in opengl_renderer::draw_figure (this=0x806b1030, props=...)
     at /usr/src/debug/octave-4.0.1-1/libinterp/corefcn/gl-render.cc:615
#19 0x4ac0ae07 in opengl_renderer::draw (this=0x806b1030, go=...,


It will take a while to find the root cause...

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Octave segmentation fault when plotting graph -- dri-drivers
  2016-04-12 12:24 ` Marco Atzeri
@ 2016-04-12 12:52   ` Marco Atzeri
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Atzeri @ 2016-04-12 12:52 UTC (permalink / raw)
  To: cygwin

On 12/04/2016 14:24, Marco Atzeri wrote:
> On 12/04/2016 13:53, Stephen Wilkinson wrote:
>> Tatsuro: I tried to roll back to earlier version of Cygwin (all
>> packages) but that broke several other things.
>>
>> Marco: I confirm that was broken for 32-bit. I've just installed
>> Cygwin 64-bit and Octave works as expected. I got crashes with fltk
>> and qt graphic toolkits, but I admit I didn't try gnuplot. All was
>> working fine until I updated -- I can't remember what version of
>> Octave I was running but 4.0.0 sounds about right.
>>
>> Regards,
>> Steve
>>
>
> I guess Tatsuro was thinking to revert only cygwin package to 2.4.1.
> I just tried and it makes no difference.
>
>
> the segfault seems in the X libraries
>
> #1  0x43934357 in gallium_dri!__driDriverGetExtensions_swrast ()
>     from E:/cygwin/lib/dri/swrast_dri.so


Reverting dri-drivers to 11.0.9-1 seems to solve the issue.

Yaakov,
can you give a check ?


Regards
Marco




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-12 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-12 11:53 Octave segmentation fault when plotting graph Stephen Wilkinson
2016-04-12 12:24 ` Marco Atzeri
2016-04-12 12:52   ` Octave segmentation fault when plotting graph -- dri-drivers Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).