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

ocamlopt -pack leads to segfaulting code when packed and packing modules have the same name. #5333

Closed
vicuna opened this issue Aug 10, 2011 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Aug 10, 2011

Original bug ID: 5333
Reporter: jm
Assigned to: @protz
Status: closed (set by @xavierleroy on 2013-08-31T10:44:03Z)
Resolution: duplicate
Priority: normal
Severity: crash
Platform: GNU/Linux
OS: Debian
OS Version: squeeze/amd64
Version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #4080
Monitored by: mehdi "Julien Signoles" @hcarty

Bug description

% ocamlopt -v
The OCaml native-code compiler, version 3.13.0+dev6 (2011-07-29)
Standard library directory: /usr/local/lib/ocaml
% make # using the attached Makefile
mkdir -p p
echo >p/p.ml "let f () = ()"
cd p; ocamlc -c p.ml
mkdir -p p
echo >p/pp.ml "let f () = ()"
cd p; ocamlc -c pp.ml
cd p; ocamlc -pack -o ../p.cmo p.cmo pp.cmo
echo >t.ml "let () = P.Pp.f (); print_endline "P.Pp.f ()""
echo >>t.ml "let () = P.P .f (); print_endline "P.P .f ()""
ocamlc -o t.byte p.cmo t.ml
cd p; ocamlopt -c -for-pack P p.ml
cd p; ocamlopt -c -for-pack P pp.ml
cd p; ocamlopt -pack -o ../p.cmx p.cmx pp.cmx
ocamlopt -o t.native p.cmx t.ml
./t.byte
P.Pp.f ()
P.P .f ()
./t.native
P.Pp.f ()
make: *** [all] Segmentation fault

File attachments

@vicuna
Copy link
Author

vicuna commented Aug 23, 2011

Comment author: Julien Signoles

Seem to be the same bug than #4080.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant