rtorrent from optware - Seg Fault?
Forum » Forum / Optware » rtorrent from optware - Seg Fault?
started by: mmeytinmmeytin
on: 1203701076|%e %b %Y, %H:%M %Z|agohover
number of posts: 11
rss icon RSS: new posts
rtorrent from optware - Seg Fault?
mmeytinmmeytin 1203701076|%e %b %Y, %H:%M %Z|agohover

I'd like to use rtorrent to enable bitrorrent support on on MBWE. Used optware to install the package, which seemed to work. It also pulled all the supporting packages. I created my .rtorrent.rc file, but no matter what I try, I get Segmentation Fault error:

[mmeytin@SAN ~]$ rtorrent
Caught Segmentation fault, dumping stack:
Stack dump not enabled.
Aborted
[mmeytin@SAN ~]$

Running with strace shows the following output (the tail portion):

getpid() = 29068
brk(0x154000) = 0x154000
open("/home/mmeytin/.rtorrent.rc", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbe880224) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x155000) = 0x155000
brk(0x156000) = 0x156000
close(4) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_DFL}, {0x54668, [SEGV], SA_RESTART|0x4000000}, 8) = 0
write(1, "Caught Segmentation fault, dumpi"…, 42Caught Segmentation fault, dumping stack:
) = 42
write(1, "Stack dump not enabled.\n", 24Stack dump not enabled.
) = 24
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
getpid() = 29068
kill(29068, SIGABRT) = 0
--- SIGABRT (Aborted) @ 0 (0) ---

+++ killed by SIGABRT +++

I may be missing something obvious - any ideas on what could be causing this? Thanks in advance for any help!

-M-

last edited on 1203701721|%e %b %Y, %H:%M %Z|agohover by mmeytin + show more
unfold rtorrent from optware - Seg Fault? by mmeytinmmeytin, 1203701076|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
kevkukevku 1203702354|%e %b %Y, %H:%M %Z|agohover

1. log in as root
2. start screen
3. do the export ld libary thing
4. start rtorrent

unfold Re: rtorrent from optware - Seg Fault? by kevkukevku, 1203702354|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
tolsistolsis 1203713099|%e %b %Y, %H:%M %Z|agohover

Regardeless of what's been said in
other posts .bashrc is being read! So if you want this
permanent stick your extra library path there and extra binary paths
eg /opt/bin. Adding it to .profile does not work for me.

unfold Re: rtorrent from optware - Seg Fault? by tolsistolsis, 1203713099|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
sankasanka 1204226753|%e %b %Y, %H:%M %Z|agohover

I have the same problem as mmeytin.

I bought an MyBookWorld 500GB today. Enabled sshd. Installed ipkg and used that to install screen and rtorrent.
I added the opt lib path to the PATH in both /etc/profile and /root/.bashrc

export PATH=$PATH:/opt/bin

I had to run ldconfig after installing rtorrent due some missing libs.

Now I have segfaults. Anyone got a clue?

last edited on 1204335187|%e %b %Y, %H:%M %Z|agohover by sanka + show more
unfold Re: rtorrent from optware - Seg Fault? by sankasanka, 1204226753|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
sankasanka 1204335111|%e %b %Y, %H:%M %Z|agohover

okay found the solution. It was still related to libs unable to found.

add this to the .bashrc of the root user

export LD_LIBRARY_PATH=.:/opt/lib:/opt/usr/lib:/opt/usr/local/lib
last edited on 1204335152|%e %b %Y, %H:%M %Z|agohover by sanka + show more
unfold Re: rtorrent from optware - Seg Fault? by sankasanka, 1204335111|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
sjbowdensjbowden 1204349119|%e %b %Y, %H:%M %Z|agohover

A better way is to make a file called /etc/ld.so.conf

In it, put this:

opt/lib:/opt/usr/lib:/opt/usr/local/lib

Then run ldconfig

last edited on 1204349134|%e %b %Y, %H:%M %Z|agohover by sjbowden + show more
unfold Re: rtorrent from optware - Seg Fault? by sjbowdensjbowden, 1204349119|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
sankasanka 1204386518|%e %b %Y, %H:%M %Z|agohover

I assume you mean:

/opt/lib:/opt/usr/lib:/opt/usr/local/lib

But the thing is that I already had the /opt/lib (the only existing directory) in ld.so.conf, did a ldconfig it was not working. Now I added this the to .bashrc and rtorrent works like a charm!

last edited on 1204387231|%e %b %Y, %H:%M %Z|agohover by sanka + show more
unfold Re: rtorrent from optware - Seg Fault? by sankasanka, 1204386518|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
bzhoubzhou 1204391097|%e %b %Y, %H:%M %Z|agohover

I don't think /opt/usr/lib and /opt/usr/local/lib are needed for optware.

last edited on 1204396870|%e %b %Y, %H:%M %Z|agohover by bzhou + show more
unfold Re: rtorrent from optware - Seg Fault? by bzhoubzhou, 1204391097|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
RusconiRusconi 1227548556|%e %b %Y, %H:%M %Z|agohover

Hi, I do everifing you write in this post ( /opt/usr/lib and /opt/usr/local/lib does not exist in my MBWE) but when I type rtorrent:

getpid() = 2641
brk(0x155000) = 0x155000
open("/root/.rtorrent.rc", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbe9ef174) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x156000) = 0x156000
brk(0x157000) = 0x157000
close(4) = 0
'- SIGSEGV (Segmentation fault) @ 0 (0) -
rt_sigaction(SIGSEGV, {SIG_DFL}, {0x54678, [SEGV], SA_RESTART|0x4000000}, 8) = 0
write(1, "Caught Segmentation fault, dumpi"…, 42) = 42
write(1, "Stack dump not enabled.\n", 24) = 24
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
getpid() = 2641
kill(2641, SIGABRT) = 0
'- SIGABRT (Aborted) @ 0 (0) -
'+++ killed by SIGABRT +++

Any idea?
I've 2.00.18 firmware version..

last edited on 1227548822|%e %b %Y, %H:%M %Z|agohover by Rusconi + show more
unfold Re: rtorrent from optware - Seg Fault? by RusconiRusconi, 1227548556|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
kevkukevku 1227553469|%e %b %Y, %H:%M %Z|agohover

read the 2nd post.

unfold Re: rtorrent from optware - Seg Fault? by kevkukevku, 1227553469|%e %b %Y, %H:%M %Z|agohover
Re: rtorrent from optware - Seg Fault?
RusconiRusconi 1227605115|%e %b %Y, %H:%M %Z|agohover

I do it but same result.
Thanks

unfold Re: rtorrent from optware - Seg Fault? by RusconiRusconi, 1227605115|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License