|
From: Dave D. <dde...@es...> - 2006-03-13 19:51:42
|
Daniel J Sebald <dan...@ie...> writes: > Last night I started a script "allinf.dem" consisting of > > load "all.dem" > load "allinf.dem" > > run with the system command line: > > gnuplot allinf.dem < /dev/null > load makes a recursive call into the command parser. So you have set up an infinite recursion. If you attached a debugger, you'd probably see a very deep call stack. Yeah - if I have $ cat /tmp/pause pause 1 "hello" $ cat /tmp/recurse load "/tmp/pause" load "/tmp/recurse" Then I run it for a while, and then (gdb) where #0 0xdfb7a923 in _libc_sigsuspend () #1 0xdfb939f0 in _libc_usleep () #2 0xdfbca8ad in usleep () #3 0x80515fb in pause_command () at command.c:997 #4 0x8050831 in command () at command.c:511 #5 0x8050409 in do_line () at command.c:368 #6 0x8079032 in load_file (fp=0x811d010, name=0x8122f30 "/tmp/pause", can_do_args=0 '\000') at misc.c:267 #7 0x805143b in load_command () at command.c:871 #8 0x8050831 in command () at command.c:511 #9 0x8050409 in do_line () at command.c:368 #10 0x8079032 in load_file (fp=0x811d000, name=0x8122f18 "/tmp/recurse", can_do_args=0 '\000') at misc.c:267 #11 0x805143b in load_command () at command.c:871 [snip] #164 0x8050831 in command () at command.c:511 #165 0x8050409 in do_line () at command.c:368 #166 0x8079032 in load_file (fp=0x811cd90, name=0x8122b70 "/tmp/recurse", can_do_args=0 '\000') at misc.c:267 #167 0x805143b in load_command () at command.c:871 #168 0x8050831 in command () at command.c:511 #169 0x8050409 in do_line () at command.c:368 #170 0x8079032 in load_file (fp=0x811cd80, name=0x804714b "/tmp/recurse", can_do_args=0 '\000') at misc.c:267 #171 0x807fe59 in main (argc=1, argv=0x8046f98) at plot.c:622 Problem goes away if you spell it $ cat /tmp/recurse load '/tmp/pause' reread dd -- Dave Denholm <dde...@es...> http://www.esmertec.com |