FLAM Issue Tracker - CLE/P
View Issue Details
0000544CLE/P2. CLPpublic2014-08-18 09:172014-08-23 14:59
Falk Reichbott 
Falk Reichbott 
urgentmajoralways
resolvedfixed 
GeneralGeneralGeneral
1.1 
1.11.1 
0000544: Segmentation fault if error in parameter file
After an error in paramter file the usage of ppPos (points to the error location) pointer result in a segmentation fault.
No tags attached.
Issue History
2014-08-18 09:17Falk ReichbottNew Issue
2014-08-18 09:17Falk ReichbottStatusnew => assigned
2014-08-18 09:17Falk ReichbottAssigned To => Falk Reichbott
2014-08-18 09:25Falk ReichbottNote Added: 0000596
2014-08-23 14:59Falk ReichbottStatusassigned => resolved
2014-08-23 14:59Falk ReichbottFixed in Version => 1.1
2014-08-23 14:59Falk ReichbottResolutionopen => fixed

Notes
(0000596)
Falk Reichbott   
2014-08-18 09:25   
The ppPos Pointer was designed for comand line parsing. With the extension to support parameter files for object and overlays the memory used to parse the parameter file will be frred in case of an error, the ppPos points in the memory and this result in a segementation fault.

To solve this issue the error handling of CLP must be redesigned. The CLP can not use anymore the pointer from the handle direct, in a case of an error a copy of the error location must be build.

We plan to use a new error structure, with a string that contains the line with the arror, the error location in this line, the row and column number, error message and other useful informations. This structure will be filled up if the pointer not NULL on the other side, we will print all these error information to pfErr if pfErr!=NULL. Means the caller can deside to use the error structure or the printouts or both.

Addtional we plan to add a parameter at ClpOpen() which control the support of parameter files.