direwolf 1.6 fails to run with illegal instruction error

Bug #1980899 reported by Patrick Ouellette
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

System: Raspberry Pi Zero
Raspbian GNU/Linux 11

root@ne4po-igate:/usr/share/doc/direwolf# uname -a
Linux ne4po-igate 5.15.32+ #1538 Thu Mar 31 19:37:58 BST 2022 armv6l GNU/Linux

root@ne4po-igate:/usr/share/doc/direwolf# direwolf -c /etc/direwolf.conf
Dire Wolf version 1.6
Includes optional support for: gpsd hamlib cm108-ptt
Illegal instruction

also see: https://groups.io/g/direwolf/topic/87406630?p=,,,20,0,0,0::,,,0,0,0,87406630

suggested fix: ensure software is compiled for processor and apt installs proper version for systemPackage: direwolf
Version: 1.6+dfsg-1+b1
Severity: normal
X-Debbugs-Cc: none, <email address hidden>

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

-- System Information:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Architecture: armv6l

Kernel: Linux 5.15.32+
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages direwolf depends on:
ii adduser 3.118
ii libasound2 1.2.4-1.1+rpt2
ii libc6 2.31-13+rpt2+rpi1+deb11u2
ii libgps28 3.22-4
ii libhamlib4 4.0-7
ii libudev1 247.3-7+rpi1

direwolf recommends no packages.

Versions of packages direwolf suggests:
ii gpsd 3.22-4
ii python3 3.9.2-3

-- no debconf information

Revision history for this message
peter green (plugwash) wrote :

can you try running it under gdb? knowing exactly what code is failing would likely help narrow down the problem.

Revision history for this message
Patrick Ouellette (pouelle) wrote :

pat@ne4po-igate:~/src/debian/direwolf $ gdb direwolf
GNU gdb (Raspbian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from direwolf...
(No debugging symbols found in direwolf)
(gdb) r
Starting program: /usr/bin/direwolf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Dire Wolf version 1.6
Includes optional support for: gpsd hamlib cm108-ptt

Program received signal SIGILL, Illegal instruction.
0x0002e0b0 in config_init ()

I installed the build environment on the Pi zero and compiled from the deb-src package and it works fine so the build is definitely the problem. Most likely cross compiled with wrong options or compiled on a Pi 3 or later and picking up processor optimizations that are not present on first-gen Pi cpu

Revision history for this message
peter green (plugwash) wrote :

I just uploaded version 1.6+dfsg-1+rpi1, it should hit the public repos in the next few hours, when it does can you test it?

Revision history for this message
Patrick Ouellette (pouelle) wrote :

I'll give it a try as soon as I see it

Revision history for this message
Patrick Ouellette (pouelle) wrote :

OK - 1.6+dfsg-1+rpi1 works. I wasn't seeing the package because there is a newer version in the repository, direwolf_1.6+dfsg-2_armhf.deb. Apparently since January. Not sure why I wasn't seeing that version to report on. That version also is broken on the first gen Pi processors.

Thanks,

Pat

Revision history for this message
Patrick Ouellette (pouelle) wrote :

Just wondering if it makes sense to have 2 build targets for the direwolf package: one without neon support and one with?? The first gen Pi processors are capable but I'm sure the Pi3 and later benefit from neon optimizations in direwolf.

Revision history for this message
peter green (plugwash) wrote :

1.6+dfsg-2 is for bookworm. Now i've confirmed the fix works i'll get it brought forward to bookworm as well.

Revision history for this message
David Ranch (dranch) wrote :

I had tried to report this some time ago but I didn't realize it was rejected for some useless reason. Some additional details there:

   https://github.com/RPi-Distro/repo/issues/278

Revision history for this message
Lars Kellogg-Stedman (larsks) wrote :

What's the status for this bug? I just ran into it myself and was about to open a duplicate issue when I was directed here. I'm running bookworm (from 2024-03-15-raspios-bookworm-armhf-lite.img) and I'm hitting the "illegal instruction" issue.

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.