English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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/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


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

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