-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 segmentation fault #9156
Comments
The problem is that This limitation should be documented, and |
I'd like to pick this one up if no one has done it yet. |
@sonologico feel free! One further option to work on this issue would be to change the sources of |
@gasche, your suggestion (so that it happens less often) combined with what @damiendoligez suggested (so that ocamldebug handles and reports it better when it does happen) sound like the way to go |
Given that ocamldebug is an executable (so uses all its modules), might a pack be better - there’d only be a single module name (OCamlDebugWhyOnEarthDidYouCallYourPrinterThis 🙂) - I think that’d be entirely a |
Since everyone is proposing their approach, let me add mine :-) I agree with @damiendoligez that the first thing to do is debug and fix the existing safeguard. In the example shown in the original report, the second Later, to lift the name conflicts, yet another possibility is to look at how the toplevel REPL ( |
Hah - I'd figured using expunge would be more complicated! Is that not the case? |
Maybe packing is simpler, in which case we could consider it for the toplevel REPL as well in replacement of expunge. My point is that |
FWIW, a variation of this approach is used by For example, the debugger modules would be compiled to
|
Yes, Dune is implementing the poor-man namespace system by automatically prefixing module with module aliases this way. In this case I suggested doing it manually, because it makes the build system much easier (to retrofit as a Makefile). Re. other options: I had understood that we were trying to get rid of |
Sure, but we haven't got rid of |
For transparency: I'm done with deadlines that got shifted around and should get back to this tomorrow. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
This fell from the back of my mind, because the discussion wasn't going anywhere on #9621. Looking at it now, it seems like everyone is ok with |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
This should have been fixed by #9621. |
I have found a situation when a segmentation fault occurs during an
ocamldebug
session.If I take a simple
main.ml
program like this:and compile it:
and start a
ocamldebug
session:Am I doing something wrong or is this a bug in
ocamldebug
?The text was updated successfully, but these errors were encountered: