From: Stephane F. <f8...@fr...> - 2008-09-15 11:36:35
|
Hi Tony, Tony Corbett skribis: > I've done some more playing about to see what happens when I try to run > various other bits of software that use hamlib. > > XDX (uses hamlib to set freq when clicking on dx spot) sets freq OK. Good. > Grig, however is a different story. There is still a buffer overflow > somewhere along the line. I wish I had enough knowledge of how CAT for the > FT100 works and how to program in C, however, this is about as good as it > gets from me, running software and reporting errors! Sorry for being a > pain! Don't worry, beta-testers are as necessary as developers. In a way, it's like making a QSO, someone has to answer the call, and give a report :-) > [tonyc@localhost ~]$ grig -m121 -r/dev/ttyUSB0 > 2008/09/15 17:44:19;;GRIG;;4;;grig_debug_init: Debug handler initialised. > 2008/09/15 17:44:19;;HAMLIB;;4;;rig:rig_init called > 2008/09/15 17:44:19;;HAMLIB;;4;;rig: loading backend yaesu > 2008/09/15 17:44:19;;HAMLIB;;4;;yaesu: initrigs2_yaesu called [...] > 2008/09/15 17:44:19;;GRIG;;1;;rig_daemon_check_vfo: Can not find VFO list > for this backend! Bug in backend? Will fix that. > 2008/09/15 17:44:19;;HAMLIB;;4;;ft100: read flags=8 > 2008/09/15 17:44:19;;HAMLIB;;4;;ft100: get_freq > 2008/09/15 17:44:19;;HAMLIB;;4;;ft100: getting all info ^^^^^^^^^^^^^^^^ > 2008/09/15 17:44:20;;HAMLIB;;4;;ft100: read status=16 ^^^^^^^^^^^ > 2008/09/15 17:44:20;;HAMLIB;;4;;ft100: read meters=9 ^^^^^^^^^^^ > 2008/09/15 17:44:20;;HAMLIB;;4;;ft100: read flags=8 ^^^^^^^^^^ > 2008/09/15 17:44:20;;HAMLIB;;4;;ft100: Freq= 0 87 62 176 > *** buffer overflow detected ***: grig terminated > ======= Backtrace: ========= > /lib/libc.so.6(__fortify_fail+0x48)[0x579c78] > /lib/libc.so.6[0x577d70] > /lib/libc.so.6[0x576ffd] > /usr/lib/hamlib-yaesu.so[0x180e63] ^^^^^^^^^^^^^^^^^^^^^^^^ This looks like the buggy version of Hamlib from your distro. Where have you been installing the re-compiled Hamlib? /usr/local ? You can test grig against it by setting the following in your shell: LD_LIBRARY_PATH=/usr/local/lib:"$LD_LIBRARY_PATH" I've attached ft100.c to replace yaesu/ft100.c in your tree. You may also simply wait for tomorrow to get the nigthly snapshot from bleeding-edge. Cheers -- Stephane - F8CFE |