caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* caml_alloc + 64 bits - caml_alloc.h
@ 2009-01-13  4:51 Daniel de Rauglaudre
  2009-01-13  4:58 ` [Caml-list] " Erik de Castro Lopo
  2009-01-13  9:37 ` malc
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel de Rauglaudre @ 2009-01-13  4:51 UTC (permalink / raw)
  To: caml-list

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/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-13 10:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13  4:51 caml_alloc + 64 bits - caml_alloc.h Daniel de Rauglaudre
2009-01-13  4:58 ` [Caml-list] " Erik de Castro Lopo
2009-01-13  5:15   ` Daniel de Rauglaudre
2009-01-13  9:37 ` malc
2009-01-13 10:26   ` Olivier Andrieu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).