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

ocamldebug raises remap problem on cygwin #5413

Closed
vicuna opened this issue Dec 1, 2011 · 9 comments
Closed

ocamldebug raises remap problem on cygwin #5413

vicuna opened this issue Dec 1, 2011 · 9 comments
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 1, 2011

Original bug ID: 5413
Reporter: berry
Assigned to: @damiendoligez
Status: closed (set by @xavierleroy on 2012-09-25T18:07:21Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)
Related to: #5400

Bug description

when calling ocamldebug and running a program, I get

(ocd) run
Loading program... 1 [main] ocamlrun 1624 C:\cygwin\bin\ocamlrun.exe: ***
fatal error - unable to remap \?\C:\cygwin\lib\ocaml\stublibs\dllunix.so to sam
e address as parent: 0x6ECD0000 != 0x0
Stack trace:
Frame Function Args
0028B578 6102796B (0028B578, 00000000, 00000000, 00000000)
0028B868 6102796B (6117EC60, 00008000, 00000000, 61180977)
0028C898 61004F1B (611A7FAC, 61243884, 6ECD0000, 00000000)
End of stack trace
2 [main] ocamldebug 1484 fork: child 1624 - died waiting for dll loading,
errno 11
Unix error : 'fork' failed : Resource temporarily unavailable
(ocd)

I found a few posts on the Web, including one here without reply. They tell to run rebaseall on cygwin and reboot, I did it with no effect.

Best regards,
Gérard Berry

@vicuna
Copy link
Author

vicuna commented Dec 15, 2011

Comment author: Kakadu

Same problem on my machine.

$ ./brb.byte build
Cannot find FLEXDLL_RELOCATE
Cannot find FLEXDLL_RELOCATE
2 [main] ocamlrun 3156 E:\cygwin\usr\local\bin\ocamlrun.exe: *** fatal error - unable to remap \?\E:\cygwin\usr\local\lib\ocaml\stublibs\dllunix.so to same address as parent: 0x665C0000 != 0x0
Stack trace:
Frame Function Args
0022B5B8 6102796B (0022B5B8, 00000000, 00000000, 00000000)
0022B8A8 6102796B (6117EC60, 00008000, 00000000, 61180977)
0022C8D8 61004F1B (611A7FAC, 61243594, 665C0000, 00000000)
End of stack trace
2 [main] brb.byte 3696 fork: child 3156 - died waiting for dll loading, errno 11
Fatal error: exception Unix.Unix_error(2, "fork", "")

@vicuna
Copy link
Author

vicuna commented Dec 15, 2011

Comment author: @damiendoligez

This looks like a known problem with flexdll 0.25, which affects the OCaml Cygwin package. But that is version 3.12.0 and not 3.12.1.

The Cygwin package will soon be updated to 3.12.1 without the bug.

@vicuna
Copy link
Author

vicuna commented Dec 20, 2011

Comment author: @xavierleroy

The OCaml 3.12.1 package seems to be available in Cygwin now. Could you please upgrade in Cygwin and let us know if the problem persists?

@vicuna
Copy link
Author

vicuna commented Dec 20, 2011

Comment author: berry

OK, I loaded 3.12.1 from another site (mirrors do not seem all up-to-date). Now comes something different:

berry@apsara ~

ocamldebug

Fatal error: exception Invalid_argument("inet_addr_of_string not implemented")

@vicuna
Copy link
Author

vicuna commented Dec 20, 2011

Comment author: Kakadu

berry: same for me
ocaml irc says that

... maybe missing headers or your install of cygwin could be updated

@vicuna
Copy link
Author

vicuna commented Dec 20, 2011

Comment author: berry

My cygwin install was done yesterday, so it is something else...

@vicuna
Copy link
Author

vicuna commented Dec 20, 2011

Comment author: @damiendoligez

OK, I have the same problem with the new cygwin package. It seems the auto-configure script did the wrong thing when building the package. I'm looking into the problem.

@vicuna
Copy link
Author

vicuna commented Dec 21, 2011

Comment author: @damiendoligez

The new cygwin package is now available (3.12.1-2). Can you try it and let me know if it works for you?
Thanks.

@vicuna
Copy link
Author

vicuna commented Dec 22, 2011

Comment author: Kakadu

fixed.

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

2 participants