-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Assocative Array length causes segv when using base classes as key #175
Comments
Unfortunately, I don't have any good guess on what could be going on here, so giving you advice on where to look is a bit hard. However, if you just build your program and druntime with -g (which the latter is by default) and run it in GDB, where does the crash happen? |
Backtrace from GDB: #0 0x00007ffff61e594a in _aaLen (aa=...) from /lib/libphobos-ldc.so.60 Will I be able to debug ./dmd2/root/aav.c:_aaLen or is this code compiler only? |
Hm, are the FFmpeg bindings you mentioned available publicly? If so, could you put together a short (not necessarily minimal) test case? |
Oh, and yes, everything not in |
Have to clean up the bindings and code so will post a test case once that is done. |
Great, thanks! |
@sumo did you ever manage to get a test case for this? |
Closing for inactivity. The related code has changed quite a bit since. |
I get the following when I use a AA defined with the base class as key and derived classes added to it. I don't see this issue on DMD.
I haven't been able to produce a simple test case yet (the classes I am using are wrappers around the FFmpeg API) so I am happy to debug further with a little help on how to debug the _aaLen function.
The text was updated successfully, but these errors were encountered: