Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault at process initialization #8288

Closed
vicuna opened this issue Sep 18, 2003 · 1 comment
Closed

Segmentation fault at process initialization #8288

vicuna opened this issue Sep 18, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 18, 2003

Original bug ID: 1839
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

When the Xcaml runtime system is linked with the -linkall option of
ocamlc-3.06, the xcaml executable I get crashes with a segmentation
fault at process initialization. If, on the other hand, I link the
executable without the -linkall option, it runs fine, except for the
fact that it lacks several library modules it should have.

The libraries I'm using are the following:
postgres, which is know to work very well;
cgi, which contains no C code;
and str, num and dynlink coming straight from the ocaml distribution.

My code is definitely not a problem because it runs fine if the -linkall
option is suppressed. Neither is the -linkall option a problem in and of
itself, because I can reproduce the behaviour by issuing equivalent
linking commands using the cmo files as opposed the cmas.

How can I diagnose this segmentation fault? Under what circumstances
exactly are ocaml programs "allowed" to crash with a segmentation fault?

Alex

@vicuna
Copy link
Author

vicuna commented Sep 23, 2003

Comment author: administrator

According to further discussion in caml-list, this is a bug in the C linker
or an identifier conflict between dynamically-linked C libraries.

@vicuna vicuna closed this as completed Sep 23, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant