Ticket #70 (closed defect: fixed)

Opened 6 years ago

Last modified 12 months ago

libtorrent gives invalid argument under OSX

Reported by: cp_future@web.de Owned by: rakshasa
Priority: normal Component: libtorrent
Version: HEAD Severity: major
Keywords: Cc:

Description

Hi there :)

I successfully compiled libtorrent 0.3.5 and rtorrent 0.7.5 under OSX 10.3.9 Unfortunately I get following error after downloading some kilobytes:


kizna:~/Documents/Torrent Vartan$ rtorrent ubuntu-5.10-preview-live-i386.iso.torrent

Caught exception from libtorrent: "Connection read fd(21,2,7) "MemoryChunk::advise(...) Invalid argument""


Restarting rtorrent fails, I'm always getting:


Caught exception from libtorrent: "MemoryChunk::advise(...) Invalid argument"


Only solution: Removing torrent :(

Attachments

osx_103.diff Download (0.7 KB) - added by rakshasa 6 years ago.
Ignore the return value

Change History

Changed 6 years ago by anonymous

  • version set to HEAD
  • severity changed from normal to major
  • milestone set to 0.8 Sodden Squirrel

Changed 6 years ago by rakshasa

I've gotten other reports about this and i wasn't able to obtain the information needed. Debugging this will require using gdb or applying a patch that prints out the interesting parameters. I'll look into writing one asap.

Changed 6 years ago by rakshasa

Having looked at the debugging information provided by another user, I think it's likely that the compiler is producing bad code. Not entirely sure but a variable that should have been pointing at the memory location for the file data chunk was instead directed at some code. This had the correct value when accessed later to print it out.

Changed 6 years ago by rakshasa

Ops, mixed up the bug reporters, the debugging information was provided by the reporter of this ticket. ;)

Changed 6 years ago by rakshasa

What looked like a compiler bug was infact a gdb bug, and thus not related to this error.

The most likely cause seems to be MacOSX's madvise system call failing with what should be valid arguments.

Changed 6 years ago by rakshasa

Ignore the return value

Changed 6 years ago by rakshasa

  • status changed from new to closed
  • resolution set to fixed

Ok, problem solved.

MacOSX 10.3 has a bug in the handling of madvise, causing it to return an error when it shouldn't. Attached a patch to fix it. Also set "hash_max_tries = 1".

Changed 19 months ago by anonymous

Well, I appreciate this very much, thanks for sharing!  http://www.modsaunas.com/Double-Bathroom-Vanities.html

Changed 18 months ago by henz

Many people love this movie for its social commentary and yet there's still some who oppose its preferances. That's too bad, because I think it really is a beautiful film. swmming pool pump ,  http://www.esleepmasters.com/Pool_Pumps_and_Filters_s/2425.htm , NotAlink

Changed 16 months ago by anonymous

Great post and now I know what to do, thank you! Actually this Blog post helped me a lot. I hope you continue writing about this kind of entry. Ruby @  Mobile Phone Tracking

Changed 15 months ago by WhiteMelon

Not all people have the same thought about this. I think this article is good and not make mo feel bored.  free business listings

Changed 14 months ago by ABCCC

Discount Herve Leger?store,the best and cheapest?  http://www.saintsjerseyscheap.com Herve Leger?in our shops.

Changed 14 months ago by anonymous

People go to graduate school for many different reasons. Some go to increase their earning potential. Some  http://blog.bitcomet.com/post/214825 want jobs that require an advanced degree. Some love what they do and want to keep doing it. Some go to graduate school to begin or continue their research into

Changed 13 months ago by anonymous

Hua 110107Going to an amusement classic short uggs park or ball game, watching a movie or television, are fun activities that help us relax, temporarily forget our problems and maybe even laugh. But they do not bring happiness, because their ugg bailey button boots positive effects end when the fun ends.  http://www.fitflopinuk.com/

Changed 13 months ago by anonymous

Many people love this movie for its social commentary and yet there's still some who oppose its preferances.  http://www.titaniumjewelryshop.us/32-titanium-necklaces  http://www.titaniumjewelryshop.us/27-cross-titanium-pendants-necklaces

Note: See TracTickets for help on using tickets.