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

Fixes MemoryMappedFile related segfault with dnvm #1876

Merged
merged 3 commits into from Jun 16, 2015

Conversation

esdrubal
Copy link
Contributor

Changed MemoryMappedFile related code to use reference source
MemoryMappedViewAccessor and MemoryMappedViewStream.

This change was motivated by segmentations faults while dnmv code was
calling a CoreFX class that uses reflection to call MemoryMappedFile
code.

Now that we are using more code from reference sources there should be
no problem.

Fixes segmentation fault when mono_mmap_open_handle is called with a null mapName argument.
MemoryMappedFiles.CreateFromFile calls mono_mmap_open_handle, .NET implementation accepts a null mapName and CoreFX uses CreateFromFile with null mapName.

Fixes #30741 and #30825.

Changed MemoryMappedFile related code to use reference source
MemoryMappedViewAccessor and MemoryMappedViewStream.

This change was motivated by segmentations faults while dnmv code was
calling a CoreFX class that uses reflection to call MemoryMappedFile
code.

Now that we are using more code from reference sources there should be
no problem.

Fixes #30741 and #30825.
Fixes segmentation fault when mono_mmap_open_handle is called with a null mapName argument.
MemoryMappedFiles.CreateFromFile calls mono_mmap_open_handle, .NET implementation accepts a null mapName and CoreFX uses CreateFromFile with null mapName.

Fixes #30825 and #30741.
@borgdylan
Copy link
Contributor

Please merge this into master. It makes the latest mono code usable on i386.

Commented out PointerOffset asserts because its value is always 0.
Unlike .NET mono implementation creates MemoryMappedViews with no
PointerOffset.
esdrubal added a commit that referenced this pull request Jun 16, 2015
Fixes MemoryMappedFile related segfault with dnvm
@esdrubal esdrubal merged commit 7f3b76a into mono:master Jun 16, 2015
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fixes MemoryMappedFile related segfault with dnvm

Commit migrated from mono/mono@7f3b76a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants