New OSes like Debian 9 / Stretch, Debian 10 / Sid, are seeing segmentation fault errors on startup. An debug objects enabled, non-optimized build of Linpac yields a backtrace of:
(gdb) bt
(gdb)
So far, this seems to be a locale related issue on these newest distros running glibc 2.24. Older distros using say Glibc 2.19 don't see this issue with UTF-8 or iso-8859-1.
It's been observed that users can work around this issue in one of three ways:
(recommended) Disable the locale translation feature in the ~/LinPac/macro/init.mac file to read:
;;translate %DEF_ENC@0
(not recommended) delete the ~/LinPac/bin/commands file but this significantly impacts Linpac's features
(not recommended) start Linpac without monitoring by starting it with "linpac -m"
--David
Last edit: Piotr 2017-08-26
Hello Piotr,
I received a message stating "In line number 181 of file inst\linpac.in replace $ with $@" but the SF report seems to be empty. Anyway, are you seeing an issue. For this stage of the autoconf system, the two options are effectively the same and I'm not seeing any issue.
Signifincant issue with AX.25 and Raspbian Stretch
I have confirmed that with Raspian Stretch, there is some sort of conflict with
it's newly enabled predictable network interface names. What are those? If you
run the command "ifconfig" or "ip addr", you will no longer see Ethernet
interfaces with names like "eth0" but instead, you'll see something like
"enxb827eb5f05". How's that for catchy? For known reasons to the AX.25 kernel
maintainers, in the sa_data kernel data structure, both the stock Raspbian AX.25
.debs and the 3rd party VE7FET ax.25 debs will give errors like the following when
ANY network interface name is longer than 13 characters:
Programs like beacon will fail to start. Linpac will also crash upon start with
Fortunately, if you disable predictable network interface names, things work fine.
To do this, do the following steps:
Reboot your Raspberry Pi and things will work from there on out. Btw, if Linpac
crashed on you, your terminal might be screwed up and not working properly.
To fix that, run the commands:
Hi
No mentioned workarounds helped. In my case BBS's beacon causes crash (Line 181...).
It's a weather station beacon and sign of degrees of Centigrade - seems to be erroneous.
Hello Janusz,
You're saying that the Linux program "beacon" is crashing Linpac? What version of Linpac are you running? I ask because this SF ticket should have been closed out as many fixes went into Linpac 0.25 around this area.
Hello
No, sorry for not being so strict. I meant RF becon received via radio from local BBS/Node. I built from sources quite recent - version - download on 11.03.2018, so surely 0.25.
Hello Janusz,
It would be very unusual for a remote RF beacon coming into the Linux AX.25 stack and then into Linpac to then crash Linpac. When Linpac is running, issue the command:
:ver
to get the version of Linpac. Beyond that, tell us more about your machine.. what linux distribution and version, are you using axlisten for LInpac to show on-frequency traffic or are you using ax25spyd? Which AX.25 lib/apps/tools are you using? The version coming from the base Linux distro, custom built versions from the tip of tree Official AX.25 sources, or the VE7FET sources?
Here you are:
:ver
I don't use axlisten while Linpac is running however axlisten got no problems decoding mentioned symbols. Ax25spyd never tried at home.
All libraries come from oficial Ubuntu repository.
My HW: PK96 (in kiss mode) -> RS232/USB converter -> USB -> kissattach.
Hi
I'd like to ask if there is any workarround.
It looks even worse that I thought before. Please take a look at output of axlisten. I seperated one message (#766664) from my FBB-BBS where just after it's been listed, LinPac everytime crashes:
Sorry - it's in polish but meens - memory violation (core dumped),
Other bulletins were listed fine.
Hello Januz,
A few ideas:
Can you post the output of:
ifconfig
How are you installing Linpac? It's important that if you did an upgrade from a previous version, you copy the NEW libary versions over the older ones or you'll see issues like this. If you still see issues, can you provide a backtrace once Linpac coredumps?
In the different window, can you run the "listen" program" from ax25apps to capture an example of a beacon that's crashing Linpac?
--David
Known UTF character encoding issues have already been addressed in the 0.27 release. No additional reponse from Janusz since 5/5/2018 so I'm closing this ticket.