Skip to content
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

Circular references causes the assembly scanner to crash #4771

Closed
andreasohlund opened this issue Jun 1, 2017 · 1 comment
Closed

Circular references causes the assembly scanner to crash #4771

andreasohlund opened this issue Jun 1, 2017 · 1 comment
Labels
Milestone

Comments

@andreasohlund
Copy link
Member

andreasohlund commented Jun 1, 2017

Symptoms

When there are two assemblies that reference each other, assembly scanning crashes with a System.StackOverflowException.

Who's affected

All v6 users that have assemblies with circular references in their bin folders

Backported to

Original bug report

While this is an edge case it is true for SharePoint. ie

Microsoft.SharePoint references Microsoft.SharePoint.Search
Microsoft.SharePoint.Search reference Microsoft.SharePoint

Repro from client https://github.com/BenHGeier/nServiceBusWithSP/

@andreasohlund andreasohlund added this to the 6.3.3 milestone Jun 1, 2017
@andreasohlund andreasohlund changed the title Circular references causes the assembly scanner to crash with a StackOverflow exception Circular references causes the assembly scanner to crash Jun 1, 2017
@andreasohlund
Copy link
Member Author

I've confirmed that 6.0 doesn't have this issue since we do a similar check here https://github.com/Particular/NServiceBus/blob/support-6.0/src/NServiceBus.Core/Hosting/Helpers/AssemblyScanner.cs#L363

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant