| Bugs item #2959761, was opened at 2010-02-26 18:02
Message generated for change (Comment added) made by jpff
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=2959761&group_id=81968
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: csound
Group: csound5
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: John ffitch (jpff)
Summary: seg fault with sprintf/prints on UBUNTU
Initial Comment:
Below csd give segmentation fault on Ubuntu 32b
-nd
instr 1
ival = 33.51124
iprec = 2
Sformat sprintf "%%.%d f\t", iprec
Snew sprintf Sformat, ival
;puts Snew, 1, 1 ;prints %.2 f
prints Snew ;segmentation fault
;prints "%.2f", 33.51124 ;prints 33.51
endin
i 1 0 .1
----------------------------------------------------------------------
>Comment By: John ffitch (jpff)
Date: 2010-02-28 17:23
Message:
Fixed in CVS
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2010-02-28 13:41
Message:
Fails for me too. Will look some more
----------------------------------------------------------------------
Comment By: Andres Cabrera (mantaraya36)
Date: 2010-02-27 09:16
Message:
I can confirm this behavior on Csound 5.12 from recent cvs.
This works:
Sformat sprintf "\t", iprec
Sformat sprintf "%% %d", iprec
Sformat sprintf "%. ", iprec
Sformat sprintf "%%. ", iprec
Sformat sprintf "%%. %d", iprec
But this doesn't:
Sformat sprintf "%%. %d f", iprec
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=2959761&group_id=81968
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |