Euphoria
Ticket #485:
Segfault when invalid file on command line
-
Reported by
mattlewis
Dec 03, 2010
Running the interpreter and translator with a bad file results in segfaults:
$ eui dfsfd
Can't open dfsfd.ex
Segmentation fault
$ euc sdfsdfsdf
Build directory: build-403923/
Can't open sdfsdfsdf.ex
Segmentation fault
Details
1. Comment by jeremy
Dec 03, 2010
What SVN rev are you running? I fixed a similar problem ~20-30 revs ago.
2. Comment by mattlewis
Dec 03, 2010
Updated with reported release: svn:4467.
3. Comment by jeremy
Dec 03, 2010
The problem I fixed was in console.e, any_key()... was freeing a sequence... machine_proc(M_FREE, { addr_loc })
4. Comment by mattlewis
Dec 03, 2010
Running with int.ex reveals:
source/scanner.e:2177 in procedure cleanup_open_includes()
variable IncludeStk has not been assigned a value
... called from /home/matt/eu/rds/source/error.e:198 in procedure Cleanup()
... called from /home/matt/eu/rds/source/main.e:152 in procedure main()
... called from /home/matt/eu/rds/source/main.e:
5. Comment by mattlewis
Dec 03, 2010
IncludeStk wasn't initialized. Added initialization to an empty sequence at declaration to prevent invalid accesses.