* [Caml-list] ocamlopt segfault on large static array
@ 2019-01-14 19:05 Paul A. Steckler
2019-01-14 19:28 ` Viet Le
0 siblings, 1 reply; 2+ messages in thread
From: Paul A. Steckler @ 2019-01-14 19:05 UTC (permalink / raw)
To: Ocaml Mailing List
In my OCaml program, I have a large static 2D array, where the inner
array contains pairs of strings. The inner arrays each have 2**9
elements, the outer array has about 1700 elements.
The strings are about 90 characters each.
If I compile it with ocamlc 4.07.0, everything is fine. With ocamlopt,
I get a segfault.
What limit am I hitting to get the segfault?
-- Paul
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list https://inbox.ocaml.org/caml-list
Forum: https://discuss.ocaml.org/
Bug reports: http://caml.inria.fr/bin/caml-bugs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] ocamlopt segfault on large static array
2019-01-14 19:05 [Caml-list] ocamlopt segfault on large static array Paul A. Steckler
@ 2019-01-14 19:28 ` Viet Le
0 siblings, 0 replies; 2+ messages in thread
From: Viet Le @ 2019-01-14 19:28 UTC (permalink / raw)
To: Paul A. Steckler; +Cc: Ocaml Mailing List
[-- Attachment #1: Type: text/plain, Size: 998 bytes --]
Looks like stack overflow to me.
Viet
On Mon, 14 Jan 2019 at 19:07, Paul A. Steckler <steck@stecksoft.com> wrote:
> In my OCaml program, I have a large static 2D array, where the inner
> array contains pairs of strings. The inner arrays each have 2**9
> elements, the outer array has about 1700 elements.
> The strings are about 90 characters each.
>
> If I compile it with ocamlc 4.07.0, everything is fine. With ocamlopt,
> I get a segfault.
>
> What limit am I hitting to get the segfault?
>
> -- Paul
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> https://inbox.ocaml.org/caml-list
> Forum: https://discuss.ocaml.org/
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
--
Kind regards,
Viet
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list https://inbox.ocaml.org/caml-list
Forum: https://discuss.ocaml.org/
Bug reports: http://caml.inria.fr/bin/caml-bugs
[-- Attachment #2: Type: text/html, Size: 1588 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, back to index
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14 19:05 [Caml-list] ocamlopt segfault on large static array Paul A. Steckler
2019-01-14 19:28 ` Viet Le
caml-list - the Caml user's mailing list
Archives are clonable:
git clone --mirror http://inbox.vuxu.org/caml-list
git clone --mirror https://inbox.ocaml.org/caml-list
Newsgroup available over NNTP:
nntp://inbox.vuxu.org/vuxu.archive.caml-list
AGPL code for this site: git clone https://public-inbox.org/ public-inbox