| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
STR #1390
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | Unassigned |
Summary: | FLTK2.0-r5274 snprintf seg faults ubuntu 6.06 (linux2.6) |
Version: | 2.0-current |
Created By: | mako |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | mako 15:51 Aug 10, 2006 |
| It seems that http://www.fltk.org/doc-2.0/html/index.html example 4 (drawing.cxx) has snprintf statements that compile but immediately crash upon run, sometimes with segmentation faults, othertimes without. Removing these statements allows program to run. Setting static values and formatting does not solve the problem. Only happens on the following system: Ubuntu 6.06 uname -a= Linux machineName 2.6.15-26-386 #1 PREEMPT Mon Jul 17 19:52:53 UTC 2006 i686 GNU/Linux
Many thanks for any assistance or fix that you might be able to offer. FLTK is great! | |
|
#2 | fabien 12:34 Aug 28, 2006 |
| hmm strange, i did compile the example 4 with my linux fedora core (2.6.16-1.2133_FC5 ) without problems. It looks like a library conflict. Do the other demos run ? I so, try to test the following: rename this source example ask.cxx and replace the existing one in the test subdirectory by this one (backup the original) then compile and run ask. then recompile the ask demo (type 'make ask' in the test subdirectory in a shell)
Does it work then ?
(You can also directly compile your example by using in the distrib the command tool fltk2_config ).
Fabien | |
|
#3 | vedran 02:46 Sep 07, 2006 |
| I also don't see this issue with Mandriva 2006, gcc 4.0.1 | |
|
#4 | ydroneaud 06:17 Jun 26, 2008 |
| In the example available on page http://www.fltk.org/doc-2.0/html/example4.html, generated from src/tests/drawing.cxx, there is an invalid character 0xb0 in the following part of the format string: "Angle between sides = %g<0xb0>\n". this could be a reason for the Segmentation Fault. The code 0xb0 is not a valid UTF-8 character, and could have meaning in other encoding scheme. And there were some buggy printf() functions in the past... | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |