kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
Delta-FM
Posts:4
Joined:Tue Sep 29, 2009 10:07 am
AV Hardware:Yamaha RX-V3800
kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by Delta-FM » Tue Sep 29, 2009 6:36 pm

Hi,

I am trying to get TwonkyMediaServer working on a Fedora 11 PC. Up to now I have tried two version 4.4.11 and 5.0.68 but both versions give a segmentation fault :( (from /var/log/messages: Sep 28 20:58:09 <machinename> kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806a39b sp b7fa7fe4 error 6 in twonkymediaserver[8048000+6b000]).

Is there a solution? :?: :?: :?:

User avatar
mgillespie
Posts:1222
Joined:Fri Jul 08, 2005 1:19 pm
AV Hardware:TwonkyMedia AV UPnP Mediaserver (Marvell Kirkwood ARM Sheevaplug with Debian Squeeze).
2x Noxon V2 audio client
1x PS3 Slim 500GB Audio/Video UPnP client.
1x Sony VGF-CP1 Wireless Photoframe.
Location:UK

Re: kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by mgillespie » Tue Sep 29, 2009 10:33 pm

I used to see similar problems on my ARM system, and managed to narrow it down to the convert plugin, and some missing runtime dependencies, however the problem went away, as I suspect some other application update brought in the missing libraries or dependencies.

have you tried renaming convert and see if the server starts? Does it segfault instantly on startup?
Please note: Moderators here are voluntary and do not work for PacketVideo or Twonky, please do not attack us. Any posts are personal opinion, and may not be those of PV/Twonky.

Delta-FM
Posts:4
Joined:Tue Sep 29, 2009 10:07 am
AV Hardware:Yamaha RX-V3800

Re: kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by Delta-FM » Wed Oct 14, 2009 7:31 pm

Thanks for your answer and sorry for my late response, I did not have the notification switched on :oops: .

I do not see a 'convert' plugin, the only plugins I see are (in the plugin dir):
  • itunes-import
    itunes-import.plugin
    shoutcast-import
    shoutcast-import.plugin
But... meanwhile I narrowed the problem down to being not 'root'. So Twonky will run properly when started as root (but certainly I will not do that normally). I would like to run Twonky as user 'twonky', so the ownership of the files is transferred but this is not enough obviously. What am I missing?

User avatar
mgillespie
Posts:1222
Joined:Fri Jul 08, 2005 1:19 pm
AV Hardware:TwonkyMedia AV UPnP Mediaserver (Marvell Kirkwood ARM Sheevaplug with Debian Squeeze).
2x Noxon V2 audio client
1x PS3 Slim 500GB Audio/Video UPnP client.
1x Sony VGF-CP1 Wireless Photoframe.
Location:UK

Re: kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by mgillespie » Wed Oct 14, 2009 7:43 pm

I just tried running mine as a user, and did not have any issues. By default the server tries to access /var/twonkymedia Does the Twonky user have full access to this directory?

You might also want to relocate everything from /var/twonkymedia by using the -appdata commandline switch.
perhaps give it the same directory as where the twonkymedia executable is located.

If you do come across more details of the problem, i'm sure the Twonky engineers would be interested in knowing, so please post any results here.
Please note: Moderators here are voluntary and do not work for PacketVideo or Twonky, please do not attack us. Any posts are personal opinion, and may not be those of PV/Twonky.

Delta-FM
Posts:4
Joined:Tue Sep 29, 2009 10:07 am
AV Hardware:Yamaha RX-V3800

Re: kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by Delta-FM » Wed Oct 14, 2009 8:15 pm

The dir /var/twonkymedia did not exist indeed, I created it and gave the access rights to user 'twonky' but nothing changed.

I've started Twonky using 'strace' but it does give me any clue, may be you or someone else?

Code: Select all

bash-4.0$ /usr/bin/strace /usr/bin/twonky/twonkymedia -inifile /usr/bin/twonky/twonkymedia.ini
execve("/usr/bin/twonky/twonkymedia", ["/usr/bin/twonky/twonkymedia", "-inifile", "/usr/bin/twonky/twonkymedia.ini"], [/* 21 vars */]) = 0
brk(0)                                  = 0x900b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=67442, ...}) = 0
mmap2(NULL, 67442, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfe3000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\251\227\0004\0\0\0\350"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=140408, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x8b5000
mmap2(0x976000, 106976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x976000
mprotect(0x98c000, 4096, PROT_NONE)     = 0
mmap2(0x98d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0x98d000
mmap2(0x98f000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x98f000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\213~\0004\0\0\0\354"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1803428, ...}) = 0
mmap2(0x7d2000, 1509672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x110000
mmap2(0x27b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16b) = 0x27b000
mmap2(0x27e000, 10536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x27e000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xe2f000
set_thread_area({entry_number:-1 -> 6, base_addr:0xe2f6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x27b000, 8192, PROT_READ)     = 0
mprotect(0x98d000, 4096, PROT_READ)     = 0
mprotect(0x7ce000, 4096, PROT_READ)     = 0
munmap(0xfe3000, 67442)                 = 0
set_tid_address(0xe2f728)               = 10401
set_robust_list(0xe2f730, 0xc)          = 0
futex(0xbfd60f10, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xbfd60f10, 0x189 /* FUTEX_??? */, 1, NULL, bfd60f20) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x97a340, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x97a840, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="computername", ...}) = 0
clone(TwonkyMedia Version 4.4.11
LOG_SYSTEM: reading ini file: "/usr/bin/twonky/twonkymedia.ini".
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xe2f728) = 10402
exit_group(0) 
Also with the -appdata option ( /usr/bin/twonky/twonkymedia -inifile /usr/bin/twonky/twonkymedia.ini -appdata /usr/bin/twonky/), Twonky will not work. :(

Is there a debug option in Twonky?

User avatar
mgillespie
Posts:1222
Joined:Fri Jul 08, 2005 1:19 pm
AV Hardware:TwonkyMedia AV UPnP Mediaserver (Marvell Kirkwood ARM Sheevaplug with Debian Squeeze).
2x Noxon V2 audio client
1x PS3 Slim 500GB Audio/Video UPnP client.
1x Sony VGF-CP1 Wireless Photoframe.
Location:UK

Re: kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by mgillespie » Mon Oct 19, 2009 6:59 pm

only the -v 4095 option. (or adding v=4095 to the INI file).
Please note: Moderators here are voluntary and do not work for PacketVideo or Twonky, please do not attack us. Any posts are personal opinion, and may not be those of PV/Twonky.

Delta-FM
Posts:4
Joined:Tue Sep 29, 2009 10:07 am
AV Hardware:Yamaha RX-V3800

Re: kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by Delta-FM » Fri Oct 23, 2009 5:58 pm

Meanwhile I found it... :oops: On one of the sub-dirs I accidentally removed the 'x' permission...

User avatar
mgillespie
Posts:1222
Joined:Fri Jul 08, 2005 1:19 pm
AV Hardware:TwonkyMedia AV UPnP Mediaserver (Marvell Kirkwood ARM Sheevaplug with Debian Squeeze).
2x Noxon V2 audio client
1x PS3 Slim 500GB Audio/Video UPnP client.
1x Sony VGF-CP1 Wireless Photoframe.
Location:UK

Re: kernel: twonkymediaserv[14856]: segfault at b7fa7fe0 ip 0806

Post by mgillespie » Fri Oct 23, 2009 6:42 pm

Delta-FM wrote:Meanwhile I found it... :oops: On one of the sub-dirs I accidentally removed the 'x' permission...
On one of the folders in the Twonkymedia application directory?

Just tried reproducing this problem here, and I can't get it to do it by removing the execute permission here..

Code: Select all

root@sheeva:/usr/local/twonkymedia# chmod -Rc -x cgi-bin/
root@sheeva:/usr/local/twonkymedia# chmod -Rc -x resources/
root@sheeva:/usr/local/twonkymedia# chmod -Rc -x plugins/
root@sheeva:/usr/local/twonkymedia# ./twonkymediaserver
TwonkyMedia Version 5.1.1-RC2
using logfile /tmp/TwonkyMediaServer-log.txt

For image conversion and scaling the TMS utilizes ImageMagick. For details on the license please see ./cgi-bin/convert-readme.txt

Please note: Moderators here are voluntary and do not work for PacketVideo or Twonky, please do not attack us. Any posts are personal opinion, and may not be those of PV/Twonky.

Locked