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

Comments

Projects
None yet
2 participants
@vicuna
Copy link

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.