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

 
 

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

Submitter:  Rhys Ulerich <rhysu>
Submitted:  Thu 04 Oct 2012 08:05:56 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.2 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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.


line 0: warning: difficulty making room for xtic labels


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.


set terminal qt enhanced
set xtics in scale  1.4 border mirror ( "-10.0000000, -5.0000000, 0.0000000, 5.0000000, 10.0000000" -10,  "-10.0000000, -5.0000000, 0.0000000, 5.0000000, 10.0000000" -5,  "-10.0000000, -5.0000000, 0.0000000, 5.0000000, 10.0000000" 0,  "-10.0000000, -5.0000000, 0.0000000, 5.0000000, 10.0000000" 5,  "-10.0000000, -5.0000000, 0.0000000, 5.0000000, 10.0000000" 10);
plot sin (x)


And gnuplot exited with "Abort trap: 6"

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

Ben Abbott <bpabbott>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-05 bpabbott Open/ClosedOpen Closed
    2012-10-15 bpabbott StatusNeed Info Wont Fix
    2012-10-13 bpabbott StatusNone Need Info
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code