Skip to content

[BUG] Cannot catch RMM exceptions thrown across DSO boundaries #1652

@wence-

Description

@wence-

Describe the bug

Since #1644, the default symbol visibility for RMM is hidden.

This is a good thing, however, the stick was applied a bit too aggressively.

In particular: exception classes need to have default visibility if we want to be able to catch an error thrown from DSO-A in DSO-B (otherwise the linker won't have disambiguated the names and the typeinfos will not compare equal).

I'm also worried that we probably need to mark all public non-template classes as RMM_EXPORT as well, since again, the two classes will not be the same (though will at least be ABI compatible) when passed between DSOs.

Metadata

Metadata

Assignees

Labels

2 - In ProgressCurrently a work in progressbugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions