View Issue Details

IDProjectCategoryView StatusLast Update
0013108Open CASCADEOCCT:Modeling Algorithmspublic2010-06-29 16:36
ReporterydeAssigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionunable to reproduce 
OSLinux 
Summary0013108: SIGFPE Arithmetic exception in v2dinit
DescriptionSources :
All V2d ; chl/919




Error :

v2dinit

** Exception ** 0x2000000003bc8510 : Standard_NumericError: SIGFPE Arithmetic
exception detectedAn exception was caught 0x2000000003bc8510 :
Standard_NumericError: SIGFPE Arithmetic exception detected




locate error :
In Xw_get_color_index() of file ros/src/Xw/Xw_get_color_index.cxx




PB :
unsigned long rred = (long unsigned int )( r * (1 << _CVISUAL->bits_per_rgb) - 1);

Mix error between Integer and float value
same error for : rred, rgreen, rblue.




Solve :

Compute step by step with explicite type:

red_decalage = (1 << _CVISUAL->bits_per_rgb);

red_multipication = r * red_decalage;

red_cast = (long unsigned int )red_multipication - 1;

unsigned long rred = red_cast - 1;
TagsNo tags attached.
Test case number

Attached Files

Activities

2006-08-01 18:19

 

Xw_get_color_index.cxx (9,638 bytes)

Issue History

Date Modified Username Field Change
2010-06-29 16:36 bugmaster Status new => closed
2010-06-29 16:36 bugmaster Resolution @0@ => unable to reproduce
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms