bugGNU Octave - Bugs: bug #37505, Using set(gca,...

 
 

bug #37505: Using set(gca, "xticklabel", a_string) takes down gnuplot

Submitted by:  Rhys Ulerich <rhysu>
Submitted on:  Thu 04 Oct 2012 08:05:56 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.6.2Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 05 Nov 2012 09:56:16 PM UTC, comment #4:

Gnuplot has been patched to fix this. The patch will be part of gnuplot 4.7.

http://sourceforge.net/tracker/?func=detail&atid=102055&aid=3577439&group_id=2055

I'm closing this bug. If someone desires, it can be reopened for further discussion.

Ben Abbott <bpabbott>
Project Member
Mon 15 Oct 2012 07:35:57 PM UTC, comment #3:

Ok. So it appears the bug is in gnuplot.

I'm changing the status to "Won't Fix", but a leaving this open for now to give time for others to comment. Maybe someone can come up a suggestion for a solution?

In the meantime, I open a bug report for gnuplot

https://sourceforge.net/tracker/?func=detail&aid=3577439&group_id=2055&atid=102055

Ben Abbott <bpabbott>
Project Member
Mon 15 Oct 2012 04:13:17 PM UTC, comment #2:

On gnuplot 4.6 patchlevel 0 I can confirm the same abort behavior with your example ending in 'plot sin(x)'.

Rhys Ulerich <rhysu>
Sat 13 Oct 2012 01:55:10 PM UTC, comment #1:

I'm running Gnuplot Version 4.6 patchlevel 1 on MaxOS X.

I tried your example. I got a warning form gnuplot (below) and an empty plot window.

Subsequent plots do not show up, so either the pipe is down or gnuplot is down.

To determine if the pipe is broken or gnuplot crashed, I ran the commands below from gnuplot.

And gnuplot exited with "Abort trap: 6"

Thus, this looks like a gnuplot error. Can you confirm?

Ben Abbott <bpabbott>
Project Member
Thu 04 Oct 2012 08:05:56 PM UTC, original submission:

I've been mistakenly passing a string to the "xticklabel" axis property a la

x = linspace(0,1,100); y = sin(x); plot(x,y);
set(gca,"xticklabel",sprintf("%14.8f ",get(gca,"xtick")));

where, you'll notice, the string is definitely not what get(gca, "xticklabel") would return. This causes a "*** stack smashing detected ***: gnuplot terminated " message from gnuplot 4.6 patchlevel 0, kills the pipe, and leaves further plot(...) commands spitting forth "broken pipe" messages.

I expect the set command should fail but not take down the pipe.

Rhys Ulerich <rhysu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by rhysu (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 Nov 2012 09:56:16 PM UTCbpabbottOpen/ClosedOpen=>Closed
    Mon 15 Oct 2012 07:35:57 PM UTCbpabbottStatusNeed Info=>Wont Fix
    Sat 13 Oct 2012 01:55:10 PM UTCbpabbottStatusNone=>Need Info
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1