Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Regarding Bug 4064 on MacOSX Intel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-07-21 (14:12)
From: Jean-Marie Gaillourdet <jm@g...>
Subject: Regarding Bug 4064 on MacOSX Intel
Hash: SHA1


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 

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: cvs -z3 co -r  
ocaml3092 -P  ocaml
I didn't change anything in the ocaml sources.

Best regards,

$ tar xzvf fjvac-0.4.3.tgz
$ cd fjavac-0.4.3
$ make
<snipped some output>
./ocfgcx java.g j
Generating scanner definitions in file jscan.mll...
Generating syntax definitions in file
Generating parser definitions in file
make: *** [] Bus error
make: *** Deleting file `'
$ gdb ./ocfgcx
GNU gdb 6.1-20040303 (Apple version gdb-437) (Fri Jan 13 18:45:48 GMT  
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  
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
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
Generating parser definitions in file

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?)

Version: GnuPG v1.4.1 (Darwin)