-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
Buffer overflow rtorrent 0.9.8 #1290
Comments
Can you compile libtorrent/rtorrent from master branch? |
I tried to compile master branch but I am not able to complete the configure because I get the following error: .in'ig.status: error: cannot find input file: ` EDIT: I was able to solve the .in'ig status issue. It turns out that for some reason the line endings on my Ubuntu 24.04 had to be fixed... after running dos2unix on the configure.ac it is able to do the configuration. However, now when compiling I get a lot of errors like here: #1273 Though I think libtorrent is correctly compiled and installed. |
Ok, after some trial error I was able to compile. libtorrent was not installed correctly. Actually my struggle was that I installed from official ubuntu PPA a version of rtorrent that got conflicted. So after I removed every trace of rtorrent, and recompiled everything in order all worked. Just a side note: for some reason I had to run dos2unix on every automake/autoconfig file (otherwise I was getting random autoconf errors). I used the following commands from the rtorrent/libtorrent directory:
after that |
Hello, So please follow what I did to build libtorrent and rtorrent. It's my first build like that so any feedback are welcome :) i'm waiting the next crash (if it's happen)
Prepare working directory and dependancy
Build libtorrent
Build rtorrent
Configure rTorrent with support of libtorrent and xmlrpc-c
Use compiled version of libtorrent and rtorrent
Ensure the compiled version is prioretized
|
Hello; I crash again.
|
So I experienced this issue only on Ubuntu 24.04.01 (i.e. Noble). Based on this issue report: https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110 together with some debug logging I traced the issue down to this line: rtorrent/src/utils/lockfile.cc Line 101 in d067bd8
Which was of course a slight reinventing of the wheel as this fas fixed in this commit: 92bec88 So if you compile latest master correctly I think your issue should be resolved. |
Hi Abasz, Unfortunatly at some point it crash,whereas I build with the last master 9a93281
As you can see the patch is there
Look the issue is elsewhere ? Regards |
Its the same error the above patch sopposed to fix. But I cannot reproduce this. |
Ok thx, I have rebuild with debug symbol and running in GDB, let's see when it crash |
I got this backtrace
|
That it now crashes another place is suspicious, as running it in gdb would change how the program is loaded/initialized into memory. So it isn't a bug in the handshake code, my suspicion is either corrupt physical memory or a bug in the linker or something like that. BTW, make sure that what you got above was a segfault and not a SIGPIPE. So do the following before run:
|
Please find the output, I set the GDB value you've mentioned
I have no core file so I set 'ulimit -c unlimited' to see if I can generate a core How can I help more ? |
I'll have to add better logging of handshake events to debug this, so it's going to take a bit of time. |
Ok I'll be there to help for debugging if needed. |
Hello,
My rtorrent client crash sporadicaly on Debian 12
Please let me know how can I help on this by providing more helpful trace
Regards
The text was updated successfully, but these errors were encountered: