[REBOL] Re: Segmentation fault
From: varnoux:atmel at: 7-Nov-2003 16:58
Sometimes, there are some things you know you'll never understand...
Actually, one line was not exact in my code quoting.
It was not :
summary_file: read/lines %big_file
but
summary_file: read/lines ftp://log:[pass--mac]/big_file
By trying to make an example of crashing code, I loaded the big file locally and the
bug disappeared.
Now my script is:
write %tmp read ftp://log:[pass--mac]/big_file
summary_file: read/lines %tmp
And the rest is _exactly_ like before.
No crash anymore...
Thanks to all who helped me ;o)
Vincent
Arnoux Vincent wrote:
>Hi List,
>I run into a seg fault when I do the following :
>
> display_list: copy [[][][][][]]
> summary_file: read/lines %big_file
> job_selected: "My string"
> i: 0
> foreach line summary_file [
> probe i: (i + 1)
> tmp: parse probe line ""
> print "Test"
> if job_selected = tmp/2 [
> append display_list/1 tmp/1
> append display_list/2 tmp/3
> append display_list/4 tmp/4
> append display_list/3 tmp/5
> append display_list/5 tmp/6
> ]
> ]
>
>%big_file is an ASCII file with approx. 14000 lines, and another such
>loop already deals with that variable (summary_file).
>It works for the first loop, but not the second one...
>The segmentation fault occurs between just after the counter display
>(without doing the probe of "line").
>Any idea anyone ?
>
>Vincent
>
--
Vincent Arnoux
Lithography Development Engineer
Tel: (+33)4 42 53 65 99