Comment 18 for bug 1916931

Revision history for this message
Stefan Lasiewski (stefanlasiewski) wrote :

Thanks to Massimiliano's lead. I was able to workaround this bug by replacing /usr/bin/omshell with a freshly compiled version from source. Note that I've only been using my custom version for about 20 minutes, so YMMV.

I really dislike replacing packages with homemade utilities, as it's a pain to maintain. So I chose to simply replace /usr/bin/omshell instead of the whole thing. Here are the steps that I did:

```
systemctl stop isc-dhcp-server
curl -OL https://github.com/isc-projects/dhcp/archive/refs/tags/v4_4_3.tar.gz
tar zxf v4_4_3.tar.gz
cd dhcp-4_4_3
./configure
make
# NO make install
# Instead, replace the 1 utility that is causing us problems
mv /usr/bin/omshell /usr/bin/omshell.bad
cp dhcpctl/omshell /usr/bin/omshell
```

I will point out that the default version includes many more libraries then my custom version, and so presumably one of these system libraries is responsible for the bug, as suggested at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995242#40

```
# ldd /usr/bin/omshell
        linux-vdso.so.1 (0x00007ffc617e4000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f62c6330000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f62c67fc000)
# ldd /usr/bin/omshell.bad
        linux-vdso.so.1 (0x00007ffe1ebf8000)
        libirs-export.so.161 => /lib/x86_64-linux-gnu/libirs-export.so.161 (0x00007fe6b1d18000)
        libdns-export.so.1109 => /lib/x86_64-linux-gnu/libdns-export.so.1109 (0x00007fe6b1ae3000)
        libisc-export.so.1105 => /lib/x86_64-linux-gnu/libisc-export.so.1105 (0x00007fe6b1a6c000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe6b187a000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe6b1857000)
        libisccfg-export.so.163 => /lib/x86_64-linux-gnu/libisccfg-export.so.163 (0x00007fe6b1828000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe6b1820000)
        libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fe6b1549000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe6b1daa000)
```

I tried recompiling isc-dhcp-4.4.1 from Ubuntu's source, but it had the same exact error.