public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: my C arrays are too large
@ 2019-09-13 13:44 Blair, Charles E III
  2019-09-13 14:20 ` Eliot Moss
  0 siblings, 1 reply; 14+ messages in thread
From: Blair, Charles E III @ 2019-09-13 13:44 UTC (permalink / raw)
  To: cygwin

Thank you very much for your help.  Moving the big array to a global variable made the problem go away.  
Before that, I tried

ulimit -Ss 8192

After this, the segmentation error message was still there.

-----------------------------------------------------------------------------------

My e-mail system is unreliable.  Please write again if you do not receive a reply in a few days.  gpg key is available from keyservers.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: My C arrays are too large
@ 2019-09-13 12:18 Blair, Charles E III
  2019-09-13 12:37 ` Eliot Moss
  2019-09-13 18:44 ` Achim Gratz
  0 siblings, 2 replies; 14+ messages in thread
From: Blair, Charles E III @ 2019-09-13 12:18 UTC (permalink / raw)
  To: cygwin

My apologies for failing to reply on-list.  I don't know how :(

My machine is 64 bit, and I hope I installed the correct version of cygwin.

This program:

#include<stdio.h>
int main(){char *a[50][8192];
return 0;}

compiles with gcc  (no special options) but gives "Segmentation fault".

-----------------------------------------------------------------------------------

My e-mail system is unreliable.  Please write again if you do not receive a reply in a few days.  gpg key is available from keyservers.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-09-19 21:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-13 13:44 my C arrays are too large Blair, Charles E III
2019-09-13 14:20 ` Eliot Moss
  -- strict thread matches above, loose matches on Subject: below --
2019-09-13 12:18 My " Blair, Charles E III
2019-09-13 12:37 ` Eliot Moss
2019-09-13 18:44 ` Achim Gratz
2019-09-13 18:50   ` Eliot Moss
2019-09-13 19:01   ` Jose Isaias Cabrera
2019-09-14  5:32     ` Lee
2019-09-18 19:09     ` Joel Rees
2019-09-18 20:40       ` Jose Isaias Cabrera
2019-09-18 20:46         ` Eliot Moss
2019-09-19  1:19         ` Joel Rees
2019-09-19 18:04           ` Jose Isaias Cabrera
2019-09-19 21:58         ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).