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
Unable to debug under Cygwin (with flexdll) #5094
Comments
Comment author: @alainfrisch Yasutaka Atarashi found the cause for bad interaction between flexdll and Cygwin's fork (namely, flexdll used putenv instead of setenv). This is fixed in the current development version of flexdll and it might solve the issue reported here. Any feedback on that would be appreciated. |
Comment author: aostruszka I have just upgraded to 0.25 flexdll and builded new 3.12.0. Unfortunately the result is the same. |
Comment author: aostruszka One additional note/question about flexdll (under Cygwin). Is the -custom flag not supposed to work when ocaml has been compiled with support for flexdll? -8<---compiling findlib---- |
Comment author: atarashi At that time "the current development version" mentioned by frisch didn't mean the release version 0.25 but subversion repository. However, now my patch is included in the release version 0.26 according to ChangeLog. So, please try again. In my environment (patched flexdll and OCaml 3.12.0 on Cygwin 1.7.7), compiling findlib, including quoted command line, does not cause the error. What is "realgcc.exe"? Do you have custom configuration for gcc? |
Comment author: @damiendoligez Flexdll version 0.26 fixes this problem. |
Original bug ID: 5094
Reporter: aostruszka
Status: closed (set by @damiendoligez on 2011-05-17T14:51:02Z)
Resolution: fixed
Priority: normal
Severity: block
Version: 3.11.2
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello Team,
I have recently upgraded to 3.11.2 and would like to debug but it seems that it is impossible for Cygwin+flexdll setup (or at least I don't know how).
Configuration is:
Exemplary output:
$ cat test.ml
print_endline "Hello world!"
$ ocamlc -g -o a test.ml
$ ./a
Hello world!
$ ocamldebug ./a
Objective Caml Debugger version 3.11.2
(ocd) run
Loading program... Cannot find FLEXDLL_RELOCATE
Cannot find FLEXDLL_RELOCATE
12 [main] ocamlrun 5132 C:\cygwin\usr\local\bin\ocamlrun.exe: *** fatal error - unable to remap \?\C:\cygwin\usr\local\lib\ocaml\stublibs\dllunix.so to same address as parent: 0x665C0000 != 0x0
11 [main] ocamldebug 1752 fork: child 5132 - died waiting for dll loading, errno 11
Unix error : 'fork' failed : Resource temporarily unavailable
(ocd)
Best regards
Andrzej
The text was updated successfully, but these errors were encountered: