hamlib: crash in Ten-Tec backend rig 1608

Bug #569579 reported by wpmills
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hamlib (Ubuntu)
Fix Released
Medium
Kamal Mostafa

Bug Description

Fldigi & grig crash when trying to connect to the Ten-Tec Orion II.
Have used these programs in the past with debian systems without problems on the Orion II.

wpmills@suzanne:~$ lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

Fldigi shows:

Caught signal 11
Aborting fldigi due to a fatal error.
Please report this to w1hkj AT w1hkj DOT com

*** Stack trace:
fldigi[0x4a8d78]
/lib/libpthread.so.0[0x7f513645e190]
/lib/libc.so.6(memcpy+0xe1)[0x7f51348fa621]
/usr/lib/hamlib-tentec.so[0x7f512ec8c626]
/usr/lib/libhamlib.so.2(rig_open+0x196)[0x7f51357a8a86]
fldigi[0x415ba7]
fldigi[0x414176]
fldigi[0x483e0c]
fldigi[0x42165e]
fldigi(_ZN9Fl_Widget11do_callbackEv+0xb)[0x430eab]
/usr/lib/libfltk.so.1.1(_ZN9Fl_Button6handleEi+0x160)[0x7f5135fc4510]
/usr/lib/libfltk.so.1.1[0x7f5135fbd4ea]
/usr/lib/libfltk.so.1.1(_ZN2Fl6handleEiP9Fl_Window+0x4dc)[0x7f5135fbe64c]
/usr/lib/libfltk.so.1.1(_Z9fl_handleRK7_XEvent+0x98)[0x7f5136004b68]
/usr/lib/libfltk.so.1.1[0x7f5136005d83]
/usr/lib/libfltk.so.1.1(_Z7fl_waitd+0x41b)[0x7f513600662b]
/usr/lib/libfltk.so.1.1(_ZN2Fl4waitEd+0x118)[0x7f5135fbf058]
/usr/lib/libfltk.so.1.1(_ZN2Fl3runEv+0x1d)[0x7f5135fbf17d]
fldigi[0x47a036]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f5134896abd]
fldigi[0x413119]

*** Version information:
fldigi 3.11.4
Copyright (c) 2008 Dave Freese, Stelios Bounanos, Leigh Klotz, and others
License GPLv2+: GNU GPL version 2 or later <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System: Linux suzanne 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64

Built on Tue Jun 16 00:51:49 UTC 2009 by buildd@yellow with:
gcc version 4.4.0 (Ubuntu 4.4.0-6ubuntu2)
CFLAGS=-DLOCALEDIR="/usr/share/locale" -I. -I./include -I./irrxml -I./fileselector -DNDEBUG -pthread -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer -g -O2
LDFLAGS=-lportaudio -lm -lpthread -Wl,-Bsymbolic-functions -lfltk_images -lfltk -lsndfile -lsamplerate -lhamlib -lm -ldl -lrt
Libraries:
FLTK 1.1.9
libsamplerate-0.1.7 (c) 2002-2008 Erik de Castro Lopo
Hamlib version 1.2.9
PortAudio V19-devel (built Jun 20 2009 13:30:07) 1899
libsndfile-1.0.20
Segmentation fault

grig shows:

wpmills@suzanne:~$ grig -m 1608 -r /dev/ttyS0 -d 5
2010/04/24 16:57:03;;GRIG;;4;;grig_debug_init: Debug handler initialised.
2010/04/24 16:57:03;;HAMLIB;;4;;rig:rig_init called
2010/04/24 16:57:03;;HAMLIB;;4;;rig: loading backend tentec
2010/04/24 16:57:03;;HAMLIB;;4;;tentec: _init called
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1601)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1607)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1608)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1602)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1611)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1603)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1604)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1605)
2010/04/24 16:57:03;;HAMLIB;;4;;rig:rig_open called
2010/04/24 16:57:03;;HAMLIB;;2;;tt565_get_info: ack NG, len=2
Segmentation fault

Tags: hw-specific
Ciemon Dunville (ciemon)
tags: added: hw-specific
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

@wpmills: Thank you for this detailed bug report. I confirm the problem in hamlib 1.2.9-1ubuntu1; I can reproduce it even without the Ten-Tec radio:

$ grig -m 1608 -r /dev/ttyS0 -d 5
...
2010/04/25 08:13:09;;HAMLIB;;3;;read_string: timedout without reading a character
2010/04/25 08:13:09;;HAMLIB;;2;;tt565_get_info: ack NG, len=-5
Segmentation fault

