Skip to content

Assocative Array length causes segv when using base classes as key #175

@sumo

Description

@sumo

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.

/lib64/libpthread.so.0[0x3654a0efe0]
/lib/libphobos-ldc.so.60(_aaLen+0x1a)[0x7fa5794dd94a]
bin/Unittest/HW[0x41cec8]
bin/Unittest/HW[0x41c037]
bin/Unittest/HW[0x41f17f]
bin/Unittest/HW[0x41f399]
/lib/libphobos-ldc.so.60(+0x2c7bee)[0x7fa5794b6bee]
/lib/libphobos-ldc.so.60(_D2rt5minfo17moduleinfos_applyFMDFKPS6object10ModuleInfoZiZi+0x85)[0x7fa5794e1745]
/lib/libphobos-ldc.so.60(_D6object10ModuleInfo7opApplyFMDFKPS6object10ModuleInfoZiZi+0x1d)[0x7fa5794c876d]
/lib/libphobos-ldc.so.60(runModuleUnitTests+0xf8)[0x7fa5794b6938]
/lib/libphobos-ldc.so.60(+0x30e305)[0x7fa5794fd305]
/lib/libphobos-ldc.so.60(+0x30e25a)[0x7fa5794fd25a]
/lib/libphobos-ldc.so.60(main+0x18e)[0x7fa5794fd1ce]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x3654621735]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions