<div dir="ltr">No, it's all Racket libraries. <div><br></div><div>OTOH I may be the one causing the memory-management problems. The issues are arising in my typesetting program, which passes around some large data structures as function inputs. By "large" I mean a list of 10e5 to 10e6 structs, each with its own hashtable. Perhaps this is imprudent. It certainly makes the GC huff and puff (about 25-30% of my running time is GC) <div><br></div><div>OTOOH, it does seem to be a command-line peculiarity, because I haven't found a similar limit for DrRacket yet. For instance, I just typeset a file with 1.5M characters, resulting in a ~600 page PDF, and it ran fine. </div><div><br></div><div>When I tried running on the command line with this input, I got a different error than before (and within a couple seconds of starting the program):</div><div><br></div><div><div>Seg fault (internal error during gc) at 0x10aac0000</div><div>Bus error: 10 (core dumped)</div></div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 30, 2014 at 11:09 AM, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does your program use any foreign libraries? That behavior sounds typical of memory-management problems.<br>
<div><div class="h5"><br>
> On Dec 30, 2014, at 11:47 AM, Matthew Butterick <<a href="mailto:mb@mbtype.com">mb@mbtype.com</a>> wrote:<br>
><br>
> I have a program that consistently works in DrRacket regardless of input size.<br>
><br>
> But on the command line, once input exceeds a certain threshold, the program consistently dies with a "Segmentation fault: 11 (core dumped)" error (though it works with smaller files). I'm invoking `racket` without any special flags, like so:<br>
><br>
> racket main.rkt<br>
><br>
> I know which line of my program is triggering the segfault. But since the error is related to the input size and the use of command-line Racket, I think I ought to look elsewhere for the cause.<br>
><br>
> Are there particular command-line flags that can be helpful in diagnosing segfaults? Is a segfault like this typically due to running out of memory?<br>
</div></div>> ____________________<br>
>  Racket Users list:<br>
>  <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
</blockquote></div><br></div>