KX3 Utility Segmentation Fault in Linux

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

KX3 Utility Segmentation Fault in Linux

kc2vic
Hi,

Seems like there is a problem with the KX3 Utility running with the newer
linux kernels...  After updating I just started getting the following error
immediately after running:

Segmentation fault (core dumped)

I've never had a problem before with the KX3 utility so not sure what is
different.  I've tried it with both the standard and lts kernel with the
same result.

Linux arch 4.14.23-1-lts #1 SMP Wed Feb 28 17:50:05 CET 2018 x86_64
GNU/Linux


73,

Rob
KC2VIC
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

kc2vic
Looking in dmesg, I found this:

[ 3817.471455] traps: kx3util[7873] general protection ip:f6771298
sp:ffb24f08 error:0 in libharfbuzz.so.0.10705.0[f6742000+ae000]

On Tue, Mar 6, 2018 at 7:42 PM, Robert Felmey <[hidden email]> wrote:

> Hi,
>
> Seems like there is a problem with the KX3 Utility running with the newer
> linux kernels...  After updating I just started getting the following error
> immediately after running:
>
> Segmentation fault (core dumped)
>
> I've never had a problem before with the KX3 utility so not sure what is
> different.  I've tried it with both the standard and lts kernel with the
> same result.
>
> Linux arch 4.14.23-1-lts #1 SMP Wed Feb 28 17:50:05 CET 2018 x86_64
> GNU/Linux
>
>
> 73,
>
> Rob
> KC2VIC
>
>
>
>
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

Chuck Milam, N9KY
Whoa, a Linux question?  Excellent.

