<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/e4fe7b78500c76e96b60200d4b212c11"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-13T12:58:56"
  subject="Re: [Caml-list] AMD64 segfault"
  prev="2005/05/8573ff6f180843fba5c854a034fd3961"
  next="2005/05/dd9819d3a2a504a8a319330b6d40b766"
  prev-in-thread="2005/05/8573ff6f180843fba5c854a034fd3961"
  next-in-thread="2005/05/cca8c59a7c3690d265534bc52f2cbbf7"
  prev-thread="2005/05/5ec037d0731d72daab5cb2759565293d"
  next-thread="2005/05/6ea4767d94762ad89ccf5b45b60114cd"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="AMD64 segfault">
<msg 
  url="2005/05/7d14ee66a5e696b4cd2ac99f348ae603"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-12T22:35:54"
  subject="AMD64 segfault">
<msg 
  url="2005/05/8573ff6f180843fba5c854a034fd3961"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-13T08:14:36"
  subject="Re: [Caml-list] AMD64 segfault">
</msg>
<msg 
  url="2005/05/e4fe7b78500c76e96b60200d4b212c11"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-13T12:58:56"
  subject="Re: [Caml-list] AMD64 segfault">
<msg 
  url="2005/05/cca8c59a7c3690d265534bc52f2cbbf7"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-14T04:14:29"
  subject="Re: [Caml-list] AMD64 segfault">
<msg 
  url="2005/05/9b1b8f22b211ff88a6580ba243e0eade"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-14T13:29:24"
  subject="Re: [Caml-list] AMD64 segfault">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Thursday 12 May 2005 23:35, skaller wrote:
&gt; I just built caml 3.08.3 on my new AMD64 and compiled and ran the usual
&gt; hello world with ocamlopt.opt, however the Felix compiler segfaults.
&gt; The bytecode version runs fine.  Felix uses bignums and unix, otherwise
&gt; it is a pure ocaml program (no 3pl C libraries).
&gt;
&gt; I have no idea where start looking. I'm running Ubuntu (Hoary)
&gt; and using gcc 3.4.
&gt;
&gt; Any hints?

Yes, the stack overflows much more quickly on AMD64 for me (pure64 Debian vs 
stock x86 Debian) and also causes a segfault instead of throwing 
Stack_overflow. I've no idea why.

Try playing with ulimit to set the stack size and rerunning your program.

I have found no other sources of segfaults with OCaml on AMD64.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists

</contents>

</message>

