BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Segmentation fault when reading this file #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to compile attached file 
2. when MAX_LINE_LEN is much higher, problem dissapears
3. problem dissapears also when raising exception (InternalError for ex) when 
line is too long.

Problem dissapears but still exists.
Parser tries to do something and does the segmentation fault.

I have printed line read by  ReadLine and got:
LINE[[]]
line read, goto retry
1
2
3
4
4
LINE[[f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, 
$80 , $4f, $10, $80 , $4f, $10, $80 , $4f, $10, $80 , $4f, dl
]]
line read, goto retry
Segmentation fault

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by jakub.hu...@gmail.com on 25 Aug 2010 at 1:18

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jakub.hu...@gmail.com on 25 Aug 2010 at 1:11