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
Segfault if *.ml is named the same as the pack
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-05-23 (08:49)
From: Goswin von Brederlow <goswin-v-b@w...>
Subject: Segfault if *.ml is named the same as the pack

I have a file Gate/ that I compile with

ocamlopt -for-pack Gate -I Gate -c Gate/

Calling 'new Gate.Gate.wire' then segfauts.

If I rename Gate/ to Gate/ everything works. Also if I
compile for bytecode everything works.

Any ideas why?

You can download the source and test yourself from

make && ./ologic		segfaults
make MODE=Byte && ./ologic	works

You can quit the program by pressing 'q' in the window.