caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Segfaults with Dynlink with OCaml 3.11
@ 2010-08-23 10:57 Paul Steckler
  2010-08-23 11:06 ` [Caml-list] " Stéphane Glondu
  2010-08-25  4:00 ` Paul Steckler
  0 siblings, 2 replies; 10+ messages in thread
From: Paul Steckler @ 2010-08-23 10:57 UTC (permalink / raw)
  To: caml-list

I'm getting segmentation faults when using dynamically linked native
code in 64-bit OCaml 3.11 running
on Linux (Fedora 12 x64).

The .cmxs file loads fine.  There's a glue module that's "open"d in
the code for the dynamic module, and
linked against the main program.  The dynamic module calls functions
that modifies lists in the glue module;
the main code calls functions in the glue module that return the
current values of those lists.  The code that
modifies the lists seems to work OK, but the query functions reliably
give a crash.

I've written some small example programs with a similar structure, and
those work just fine.  In my real,
large program, which pulls in a lot of OCaml libraries, I get segfaults.

Any ideas what might be going wrong?  My code is not compiled with -nodynlink.

-- Paul


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

end of thread, other threads:[~2010-09-03 14:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 10:57 Segfaults with Dynlink with OCaml 3.11 Paul Steckler
2010-08-23 11:06 ` [Caml-list] " Stéphane Glondu
2010-08-23 11:47   ` Paul Steckler
2010-08-23 12:05     ` Mark Shinwell
2010-08-23 12:12       ` Paul Steckler
2010-08-23 12:15         ` Daniel Bünzli
2010-08-23 12:28         ` Anil Madhavapeddy
2010-08-23 15:48         ` Stéphane Glondu
2010-08-25  4:00 ` Paul Steckler
2010-09-03 14:59   ` [Caml-list] " Damien Doligez

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