FLAM Issue Tracker - FL5
View Issue Details
0000656FL52.2 Subprogram FLUC (CONV)public2015-03-05 13:392015-04-15 15:06
Falk Reichbott 
Falk Reichbott 
highmajoralways
resolvedfixed 
GeneralGeneralGeneral
5.1 
5.15.1.05 
0000656: Segmentation fault if file=DUMMY used in write.record()
The call below result in segmentation fault.

flcl conv "read.file=./input/*/mbr*.bin
           write.record(file=dummy report=report.txt) dir(rec)"

No tags attached.
Issue History
2015-03-05 13:39Falk ReichbottNew Issue
2015-03-05 13:39Falk ReichbottStatusnew => assigned
2015-03-05 13:39Falk ReichbottAssigned To => Falk Reichbott
2015-03-05 14:06Falk ReichbottNote Added: 0000761
2015-03-05 14:09Falk ReichbottNote Added: 0000762
2015-03-05 14:09Falk ReichbottStatusassigned => resolved
2015-03-05 14:09Falk ReichbottResolutionopen => fixed
2015-04-15 15:06Falk ReichbottFixed in Version => 5.1.05

Notes
(0000761)
Falk Reichbott   
2015-03-05 14:06   
The file handle is NULL if DUMMY used, because no file is open. But in this case a real write function is assigned. This use the NULL pointer as file handle and this result in the segmentation fault.
(0000762)
Falk Reichbott   
2015-03-05 14:09   
The issue is fixed with version 5.1.5 of FLAM.

If the file handle NULL and no other errors has occured then the DUMMY read and write functions are assigned.

This fix was done in all FIO components (BLK, REC, TXT)