Looks the HarfBuzz shared libraries got updated (probably along with your
window manager of choice) and the kx3util needs to be rebuilt (relinked?
Not certain of the proper dev-speak here) to reference the newer
libraries.   (Sorry if I'm preaching to the choir.)

See if you can get the core file to drop (you may need to do a "ulimit -c
unlimited" to ensure you get one) and analyze it with gdb for more
information.

I wonder if you can do a workaround and keep the libharfbuzz library files
that kx3util is looking for installed (maybe in /usr/local or somewhere
else handy?)

I'd test this myself, but I confess I gave up tilting at the windmills
years ago and use Win 10 for ham radio applications.  I do keep my Linux
boxes around for network and vulnerability management.  Right tool for the
job, and all that.


---
Chuck Milam, N9KY
[hidden email]

On Wed, Mar 7, 2018 at 7:06 AM, Robert Felmey <[hidden email]> wrote:

> Looking in dmesg, I found this:
>
> [ 3817.471455] traps: kx3util[7873] general protection ip:f6771298
> sp:ffb24f08 error:0 in libharfbuzz.so.0.10705.0[f6742000+ae000]
>
> On Tue, Mar 6, 2018 at 7:42 PM, Robert Felmey <[hidden email]> wrote:
>
> > Hi,
> >
> > Seems like there is a problem with the KX3 Utility running with the newer
> > linux kernels...  After updating I just started getting the following
> error
> > immediately after running:
> >
> > Segmentation fault (core dumped)
> >
> > I've never had a problem before with the KX3 utility so not sure what is
> > different.  I've tried it with both the standard and lts kernel with the
> > same result.
> >
> > Linux arch 4.14.23-1-lts #1 SMP Wed Feb 28 17:50:05 CET 2018 x86_64
> > GNU/Linux
> >
> >
> > 73,
> >
> > Rob
> > KC2VIC
> >
> >
> >
> >
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:[hidden email]
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to [hidden email]
>
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

Howard Stephenson - K6IA
In reply to this post by kc2vic
Hi Rob,

From the Utility info on the web site:

X86-based Linux: GTK+ 2.8 or later, glibc-2.4, libstdc++.so.6 and cURL.
64-bit Linux requires 32-bit compatibility libraries.

If you do a search of the reflector archives you should be able to find a
list of the 32 bit libraries needed:
<https://www.mail-archive.com/search?q=&l=elecraft%40mailman.qth.net>

If that is not helpful drop an e-mail to [hidden email], they have a
template with the needed libraries listed that they'll be happy to send you.

73,
Howard Stephenson K6IA
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

Thomas Kluge-2
Hi Rob,

When I tried to start one of the utility programs today I got an error:

(k3util:2054): GLib-CRITICAL **: g_hash_table_insert_internal:
assertion 'hash_table != NULL' failed
I think this is just a warning but it was followed by a segfault...

All my Elecraft utility programs were affected (k3util, p3util,
kpautil).

I'm running Gentoo Linux which is up-to-date (most of the packets are
the stable versions) and I was not sure when it worked last time...
I've started to look a bit deeper into it and dmesg showed me first an
issue with the libexpat and then with libpng. I've downgraded both
packages to the following versions:
expat: from version 2.2.1 to 2.1.0-r4
libpng: from version 1.6.29 to 1.6.27

Now I still get the Glib-errors (warnings) in the console - but
everything works again. It might be the same problem the KX3util...

Best regards
Tom, DL3DTH



Am Mittwoch, den 07.03.2018, 08:41 -0800 schrieb Howard Stephenson:

> Hi Rob,
>
> From the Utility info on the web site:
>
> X86-based Linux: GTK+ 2.8 or later, glibc-2.4, libstdc++.so.6 and cURL.
> 64-bit Linux requires 32-bit compatibility libraries.
>
> If you do a search of the reflector archives you should be able to find a
> list of the 32 bit libraries needed:
> <https://www.mail-archive.com/search?q=&l=elecraft%40mailman.qth.net>
>
> If that is not helpful drop an e-mail to [hidden email], they have a
> template with the needed libraries listed that they'll be happy to send you.
>
> 73,
> Howard Stephenson K6IA
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:[hidden email]
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to [hidden email]
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

David Woolley (E.L)
That is much more serious than a warning.  I'd expect it to be
immediately followed by a crash with signal 3 (abort), rather than
signal 11 (segmentation fault).  However, if this isn't the standard
assert routine, I would expect any attempt to actually use hash_table to
produce a segmentation fault.


The standard assert routine is a macro which tests the condition and, if
it fails, logs the fact then call abort, which never returns.


On 11/03/18 21:49, Thomas Kluge wrote:
> (k3util:2054): GLib-CRITICAL **: g_hash_table_insert_internal:
> assertion 'hash_table != NULL' failed
> I think this is just a warning but it was followed by a segfault...

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

kc2vic
In reply to this post by Thomas Kluge-2
Just wanted to post a quick update. Since this problem started
happening on 1 Mar 2018, I searched the archives and found the previous
version of lib32-harfbuzz.  After installing that version of the
package, now all the Elecraft linux utilities are working again on my
system.

https://archive.archlinux.org/repos/2018/02/28/multilib/os/x86_64/lib32
-harfbuzz-1.7.1-1-x86_64.pkg.tar.xz

You can install this on Arch systems with the following command:

pacman -U /path/to/lib32-harfbuzz-1.7.1-1-x86_64.pkg.tar.xz

If you do install this package, be sure to blacklist it from being
upgraded by placing the following line /etc/pacman.conf:

IgnorePkg   = lib32-harfbuzz

 
Rob

On Sun, 2018-03-11 at 22:49 +0100, Thomas Kluge wrote:

> Hi Rob,
>
> When I tried to start one of the utility programs today I got an
> error:
>
> (k3util:2054): GLib-CRITICAL **: g_hash_table_insert_internal:
> assertion 'hash_table != NULL' failed
> I think this is just a warning but it was followed by a segfault...
>
> All my Elecraft utility programs were affected (k3util, p3util,
> kpautil).
>
> I'm running Gentoo Linux which is up-to-date (most of the packets are
> the stable versions) and I was not sure when it worked last time...
> I've started to look a bit deeper into it and dmesg showed me first
> an
> issue with the libexpat and then with libpng. I've downgraded both
> packages to the following versions:
> expat: from version 2.2.1 to 2.1.0-r4
> libpng: from version 1.6.29 to 1.6.27
>
> Now I still get the Glib-errors (warnings) in the console - but
> everything works again. It might be the same problem the KX3util...
>
> Best regards
> Tom, DL3DTH
>
>
>
> Am Mittwoch, den 07.03.2018, 08:41 -0800 schrieb Howard Stephenson:
> > Hi Rob,
> >
> > From the Utility info on the web site:
> >
> > X86-based Linux: GTK+ 2.8 or later, glibc-2.4, libstdc++.so.6 and
> > cURL.
> > 64-bit Linux requires 32-bit compatibility libraries.
> >
> > If you do a search of the reflector archives you should be able to
> > find a
> > list of the 32 bit libraries needed:
> > <https://www.mail-archive.com/search?q=&l=elecraft%40mailman.qth.ne
> > t>
> >
> > If that is not helpful drop an e-mail to [hidden email], they
> > have a
> > template with the needed libraries listed that they'll be happy to
> > send you.
> >
> > 73,
> > Howard Stephenson K6IA
> > ______________________________________________________________
> > Elecraft mailing list
> > Home: http://mailman.qth.net/mailman/listinfo/elecraft
> > Help: http://mailman.qth.net/mmfaq.htm
> > Post: mailto:[hidden email]
> >
> > This list hosted by: http://www.qsl.net
> > Please help support this email list: http://www.qsl.net/donate.html
> > Message delivered to [hidden email]
>
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:[hidden email]
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to [hidden email]

______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

ab2tc
Hi,

Can you please move this conversation to a Linux guru forum? Ths Linux
gobbledygook has no place here, period.

AB2TC - Knut


Just wanted to post a quick update. Since this problem started
happening on 1 Mar 2018, I searched the archives and found the previous
version of lib32-harfbuzz.  After installing that version of the
package, now all the Elecraft linux utilities are working again on my
system.

https://archive.archlinux.org/repos/2018/02/28/multilib/os/x86_64/lib32
-harfbuzz-1.7.1-1-x86_64.pkg.tar.xz

You can install this on Arch systems with the following command:

pacman -U /path/to/lib32-harfbuzz-1.7.1-1-x86_64.pkg.tar.xz

If you do install this package, be sure to blacklist it from being
upgraded by placing the following line /etc/pacman.conf:

IgnorePkg   = lib32-harfbuzz

<snip>




--
Sent from: http://elecraft.365791.n2.nabble.com/
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

Eric Swartz - WA6HHQ
Administrator
Please do not criticize or be rude to other's for their postings here. That's
outside of Elecraft list guidelines.

In fact, since this is KX3 Utility related (for the Linux version) their
postings were certainly OK.

Eric
moderator from time to time..
/elecraft.com/

On 3/21/2018 4:47 PM, ab2tc wrote:
> Hi,
>
> Can you please move this conversation to a Linux guru forum? Ths Linux
> gobbledygook has no place here, period.
>
> AB2TC - Knut
>
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

ab2tc
Hi,

I've responded in a direct email to Eric, but maybe it it did not reach the
group. so here it is:

Hi Eric,

With all respect, I was not by any means rude. How can it be rude to ask
somebody to take take their problems elsewhere where they belong? I do not
think that purely operating systems problems have any place on the reflector
and that goes for Windows, too. Had it it been just one or two postings, I
wouldn't have been annoyed, but this was just going on and on with Linux
jargon forever understood by precious few.

ab2tc - Knut


Please do not criticize or be rude to other's for their postings here.
That's
outside of Elecraft list guidelines.

In fact, since this is KX3 Utility related (for the Linux version) their
postings were certainly OK.

Eric
moderator from time to time..
/elecraft.com/

