From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 55E8CBC6B for ; Wed, 13 Jun 2007 10:21:23 +0200 (CEST) Received: from web27009.mail.ukl.yahoo.com (web27009.mail.ukl.yahoo.com [217.146.177.9]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l5D8LMiV011021 for ; Wed, 13 Jun 2007 10:21:23 +0200 Received: (qmail 65224 invoked by uid 60001); 13 Jun 2007 08:21:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=sRJX2CxK272rb2v7CBDE9aoKUaaoIOLjIk0OLl8GxrPqjpm24olbLk5JP3JMIezweNGQ3r+bPQ7uN72Ad9YFiaeO2T8ks8vcXmVUd62BPpvUuECjp7uZAtry2djk0I17Kda8ohxBJIy39pnmRV7bpoeQixuB9nQRfeg/1NwrPK8=; X-YMail-OSG: I.bsCMMVM1mBaCUSz3ZU1WXstlMIDl4IzO_7AIizIQbKSIM01H1uVUj8ZC7msrxz5fer5InL.OsF9j2CaJ7y6ZkRGjtjJ6_6pfljpJToXYrqKaImtCozTodVfw0- Received: from [193.52.94.40] by web27009.mail.ukl.yahoo.com via HTTP; Wed, 13 Jun 2007 08:21:22 GMT X-Mailer: YahooMailRC/651.29 YahooMailWebService/0.7.41.16 Date: Wed, 13 Jun 2007 08:21:22 +0000 (GMT) From: Matthieu Wipliez Subject: Re : [Caml-list] cywgin stack overflow To: caml-list@yquem.inria.fr MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-776375927-1181722882=:63997" Message-ID: <640504.63997.qm@web27009.mail.ukl.yahoo.com> X-Miltered: at concorde with ID 466FA902.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; matthieu:01 stack:01 stack:01 gcc:01 ocamlopt:01 -wl:01 -wl:01 ocamlopt:01 matthieu:01 ens-lyon:01 ocaml:01 cygwin:01 cygwin:01 ocaml:01 parser:01 --0-776375927-1181722882=:63997 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=0A=0AI don't know what is the problem, but if you want to increase t= he stack size, here's what you can do:=0A=0AFor a 10MB stack:=0AUsing gcc: = ocamlopt.opt -ccopt "-Wl,--stack -Wl,10485760" (other options)=0AUsing MSVC= cl: ocamlopt.opt -ccopt "/F10485760" (other options)=0A=0A(I had to do tha= t in a program so that Marshal'ing would not fail).=0A=0AHope that helps,= =0A=0AMatthieu=0A=0A----- Message d'origine ----=0ADe : skaller =0A=C0 : caml-list@yquem.inria.fr=0ACc : Rhythmic Fistm= an ; Emmanuel Onzon =0AEnvo= y=E9 le : Mercredi, 13 Juin 2007, 9h34mn 32s=0AObjet : [Caml-list] cywgin s= tack overflow=0A=0AHi, we've got a problem with an Ocaml native code progra= m running under=0ACygwin exiting without producing output or diagnostics. I= think=0ACygwin is running Ocaml 3.08. It was suggested=0Athis was probably= a stack overflow. The program is Dypgen GLR=0Aparser generator, which is p= robably heavily recursive. It works=0Afine on my AMD64/Ubuntu Linux box, Oc= aml 3.10-dev+25 or something.=0A=0ADoes anyone know how to increase the sta= ck size, or have any other=0Aidea how to work around this problem? Or any i= dea if it could=0Abe any other problem?=0A=0A-- =0AJohn Skaller =0AFelix, successor to C++: http://felix.sf.net=0A=0A= _______________________________________________=0ACaml-list mailing list. S= ubscription management:=0Ahttp://yquem.inria.fr/cgi-bin/mailman/listinfo/ca= ml-list=0AArchives: http://caml.inria.fr=0ABeginner's list: http://groups.y= ahoo.com/group/ocaml_beginners=0ABug reports: http://caml.inria.fr/bin/caml= -bugs=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A =0A=09=0A=09=09=0A_____________= ______________________________________________________________ =0AD=E9couvr= ez une nouvelle fa=E7on d'obtenir des r=E9ponses =E0 toutes vos questions != =0AProfitez des connaissances, des opinions et des exp=E9riences des inter= nautes sur Yahoo! Questions/R=E9ponses =0Ahttp://fr.answers.yahoo.com --0-776375927-1181722882=:63997 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I don't know what is the problem, but if you want to inc= rease the stack size, here's what you can do:

For a 10MB stack:
U= sing gcc: ocamlopt.opt -ccopt "-Wl,--stack -Wl,10485760" (other options)Using MSVC cl: ocamlopt.opt -ccopt "/F10485760" (other options)

(I = had to do that in a program so that Marshal'ing would not fail).

Hop= e that helps,

Matthieu

----- Message d'origine ----De : skaller <skaller@users.sourceforge.net>
=C0 : caml-list@yqu= em.inria.fr
Cc : Rhythmic Fistman <rfistman@gmail.com>; Emmanuel O= nzon <emmanuel.onzon@ens-lyon.fr>
Envoy=E9 le : Mercredi, 13 Juin = 2007, 9h34mn 32s
Objet : [Caml-list] cywgin stack overflow

Hi, we'v= e got a problem with an Ocaml native code program running under
Cygwin e= xiting without producing output or diagnostics. I think
Cygwin is runnin= g Ocaml 3.08. It was suggested
this was probably a stack overflow. The p= rogram is Dypgen GLR
parser generator, which is probably heavily recursi= ve. It works
fine on my AMD64/Ubuntu Linux box, Ocaml 3.10-dev+25 or som= ething.

Does anyone know how to increase the stack size, or have any= other
idea how to work around this problem? Or any idea if it could
= be any other problem?

--
John Skaller <skaller at users dot s= f dot net>
Felix, successor to C++: http://felix.sf.net

___________________________= ____________________
Caml-list mailing list. Subscription management:http://y= quem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Begin= ner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug repor= ts: http:/= /caml.inria.fr/bin/caml-bugs


=0A=09= =09
=0AD=E9couvrez une nouvelle fa=E7on d'obtenir des r=E9po= nses =E0 toutes vos questions ! =0AProfitez des connaissances, des opinions= et des exp=E9riences des internautes sur Yahoo! Questions/R=E9ponses.= --0-776375927-1181722882=:63997--