Changed in hamlib (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

@wpmills: The crash looks like it has been fixed in the latest release of hamlib (1.2.10-3). That version of hamlib is included in the forthcoming Ubuntu 10.04 LTS (Lucid). An unofficial version of hamlib (1.2.10-3) for Ubuntu 9.10 (Karmic) is also available in the ~ubuntu-hams PPA: https://launchpad.net/~ubuntu-hams/+archive/ppa

After installing the ~ubuntu-hams PPA hamlib version, grig -m 1608 no longer crashes. (Of couse I don't really know if its functional since I don't have the Ten-Tec radio).

Please install the ~ubuntu-hams PPA version and test the behavior, then post your results to this bug.

Thanks again for reporting the problem.

Changed in hamlib (Ubuntu):
status: Confirmed → Incomplete
assignee: nobody → Kamal Mostafa (kamalmostafa)
summary: - Applications using hamlib crash
+ hamlib: crash in Ten-Tec backend rig 1608
Revision history for this message
wpmills (ac0hy) wrote : Re: [Bug 569579] Re: Applications using hamlib crash
Download full text (3.8 KiB)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kamal Mostafa wrote:
> @wpmills: The crash looks like it has been fixed in the latest release
> of hamlib (1.2.10-3). That version of hamlib is included in the
> forthcoming Ubuntu 10.04 LTS (Lucid). An unofficial version of hamlib
> (1.2.10-3) for Ubuntu 9.10 (Karmic) is also available in the ~ubuntu-
> hams PPA: https://launchpad.net/~ubuntu-hams/+archive/ppa
>
> After installing the ~ubuntu-hams PPA hamlib version, grig -m 1608 no
> longer crashes. (Of couse I don't really know if its functional since I
> don't have the Ten-Tec radio).
>
> Please install the ~ubuntu-hams PPA version and test the behavior, then
> post your results to this bug.
>
> Thanks again for reporting the problem.
>
> ** Changed in: hamlib (Ubuntu)
> Status: Confirmed => Incomplete
>
> ** Changed in: hamlib (Ubuntu)
> Assignee: (unassigned) => Kamal Mostafa (kamalmostafa)
>

This solves the crash. Reads frequency correctly, but can only lower
frequency, no raise. Trying any other functions cause very erratic
behavior on the radio. Now get from grig:

wpmills@suzanne:~$ grig -m 1608 -r /dev/ttyS0
2010/05/03 21:10:12;;GRIG;;4;;grig_debug_init: Debug handler initialised.
2010/05/03 21:10:12;;HAMLIB;;4;;rig:rig_init called
2010/05/03 21:10:12;;HAMLIB;;4;;rig: loading backend tentec
2010/05/03 21:10:12;;HAMLIB;;4;;tentec: _init called
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1601)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1607)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1608)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1602)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1609)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1611)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1603)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1604)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1605)
2010/05/03 21:10:12;;HAMLIB;;4;;rig:rig_open called
2010/05/03 21:10:12;;GRIG;;1;;rig_daemon_check_vfo: Can not find VFO
list for this backend! Bug in backend?
2010/05/03 21:10:12;;HAMLIB;;3;;** retry after delay (io=2, retry=0) **
2010/05/03 21:10:12;;HAMLIB;;3;;** retry after delay (io=3, retry=0) **
2010/05/03 21:10:12;;GRIG;;1;;rig_daemon_check_mode: Can not find
frequency range for this mode (4)! Bug in backend?
2010/05/03 21:10:12;;GRIG;;4;;rig_daemon_check_level: Maximum RF power
is 0.000 watts
2010/05/03 21:10:13;;GRIG;;4;;rig_daemon_start: Daemon thread started
2010/05/03 21:11:49;;HAMLIB;;4;;rig:rig_close called
2010/05/03 21:11:49;;HAMLIB;;4;;rig:rig_cleanup called
2010/05/03 21:11:49;;GRIG;;4;;grig_debug_close: Shutting down debug handler.

fldigi shows (don't know why the audio errors, audio works fine):

wpmills@suzanne:~$ fldigi
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_format( pcm, hwParams, Pa2AlsaFormat(
hostFormat ) )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1077
W: dxcc_open: Could not read contest country file
"/home/wpmills/.fldigi...

Read more...

Revision history for this message
sixdiamants (bob-janssen) wrote :

Similar behaviour with a TenTec RX320 receiver, i.e. can only lower frequency but cannot raise.

Version: 1.2.12-1~kamal~lucid (libhamlib2)
Version: 0.7.2-3ubuntu1 (grig)

sixdiamants@charlesV:~$ grig --model=1603 --rig-file=/dev/ttyS0
2010/10/07 20:44:12;;GRIG;;4;;grig_debug_init: Debug handler initialised.
2010/10/07 20:44:12;;HAMLIB;;4;;rig:rig_init called
2010/10/07 20:44:12;;HAMLIB;;4;;rig: loading backend tentec
2010/10/07 20:44:12;;HAMLIB;;4;;tentec: _init called
2010/10/07 20:44:12;;HAMLIB;;4;;rig_register (1601)
...
2010/10/07 20:44:12;;GRIG;;1;;rig_daemon_check_mode: Can not find frequency range for this mode (1)! Bug in backend?
2010/10/07 20:44:12;;HAMLIB;;4;;tentec_get_level: cmd=X,hi=29,lo=140
2010/10/07 20:44:12;;GRIG;;4;;rig_daemon_start: Daemon thread started

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Since the original reported problem (the crash in hamlib Ten-Tec backend) was fixed and released in hamlib (1.2.10-3), I am closing this bug.

If the secondary problem (frequency can only be raised, not lowered) is still occurring, please file a separate bug. Note however, that some versions of 'grig' have had GUI problems relating to frequency up versus down (see bug 517816) so before filing please try to determine whether that problem is specific to grig or if it is actually a problem with hamlib. (Experiment with rigctl and fldigi or other apps in addition to grig).

Thanks for reporting and testing these issues! 73 de KA6MAL -Kamal

Changed in hamlib (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.