On 3/21/2018 4:47 PM, ab2tc wrote:
<snip
</quote>




--
Sent from: http://elecraft.365791.n2.nabble.com/
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

Chuck Milam, N9KY
In reply to this post by ab2tc
This seems quite relevant.  It literally has to do with getting
Elecraft-provided and supported software to function on an
Elecraft-supported computer operating system.

Given the software-driven nature of the Elecraft product line, you can
expect some discussion on software support issues on all of the various
computer operating systems supported by Elecraft.

---
Chuck Milam, N9KY
[hidden email]

On Wed, Mar 21, 2018 at 6:47 PM, ab2tc <[hidden email]> wrote:

> Hi,
>
> Can you please move this conversation to a Linux guru forum? Ths Linux
> gobbledygook has no place here, period.
>
> AB2TC - Knut
>
>
> Just wanted to post a quick update. Since this problem started
> happening on 1 Mar 2018, I searched the archives and found the previous
> version of lib32-harfbuzz.  After installing that version of the
> package, now all the Elecraft linux utilities are working again on my
> system.
>
> https://archive.archlinux.org/repos/2018/02/28/multilib/os/x86_64/lib32
> -harfbuzz-1.7.1-1-x86_64.pkg.tar.xz
>
> You can install this on Arch systems with the following command:
>
> pacman -U /path/to/lib32-harfbuzz-1.7.1-1-x86_64.pkg.tar.xz
>
> If you do install this package, be sure to blacklist it from being
> upgraded by placing the following line /etc/pacman.conf:
>
> IgnorePkg   = lib32-harfbuzz
>
> <snip>
>
>
>
>
> --
> Sent from: http://elecraft.365791.n2.nabble.com/
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:[hidden email]
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to [hidden email]
>
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: KX3 Utility Segmentation Fault in Linux

Eric Swartz - WA6HHQ
Administrator
In reply to this post by ab2tc
Hi Knut,

Because it relates to problems using our utility software his posting is
certainly pertinent here. We have a lot of users who run our Utility s/w under
Linux and the solution to his problem will help others. Just because you are not
interested in a posting does not mean its inappropriate and does not interest
others on the list. (The delete key is a wonderful tool to quickly eliminate
those you do not wish to read..)

Also, your posting below used the word 'period' at the end is what I referred to
as rude and in essence orders them to take it elsewhere.

"Ths Linux gobbledygook has no place here, period."

It sounds like a parent disciplining a child. Neither a polite nor a respectful
statement to another discussion list member. The last thing we want to do is to
scare others away from asking questions or helping other on the list.

If you have concerns about a posting please feel free to contact the list
moderator and do -not- post them to the list. The moderator is the only list
participant allowed to make any decisions about the appropriateness of a posting
and to contact a poster or post on the list about them.

Whew! - I guess people have been spending way too little time on the air and way
too much time on the internet lately.. ;-)  I'm out of time on this topic - so
let's end the discussion for now.

73,

Eric   WA6HHQ
List moderator - when I have time away from my daily responsibilities at Elecraft..
/elecraft.com/

On 3/21/2018 5:22 PM, ab2tc wrote:

> Hi,
>
> I've responded in a direct email to Eric, but maybe it it did not reach the
> group. so here it is:
>
> Hi Eric,
>
> With all respect, I was not by any means rude. How can it be rude to ask
> somebody to take take their problems elsewhere where they belong? I do not
> think that purely operating systems problems have any place on the reflector
> and that goes for Windows, too. Had it it been just one or two postings, I
> wouldn't have been annoyed, but this was just going on and on with Linux
> jargon forever understood by precious few.
>
> ab2tc - Knut
>
>
> Please do not criticize or be rude to other's for their postings here.
> That's
> outside of Elecraft list guidelines.
>
> In fact, since this is KX3 Utility related (for the Linux version) their
> postings were certainly OK.
>
> Eric
> moderator from time to time..
> /elecraft.com/
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:[hidden email]

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to [hidden email]