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

dynlink broken when used from "output-obj" main program (bytecode) #5687

Closed
vicuna opened this issue Jul 16, 2012 · 2 comments
Closed

dynlink broken when used from "output-obj" main program (bytecode) #5687

vicuna opened this issue Jul 16, 2012 · 2 comments
Assignees
Labels
Milestone

Comments

@vicuna
Copy link

@vicuna vicuna commented Jul 16, 2012

Original bug ID: 5687
Reporter: @alainfrisch
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:07:20Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.00.0+dev
Category: ~DO NOT USE (was: OCaml general)
Related to: #5215

Bug description

caml_code_fragments is initialized in fix_code.c, function caml_load_code. This is not called when the program is initialized through caml_startup_code. The call to caml_ext_table_add in caml_register_code_fragment (meta.c) thus fails.

@vicuna
Copy link
Author

@vicuna vicuna commented Jul 16, 2012

Comment author: @alainfrisch

Fixed (commits 12714 on trunk; 12715 on 4.00).

There is a lot of code duplication between the two ways to load code in bytecode. We should consider factorizing common logic to avoid such bugs.

@vicuna
Copy link
Author

@vicuna vicuna commented Jul 16, 2012

Comment author: @alainfrisch

(For the records, this is related to #5215.)

@vicuna vicuna closed this Dec 11, 2015
@vicuna vicuna added this to the 4.00.0 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
dra27 pushed a commit to dra27/ocaml that referenced this issue Feb 27, 2021
…ogram. (Cherry-picked from trunk.)

git-svn-id: http://caml.inria.fr/svn/ocaml/version/4.00@12715 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants