Segmentation fault for kvis

Do you use (or want to use) other tools to reduce ATCA data?

Moderator: Mark.Wieringa

bgaensler
Posts: 5
Joined: Thu Aug 15, 2013 11:46 am

Segmentation fault for kvis

Post by bgaensler »

Hi all,

I am running OSX El Capitan v10.11.5 on a Mac Pro.

Yesterday kvis was working for me, but today I upgraded XQuartz to 2.7.9 (xorg-server 1.17.4) and now get the following fault:

snake: > kvis
Port allocated: 1915
Segmentation fault (core dumped)

This fault occurs both in an xterm (within XQuartz) but also within OSX Terminal, version 2.6.1 (361.1).

When I roll back to XQuartz 2.7.8, kvis works fine again, both in an xterm and within Terminal

Does anyone know how to fix this, other than sticking with the old version of XQuartz?

regards
Bryan
Mark.Wieringa
ATCA Expert
Posts: 297
Joined: Mon Feb 08, 2010 1:37 pm

Re: Segmentation fault for kvis

Post by Mark.Wieringa »

Hi Bryan,

yes, we noticed this a couple of weeks back when the new XQuartz version came out.
It seems that the XQuartz developer is unlikely to fix this (see https://bugs.freedesktop.org/show_bug.cgi?id=96292),
instead requiring people to rebuild their software (xdvi was one of the other casualties).
We're looking into that for kvis, but until we manage that, sticking with the old XQuartz 2.7.8 is the solution to keep kvis alive.

Cheers,

Mark
len067
ATCA Expert
Posts: 66
Joined: Mon Feb 08, 2010 2:35 pm

Re: Segmentation fault for kvis

Post by len067 »

I had the same problem and had to revert back to the previous version of XQuartz and then everything worked fine again.

Cheers,

Emil.
Mark.Wieringa
ATCA Expert
Posts: 297
Joined: Mon Feb 08, 2010 1:37 pm

Re: Segmentation fault for kvis

Post by Mark.Wieringa »

I've just put a new OSX build of kvis on the ftp server, it should fix the XQuartz 2.7.9 issue, at least for El Capitan.
Let me know if it doesn't.
ftp://ftp.atnf.csiro.au/pub/software/karma/README
ftp://ftp.atnf.csiro.au/pub/software/ka ... n-15.5.tgz

Cheers,

Mark
len067
ATCA Expert
Posts: 66
Joined: Mon Feb 08, 2010 2:35 pm

Re: Segmentation fault for kvis

Post by len067 »

Hi Mark,

That worked fine on El Capitan (well, once I remembered to update the symbolic link to the new binary).

Cheers,

Emil.
scurran
Posts: 7
Joined: Tue Jan 17, 2017 11:42 am

Re: Segmentation fault for kvis

Post by scurran »

This worked a treat for me, except I can't overlay any axis labels, with just the message

error opening font file: "/usr/local/karma/share/fonts.dat"

any ideas?

Steve
ste616
Site Admin
Posts: 220
Joined: Thu Feb 04, 2010 3:27 pm
Location: Paul Wild Observatory Narrabri NSW

Re: Segmentation fault for kvis

Post by ste616 »

Hi Steve,

In which directory is your karma installed?
cheers
Jamie Stevens
ATCA Senior System Scientist
scurran
Posts: 7
Joined: Tue Jan 17, 2017 11:42 am

Re: Segmentation fault for kvis

Post by scurran »

Hi Jamie

/usr/local/karma

and I've already done

sudo ln -s /usr/local/karma-1.7.20/x86_64_Darwin-15.5/ /usr/local/karma

Cheers
Steve
ste616
Site Admin
Posts: 220
Joined: Thu Feb 04, 2010 3:27 pm
Location: Paul Wild Observatory Narrabri NSW

Re: Segmentation fault for kvis

Post by ste616 »

Hi Steve,

I think that's probably where you went awry slightly.

You see, in the x86_64_Darwin-15.5 directory, there is a symbolic link "share" which points to "../share". But since you actually want it to go to "/usr/local/karma-1.7.20/share" where the file is, the fonts.dat can't be found.

You should instead "ln -s /usr/local/karma-1.7.20 /usr/local/karma", and then set the environment variable KARMABASE to "/usr/local/karma/x86_64_Darwin-15.5".
cheers
Jamie Stevens
ATCA Senior System Scientist
Mark.Wieringa
ATCA Expert
Posts: 297
Joined: Mon Feb 08, 2010 1:37 pm

Re: Segmentation fault for kvis

Post by Mark.Wieringa »

Hi Steve,


To add to Jamie's explanations:

Did you download and extract karma-1.7.20-common.tgz as well?
The two tar files overlap, the x86_64_Darwin-15.5 dir should be a subdirectory in the previously extracted karma-1.7.20 directory.
Basically the path /usr/local/karma/share should exist and be one level above the bin directory with the kvis executable.
With your original ln -s statement and 'source /usr/local/karma-1.70.20/.karmarc' it should also work.

I agree it is a bit of a mess which I might try to sort out next time I need to make a change.

Cheers,

Mark
Post Reply