Version française
Home     About     Download     Resources     Contact us    
Browse thread
caml_alloc + 64 bits - caml_alloc.h
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: caml_alloc + 64 bits - caml_alloc.h
Hi everybody,

Possibly useful information. Is it already known?

When using calls to "caml_alloc" in a 64 bits architecture without
having included "caml/alloc.h", it raises "Segmentation fault" at
execution time.

Notice that I got no warning at compilation time for using caml_alloc
without a definition stub.

In 32 bits architecture, I never had any problem with that.

Morality:
   Don't forget to #include "caml/alloc.h" in your C programs
   if you alloc OCaml things!

-- 
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/