From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 9AFC4BC57 for ; Sun, 23 May 2010 10:49:15 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj4DANqI+EvZSMDqlGdsb2JhbACRfIwVFQEBAQEJCwgJEQMfuwuFEwQ X-IronPort-AV: E=Sophos;i="4.53,285,1272837600"; d="scan'208";a="59892090" Received: from fmmailgate03.web.de ([217.72.192.234]) by mail1-smtp-roc.national.inria.fr with ESMTP; 23 May 2010 10:49:15 +0200 Received: from smtp06.web.de ( [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id D436F151AA9B3 for ; Sun, 23 May 2010 10:49:14 +0200 (CEST) Received: from [78.43.204.177] (helo=frosties.localdomain) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1OG6ry-00038Z-00 for caml-list@yquem.inria.fr; Sun, 23 May 2010 10:49:14 +0200 Received: from mrvn by frosties.localdomain with local (Exim 4.71) (envelope-from ) id 1OG6s4-0001Pg-Kn for caml-list@yquem.inria.fr; Sun, 23 May 2010 10:49:20 +0200 From: Goswin von Brederlow To: caml-list@yquem.inria.fr Subject: Segfault if *.ml is named the same as the pack Date: Sun, 23 May 2010 10:49:20 +0200 Message-ID: <87y6fbdmun.fsf@frosties.localdomain> User-Agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX1/BooQHW57k1IvyVUyRcE4QpkpjWqlXIAUWscl0 B6HvJY5Fhm0Fv42pVbBdk887uecPWcGnW6MRh1AJ3VYS0zQaAj BvhxCkNqI= X-Spam: no; 0.00; segfault:01 ocamlopt:01 -for-pack:01 bytecode:01 homeip:01 segfaults:01 byte:01 'q':01 mfg:98 compile:01 compile:01 rename:04 file:11 pressing:11 source:12 Hi, I have a file Gate/Gate.ml that I compile with ocamlopt -for-pack Gate -I Gate -c Gate/gate.ml Calling 'new Gate.Gate.wire' then segfauts. If I rename Gate/gate.ml to Gate/base.ml everything works. Also if I compile for bytecode everything works. Any ideas why? You can download the source and test yourself from http://mrvn.homeip.net/ologic/ make && ./ologic segfaults make MODE=Byte && ./ologic works You can quit the program by pressing 'q' in the window. MfG Goswin