View previous topic :: View next topic |
Author |
Message |
Pville
Joined: 17 Jul 2006 Posts: 4 Location: Placerville, California
|
Posted: Mon Jul 17, 2006 11:28 pm Post subject: Segmentation fault $RADROUTER_BIN 1 $RUN_DIRECTORY |
|
|
I noticed someone had a problem with radmrouted_BIN back in Feb., and I have a similar one but a bit different.
My problem is in starting the wview script. I get -
START --
xdc default # /etc/init.d/wview start
Starting wview daemons:
/etc/init.d/wview: line 50: 31208 Segmentation fault $RADROUTER_BIN 1 $RUN_DIRECTORY
STOP --
xdc default # /etc/init.d/wview stop
Shutting down wview daemons...
I am running Gentoo with AMD 64, and using the Debian init.d script. Someone here had said the Deb. init worked for them using Gentoo, but that COULD be the problem? I have successfully installed all programs to the best of me knowledge and all in the default settings. I am communicating okay with the VP Console. I have searched again and again to solve my problem, and reinstalled several times just to make sure. Same problem over and over with perfect installs each time.
I feel if I get past this hurdle all should fly, well hopefully anyway. Any help would be much appreciated..
Some Results -
-----------------------------
xdc default # /usr/local/bin/vpconfig /dev/ttyUSB0 show
Firmware Version: Apr 10 2006
Station Location: 38.7 N, 120.9 W, 1850 feet
Archive Interval: 60 minutes
Rain Season Start Month: 7
RX Check Stats: 28445 1380 0 101 929 recvd:missed:resyncs:good-pkts-in-a-row:CRC errors
---------------------------
xdc danny # ps aux | grep wv
root 31211 0.0 0.0 16844 644 ? Ss 21:32 0:00 /usr/local/bin/wviewd
root 31213 0.0 0.0 16844 400 ? S 21:32 0:00 /usr/local/bin/wviewd
root 31220 0.0 0.0 21580 796 ? Ss 21:32 0:00 /usr/local/bin/wvwunderd
root 31221 0.0 0.0 21580 588 ? S 21:32 0:00 /usr/local/bin/wvwunderd
root 31293 0.0 0.0 2660 556 pts/2 S+ 21:35 0:00 grep wv
-------------------------
xdc default # tail -n 100 -f /var/log/messages
Jul 17 22:14:26 xdc radmrouted[31503]: segfault at 0000000067db90b4 rip 00002ab467901079 rsp 00007fff432c9160 error 6
Jul 17 22:14:27 xdc wviewd[31506]: <1153199667157> : radlib: wviewd started as a daemon ...
Jul 17 22:14:28 xdc htmlgend[31510]: <1153199668165> : radlib: htmlgend started as a daemon ...
Jul 17 22:14:28 xdc wvalarmd[31512]: <1153199668167> : /etc/wview/wvalarm.conf does not exist - exiting...
Jul 17 22:14:28 xdc wvcwopd[31513]: <1153199668169> : /etc/wview/wvcwop.conf does not exist - exiting...
Jul 17 22:14:28 xdc wvwunderd[31515]: <1153199668174> : radlib: wvwunderd started as a daemon ...
Jul 17 22:14:28 xdc wviewftpd[31517]: <1153199668176> : /etc/wview/wviewftp.conf does not exist - exiting...
Jul 17 22:14:28 xdc wviewsshd[31518]: <1153199668178> : /etc/wview/wviewssh.conf does not exist - exiting...
------------------------------
danny@xdc ~ $ raddebug 1 /var/wview
Error: unable to attach to wview radlib system 1! |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Tue Jul 18, 2006 2:08 pm Post subject: |
|
|
I have a feeling this is to do with running on a 64-bt system - I tried doing a test/sim install on a sparc64/FreeBSD system a few months ago and it didn't run properly.
When running make on radlib and wview do you get warnings about pointers and integers? |
|
Back to top |
|
|
Pville
Joined: 17 Jul 2006 Posts: 4 Location: Placerville, California
|
Posted: Tue Jul 18, 2006 3:41 pm Post subject: radlib & wview 64 bit compile warnings, running Gentoo.. |
|
|
"I have a feeling this is to do with running on a 64-bt system - I tried doing a test/sim install on a sparc64/FreeBSD system a few months ago and it didn't run properly.
When running make on radlib and wview do you get warnings about pointers and integers?"
-----------------------------------------------------------
Yes that's it! I get 1 warning when making wview and several making radlib. Both built ok with no errors, I should have scrolled through them better for those warnings.
There is just 1 "wview" warning, here in this section -
fi
../../stations/common/daemon.c: In function `evtHandler':
../../stations/common/daemon.c:466: warning: cast from pointer to integer of different size
There are several "radlib" warnings concerning the exact same issue. To many to be worth posting here.
I considered doing a Gentoo emulation build, but it would still come down to the 64 bit processor I wouild think. Back to the drawing board! I think I will just move my station over to an intel 3.0, 32 bit processor.
Perhaps some time down the road the developer will need to make it all work on a 64 bit platform as technology advances. Or perhaps it is already in the cards?
Thanks so much for the kind reply & your time! |
|
Back to top |
|
|
Entr04y
Joined: 11 Nov 2005 Posts: 8
|
Posted: Fri Jul 21, 2006 1:06 pm Post subject: |
|
|
I am getting the same behaviour on a fedora core 5 64 bit system. Interestingly enough, it starts just fine by hand...
# ./wview start
Starting wview daemons:
./wview: line 53: 18888 Segmentation fault $RADROUTER_BIN 1 $RUN_DIRECTORY
# ps -ef | grep rad
root 18921 24554 0 11:38 pts/4 00:00:00 grep rad
# /usr/local/bin/radmrouted 1 /var/wview
# ps -ef | grep radmrouted
root 19144 1 0 11:42 ? 00:00:00 /usr/local/bin/radmrouted 1 /var/wview
root 19145 19144 0 11:42 ? 00:00:00 /usr/local/bin/radmrouted 1 /var/wview |
|
Back to top |
|
|
Pville
Joined: 17 Jul 2006 Posts: 4 Location: Placerville, California
|
Posted: Fri Jul 21, 2006 7:02 pm Post subject: |
|
|
Yes, I too could start it all by hand, but it didn't work, nor can it work in the present state of the program code unless you do some serious editting.. Meanwhile wine may be of some interest to you. I have vws installed under crossover. |
|
Back to top |
|
|
clowntoe
Joined: 20 Jul 2006 Posts: 6
|
Posted: Mon Aug 28, 2006 3:21 pm Post subject: AMD 64 install |
|
|
I just worked on moving my installation over to an AMD 64 Debian (etch) box and ran into the same issue. All of the same results.
What was the wine/vws solution you used? I'd really like to get this working on my main server - for now it's the only thing running on another Intel box and I have the img directory NFS mounted for web publishing. It works, but I'd like to turn that box off. |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Wed Aug 30, 2006 2:39 pm Post subject: |
|
|
Could someone with a 64-bit system try compiling with the -m32 flag set and report back? |
|
Back to top |
|
|
clowntoe
Joined: 20 Jul 2006 Posts: 6
|
Posted: Wed Aug 30, 2006 7:29 pm Post subject: |
|
|
I'd love to help and I'm able to do this anytime soon. I just don't exactly know how to send the -m32 flag to the compiler. I've done a little research online but I think it's best to post in here for the others that run into this issue.
If anyone can help out, I'm happy to get started right away and post my results. |
|
Back to top |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Thu Aug 31, 2006 5:27 am Post subject: |
|
|
Bearing in mind that you'll need to do this for both radlib and wview, the instructions should be as per the user manual, but change
./configure
to
./configure CFLAGS=-m32 |
|
Back to top |
|
|
clowntoe
Joined: 20 Jul 2006 Posts: 6
|
Posted: Thu Aug 31, 2006 6:34 am Post subject: |
|
|
I'm working on this, but I'm getting an error from the compiler when passing that flag to it:
/usr/bin/ld: cannot find lgcc_s
libgcc is there, in /usr/lib. The path variable seems to be set correctly. Anyway, I'm researching to see if I can figure out the issue. When I don't pass the -m32 flag, configure runs properly. |
|
Back to top |
|
|
lockjaw
Joined: 23 Sep 2006 Posts: 1 Location: Sierra Madre, CA, USA
|
Posted: Sat Sep 23, 2006 2:58 pm Post subject: 64-bit support imlemented |
|
|
I too was bitten by the 64-bit problems. I went ahead and fixed them (at least, it's working for me...). The hard part was finding out that the buffer sizes that radlib defaults to were no longer big enough for the bigger messages wview was generating! I've attached patches that make radlib-2.3.2 and wview-3.2.1 work on my AMD64 Debian Etch machine. I also made a lame attempt at Debian package creation - you can ignore the "debian" directories I created if you aren't using it; if you are, "fakeroot debian/rules clean; fakeroot debian/rules build; fakeroot debian/rules binary" should build the binary packages when you are in the correct project directories. Most of the patch size is due to the package creation stuff - the changes needed to make radlib and wview work on 64-bit weren't very big.
I don't think I did anything to break 32-bit support, but I haven't tried it out.
Since I don't see a way to upload the patches to this forum, I've placed them at:
http://www.evonetics.com/files/radlib-2.6.2-x86_64-patch
http://www.evonetics.com/files/wview-3.2.1-x86_64-patch
md5sums:
1d0fe82ca1c9024712a839f49cc99ebf radlib-2.6.2-x86_64-patch
4684eb4116934f74eacd0c5204e8debe wview-3.2.1-x86_64-patch
Enjoy |
|
Back to top |
|
|
clowntoe
Joined: 20 Jul 2006 Posts: 6
|
Posted: Sun Sep 24, 2006 2:32 pm Post subject: |
|
|
Thanks a million for the patches. They worked flawlessly for me as well. |
|
Back to top |
|
|
Pville
Joined: 17 Jul 2006 Posts: 4 Location: Placerville, California
|
Posted: Wed Dec 06, 2006 2:19 pm Post subject: Re: 64-bit support imlemented |
|
|
Great job [quote="lockjaw"] ! I will be trying it soon out on my Gentoo build.
El Dorado County Weather, Placerville, CA
http://www.eldoradocountyweather.com |
|
Back to top |
|
|
|