DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2012-12-07 03:05:22

hardywang
Member
Registered: 2012-12-02
Posts: 6

Segmentation fault

I installed FFP and apr-1.2.12-oarm-2.tgz, apr-util-1.2.12-oarm-1.tgz, neon-0.25.5-oarm-1.tgz, subversion-1.5.2-oarm-1.tgz, ffp-base-0.5-oarm-1.tgz. My goal is to make SVN work, and I did it. Everything worked well until I rebooted the device.

After I rebooted my DSN323 nothing works, cannot telnet. I checked ffp.log at root and I have following messages in it

**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
**** fun_plug script modded by Uli (2012-02-21 ffp@wolf-u.li) ****
Thu Dec  6 20:00:50 GMT 2012
ln -snf /mnt/HD_a2/ffp /ffp
* Running /ffp/etc/fun_plug.init ...
Segmentation fault
* Running /ffp/etc/rc ...
Segmentation fault
*  OK

Any reason why?

Thanks

Last edited by hardywang (2012-12-07 03:24:23)

Offline

 

#2 2012-12-07 05:03:30

hardywang
Member
Registered: 2012-12-02
Posts: 6

Re: Segmentation fault

I did number of attempts, the error would occur once I installed SVN and rebooted I got this error, with or without creating repostitory.

Anyone can help me to check svnserve.sh, mine is, I don't think it is right.

#!/ffp/bin/sh

# THANKS: KyleK

# PROVIDES: svnserve

. /ffp/etc/ffp.subr

REPOSITORY="/mnt/HD_a2/svn/"

name="svnserve"
command="/ffp/bin/$name"
svnserve_flags="-d -r ${REPOSITORY}"
#required_dirs=${REPOSITORY}

run_rc_command "$1"

Last edited by hardywang (2012-12-07 05:41:16)

Offline

 

#3 2012-12-07 12:15:38

scaramanga
Member
Registered: 2010-08-04
Posts: 251

Re: Segmentation fault

If you disable (chmod a-x) this start script does the system boot correctly?
And if you start it manually afterwords - does it work as expected?

If so, than the problem might be with the startup order.
run this command:

Code:

rcorder /ffp/start/*.sh

to see it. If you'd like to modify the order add

Code:

# REQUIRE: ...

directive to the startup script (if I'm not mistaken it should be provide/require not provides/requires). see the man page for rcorder for more details.


DNS-323 HW Rev. C1 FW 1.10 fun-plug 0.5
2 x WD10EARS-00Y5B1 in Standard mode (LCC set to 5 min; Aligned to 4K)
Transmission with Transmission Remote GUI

Offline

 

#4 2012-12-08 00:59:29

hardywang
Member
Registered: 2012-12-02
Posts: 6

Re: Segmentation fault

After numerous tries, I found once I installed ffp-base-0.5-oarm-1.tgz and restarted device (no subversion installed yet) then I got Segmentation fault.

The question is if I have "Segmentation fault" I cannot even telnet to the device, how can I run rcorder command?

Offline

 

#5 2012-12-08 02:11:24

hardywang
Member
Registered: 2012-12-02
Posts: 6

Re: Segmentation fault

I finally got it, I installed fun_plug 0.7, and the ffp-base is for 0.5 and it overwrites a lot of core files which caused the problem. I downgraded fun_plug 0.5 and everything works perfectly.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB