From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 6FD1CBBBC for ; Fri, 21 Jul 2006 16:12:56 +0200 (CEST) Received: from m14s26.vip-server.net (m14s26.vip-server.net [193.138.181.188]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k6LECp7g016137 for ; Fri, 21 Jul 2006 16:12:56 +0200 Received: from [sk??????????W!?$IPv6:::1] (localhost [127.0.0.1]) by m14s26.vip-server.net (Postfix) with ESMTP id C748589039 for ; Fri, 21 Jul 2006 16:02:33 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: caml-list From: Jean-Marie Gaillourdet Subject: Regarding Bug 4064 on MacOSX Intel Date: Fri, 21 Jul 2006 16:13:23 +0200 X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.752.2) X-Miltered: at nez-perce with ID 44C0E0E3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bug:01 macosx:01 hash:01 bug:01 backtrace:01 gdb:01 upenn:01 javac:01 parser:01 lablgtk:01 interfacing:01 unix:01 ocaml:01 macos:01 cvs:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, sorry for posting this to the list but I tried to get an account for the bug tracking system, but it didn't work. This an additional note to Bug 4064. The same bug, i.e. with the same backtrace in gdb, appears when compiling fjavac from http://www.cis.upenn.edu/~stse/javac/ fjavac-0.4.3.tgz That package includes ocfgc a parser generator. For instuctions to reproduce that behavior look at the end of the mail. I think this is easier to reproduce and debug than the original instructions because ocfgc does not involve lablgtk or other C interfacing code except the unix module of ocaml itself. This crash does not occur with the bytecode-compiled version, ocfgc. This is happening with MacOS X 10.4.7 on a MacBookPro and cvs checkedout version of today: CVSROOT=:pserver:anoncvs@camlcvs.inria.fr:/caml cvs -z3 co -r ocaml3092 -P ocaml I didn't change anything in the ocaml sources. Best regards, Jean-Marie $ tar xzvf fjvac-0.4.3.tgz $ cd fjavac-0.4.3 $ make ./ocfgcx java.g j Generating scanner definitions in file jscan.mll... Generating syntax definitions in file jsyntax.ml... Generating parser definitions in file jparse.ml... make: *** [jsyntax.ml] Bus error make: *** Deleting file `jsyntax.ml' $ gdb ./ocfgcx GNU gdb 6.1-20040303 (Apple version gdb-437) (Fri Jan 13 18:45:48 GMT 2006) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .. done (gdb) r java.g j Starting program: /Users/jmg/software/src/fjavac-0.4.3/ocfgcx java.g j Reading symbols for shared libraries . done Generating scanner definitions in file jscan.mll... Generating syntax definitions in file jsyntax.ml... Generating parser definitions in file jparse.ml... Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x0003e693 in caml_oldify_local_roots () (gdb) bt #0 0x0003e693 in caml_oldify_local_roots () #1 0x000402f3 in caml_empty_minor_heap () #2 0x000403e7 in caml_minor_collection () #3 0x0003ee7a in caml_garbage_collection () #4 0x0004cea0 in caml_call_gc () Previous frame inner to this frame (corrupt stack?) (gdb) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEwOEHNIUNP/I5YOgRAhEpAJwMz7LJvpnRJtmjp4/jUJtm8VNJFQCfUD8l 0jZzQbIDMDDSF6lpWMllA9c= =NqZL -----END PGP SIGNATURE-----