Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am receiving this error periodically (and the daemon crashes) when running lots of rTorrent daemons with lots of files, could someone please tell me what is causing this and how to fix it? rTorrent has quite a few tickets with the same errors on high load machines, however they seem to keep closing the tickets as "invalid" :( I am using Ubuntu 12.04:

Caught Segmentation fault, dumping stack:
0 rtorrent() [0x411d15]
1 rtorrent() [0x443260]
2 /lib/x86_64-linux-gnu/libc.so.6(+0x364c0) [0x7f9cc4f404c0]
3 /usr/lib/libtorrent.so.14(_ZN7torrent9PollEPoll7performEv+0xd4) [0x7f9cc6127fc4]
4 rtorrent() [0x443ee0]
5 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f9cc683ae9a]
6 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f9cc4ffc4bd]

I think it could be related to the number of available file descriptors or the available RAM, however both seem to be in good shape,

root@sb7:~# free -mt
             total       used       free     shared    buffers     cached
Mem:         24164      24041        122          0        137      22033
-/+ buffers/cache:       1870      22293
Swap:        29998        689      29309
Total:       54163      24731      29431

I am not entirely sure how to find out how many open file descriptors I have, ulimits and other commands keep giving me different results D: varies between 1024 and 2.5 million

other possible cause: iowait is quite high I think? :

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           1.05    0.00    2.64   18.10    0.00   78.21

Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
sda             246.89         9.54         1.49   22562358    3525678
sdb              67.92         4.34         1.53   10273673    3615723
share|improve this question

closed as off topic by Eliah Kagan, hexafraction, John S Gruber, jokerdino, Tom Brossman Oct 1 '12 at 21:07

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

Can you give a link to some of the bug reports? –  hexafraction Oct 1 '12 at 0:02
it's not a bug with Ubuntu, the same thing seems to happen on BSD and OS X –  King Oct 1 '12 at 0:03
It's not because of back stacktraces. Please clearly read the recommendation not to touch the file limit, but to use ulimit. –  hexafraction Oct 1 '12 at 0:11
Since this is apparently (possibly) not a bug after all, I think we should reopen it. @ObsessiveFOSS Plenty of questions on Ask Ubuntu would also apply to one or more other operating systems. We do not have a policy of closing questions for being too general; so long as a question is about Ubuntu, it can be about something bigger than Ubuntu too and that's not a problem. –  Eliah Kagan Oct 3 '12 at 1:09

Browse other questions tagged or ask your own question.