Browse thread
Segfaults with Dynlink with OCaml 3.11
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Paul Steckler <steck@s...> |
| Subject: | Segfaults with Dynlink with OCaml 3.11 |
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