A crazy idea to crash cadence session :-)

N

noreply

Guest
Hi i was trying the following and my cadence session was caught up in
a infinite loop(Based on the number of elements that were dumped in
the layout i'm sure the loop got executed 499 times). and finally i
had to kill cadence through my terminal(yes,Alt+F4 didn't work).
Hey just giving this for fun(Please be sure that you don't loose any
data).
I wrote a file called "hi.il"
Only two lines were present in the file
line1:loadi "<path>/hi.il"
line2:loadi "<path>/optimization.il";This was a pretty big program
roughly 400 lines.

Then in the CIW i wrote
loadi "<path>/hi.il"

Yes i loaded the same file. And it was an accident.
Can anyone explain why the cadence ran into an infinite loop.(the
line2 was executed 499 times)
Thanks and regards,
Lokesh rajendran.
 
noreply wrote, on 07/07/09 08:18:
Hi i was trying the following and my cadence session was caught up in
a infinite loop(Based on the number of elements that were dumped in
the layout i'm sure the loop got executed 499 times). and finally i
had to kill cadence through my terminal(yes,Alt+F4 didn't work).
Hey just giving this for fun(Please be sure that you don't loose any
data).
I wrote a file called "hi.il"
Only two lines were present in the file
line1:loadi "<path>/hi.il"
line2:loadi "<path>/optimization.il";This was a pretty big program
roughly 400 lines.

Then in the CIW i wrote
loadi "<path>/hi.il"

Yes i loaded the same file. And it was an accident.
Can anyone explain why the cadence ran into an infinite loop.(the
line2 was executed 499 times)
Thanks and regards,
Lokesh rajendran.
Well, the code it loading itself. Probably eventually it runs out of file
handles, and so won't load any more files, at which point it would start
returning back out of the nested recursive loads, executing line2 as it comes
back up the "stack"...

Clearly the code is wrong, because you wouldn't want to load a file from itself.

Regards,

Andrew.
 
Oh !! i got it,
An amateur code writer can always be forgiven.
Regards,
Lokesh



On Jul 8, 5:06 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
noreply wrote, on 07/07/09 08:18:



Hi i was trying the following and my cadence session was caught up in
a infinite loop(Based on the number of elements that were dumped in
the layout i'm sure the loop got executed 499 times). and finally i
had to kill cadence through my terminal(yes,Alt+F4 didn't work).
Hey just giving this for fun(Please be sure that you don't loose any
data).
I wrote a file called "hi.il"
Only two lines were present in the file
line1:loadi "<path>/hi.il"
line2:loadi "<path>/optimization.il";This was a pretty big program
roughly 400 lines.

Then in the CIW i wrote
loadi "<path>/hi.il"

Yes i loaded the same file. And it was an accident.
Can anyone explain why the cadence ran into an infinite loop.(the
line2 was executed 499 times)
Thanks and regards,
Lokesh rajendran.

Well, the code it loading itself. Probably eventually it runs out of file
handles, and so won't load any more files, at which point it would start
returning back out of the nested recursive loads, executing line2 as it comes
back up the "stack"...

Clearly the code is wrong, because you wouldn't want to load a file from itself.

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top