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

remove copy_file_range (eliminates seg fault on many systems.) #183

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

petersilva
Copy link
Contributor

closes #111

In #111, there are segmentation faults on ubuntu 24.04. I do not know why. This routine accepts file descriptors... and those descriptors need to be subsequently closed, so the file will be published when the close happens anyways. There is no need for this entry point.

When I remove this routine, stuff stops crashing. One possibility is that calculating the checksum involves reading the file again, possibly opening and re-closing it. just a guess. I hope I am not just masking the problem by removing a simple cause, but the change is good anyways.

In #111, there are segmentation faults on ubuntu 24.04. I do not know
why. This routine accepts file descriptors... and those descriptors
need to be subsequently closed, so the file will be published when the
close happens anyways. There is no need for this entry point.

When I remove this routine, stuff stops crashing. One possibility is
that calculating the checksum involves reading the file again, possibly
opening and re-closing it. just a guess. I hope I am not just masking
the problem by removing a simple cause, but the change is good anyways.
@petersilva petersilva changed the title remove file_copy_range (eliminates seg fault on many systems.) remove copy_file_range (eliminates seg fault on many systems.) Nov 18, 2024
@petersilva petersilva merged commit 06b92cc into development Nov 21, 2024
23 of 24 checks passed
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.

test_shim_post coredump on later ubuntu versions.
2 participants