FS#17104 - [nzbget] segfault error in libpar2 since upgrade to 0.6.0-3

Attached to Project: Community Packages
Opened by Antoine (nin2jardin) - Thursday, 12 November 2009, 06:26 GMT
Last edited by Dan Griffiths (Ghost1227) - Friday, 13 November 2009, 23:59 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Since upgrade to nzbget 0.6.0-3, I got an error in /var/log/kernel.log at each start of nzbget :

Nov 11 15:09:22 arch kernel: nzbget[1673]: segfault at 0 ip b74f8cb6 sp b598fac0 error 4 in libpar2.so.0.0.1[b74c6000+3f000]

I use the exemple script given with nzbget.
nzbget put on hold because it is starting do do a par-check.
The par-check starts and then I get the error and nzbget exits.
The installation is on a NAS with a rc.d script to start it :

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID /usr/bin/nzbget`
case "$1" in
start)
stat_busy "Starting NZBGet Daemon"
[ -z "$PID" ] && /usr/bin/nzbget -D >>/var/log/nzbget.log 2>&1
if [ $? -gt 0 ]; then
stat_fail
else
PID=`pidof -o %PPID /usr/bin/nzbget`
echo $PID >/var/run/nzbget.pid
add_daemon nzbget
stat_done
fi
;;
stop)
stat_busy "Stopping NZBGet Daemon"
[ ! -z "$PID" ] && kill $PID &>/dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon nzbget
stat_done
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
This task depends upon

Closed by  Dan Griffiths (Ghost1227)
Friday, 13 November 2009, 23:59 GMT
Reason for closing:  Not a bug
Comment by Antoine (nin2jardin) - Thursday, 12 November 2009, 08:44 GMT
More info :

I forced re-install of libpar2 : same problem.
When I try to launch "nzbget -D" it doesn't start whereas it starts with the init script.
Comment by Antoine (nin2jardin) - Thursday, 12 November 2009, 08:46 GMT
I removed from the queue the file which hang the par-checking, but nzbget still tries to check the file at startup...
Comment by Antoine (nin2jardin) - Friday, 13 November 2009, 13:08 GMT
After clearing all cache, temp and queues and removing the waiting nzb and restarting nzbget all is working well.
I think libpar2 was trying to check/repair a file that was no more present on the disk => it was my fault and I don't think it's a bug.

Sorry for disturbing.

Loading...