-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
jesec-rtorrent: Add patch to prevent segfault #244416
jesec-rtorrent: Add patch to prevent segfault #244416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this patch be upstreamed?
@@ -21,6 +21,10 @@ stdenv.mkDerivation rec { | |||
hash = "sha256-i7c1jSawHshj1kaXl8tdpelIKU24okeg9K5/+ht6t2k="; | |||
}; | |||
|
|||
patches = [ | |||
./avoid-stack-overflow-for-lockfile-buf.patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./avoid-stack-overflow-for-lockfile-buf.patch | |
./000-avoid-stack-overflow-for-lockfile-buf.patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't even a convention we use, though... why waste maintainer bandwidth on such a tiny change? (Also: see below, fetchpatch
could have been used instead.)
I’ve submitted a PR to the upstream project, this patch is from that PR. I expect it will be accepted, as the equivalent was accepted into rakshasa-rtorrent. If it isn’t I’ll post an update here. |
@AndersonTorres I'd appreciate it if you'd have waited until this PR has been open for at least 24 hours, so I could have seen this and suggested a worthwhile change (using I don't do this to packages I maintain with someone else, so I'd appreciate it if you gave me the same courtesy. |
The upstream PR was changed slightly so as to preserve author information. |
There's a better way to do this even now, @vamega. I'm going to test + make a cleaner PR. |
Just to be clear, you mean a cleaner PR upstream, or just to nixpkgs? |
Just to Nixpkgs :) |
Sorry, my mistake. |
The patch landed upstream. |
Time to fetch unstable, then! |
There's no point in doing that... I need to sort out a few things, then I'll PR a clean up for this. |
We really shouldn't rely on unstable versions if we can get away with not doing it... (which in this case, for a one line patch, we absolutely can). 😕 |
So, a few things: It turns out that the original upstream patch (rakshasa/rtorrent@92bec88) can't be cleanly applied to jesec's tree (or at least, the tag we pull now) as I thought, so this route was probably the best to go at the time. @vamega, thank you for the PR, and apologies that your notifications have blown up a tad from me here. Out of curiosity, did this issue just manifest in unstable? I can't reproduce from a Nixpkgs version in early July, so I imagine we bumped GCC or toggled some hardening setting (as mentioned in the upstream PR) that caused this to manifest. Nonetheless, thank you for spotting this and fixing it. @AndersonTorres, while I appreciate the quick merge fixing (from what I can tell) a pretty major issue, I'd rather you at least wait for me to review it as a co-maintainer of the package. I admit I'm not the easiest person to get a hold of nowadays, most of which is my fault, but I'm going to try to fix my inbox a bit/curb my GitHub notifications so things that need to reach me do so promptly. But please do at least give me 24 hours or so to respond 🙁 I also don't really understand your push to want to fetch an unstable version of rTorrent -- as software that could go deleting a ton of files that people definitely don't want deleted, I'm not a fan of the prospect of pushing an unstable tag unless we really have to. I'd appreciate it if you could explain your thought process regarding that, just for my understanding if nothing else. Happy to clarify any of the above if needed, just let me know. Thanks. |
Nothing special. I just thougth it would be easier to fetch the git head of jesec-rtorrent than to fetch a patch. |
@winterqt, yes this issue did appear in unstable. I saw a core dump and the service failed to start. I knew the original patch couldn't cleanly be applied, which is why I had taken this approach. The jesec upstream has now accepted a patch that preserves the original authorship. It's probably possible to fetch and apply https://github.com/jesec/rtorrent/commit/8c426e55e2adb3a4a81239188e8a260e8e163106.patch if we want to use a tagged version until a new release is tagged. |
Description of changes
I've submitted the attached patch upstream. jesec/rtorrent#67
This prevents a core dump that started to happen recently (I updated last about a week ago).
As mentioned, the original patch is from: rakshasa/rtorrent#1169.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)