On 15.5.2023. 9:47, Hrvoje Popovski wrote:
> On 12.1.2023. 5:49, Mikolaj Kucharski wrote:
>> Hi,
>>
>> Is there anything else which I can do, to help this diff reviwed and
>> increase the chance of getting in?
>>
>> Thread at https://marc.info/?t=163478298600001&r=1&w=2
>>
>> Last version of the diff at
>> https://marc.info/?l=openbsd-tech&m=167185582521873&q=mbox
> 
> Hi,
> 
> I've applied this diff and it's works as expected. wgdesc would be nice
> features to have when having remote access server with wireguard.

Hi,

With this diff when executing wg in shell or wg showconf I'm getting
core dump. maybe I did something wrong? Mikolaj did you get core dump
with diff?



"wg show" without this diff

r620-1# wg show
interface: wg0
  public key: 123=
  private key: (hidden)
  listening port: 12345

peer: 1111111111111111111111111111111111111111111=
  preshared key: (hidden)
  allowed ips: 10.123.123.2/32





"wg show" with this diff

smc4# wg show
Segmentation fault (core dumped)


smc4# gdb wg wg.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd7.3"...(no debugging
symbols found)

Core was generated by `wg'.
Program terminated with signal 11, Segmentation fault.
(no debugging symbols found)
Loaded symbols for /usr/local/bin/wg
Reading symbols from /usr/lib/libc.so.97.0...done.
Loaded symbols for /usr/lib/libc.so.97.0
Reading symbols from /usr/libexec/ld.so...Error while reading shared
library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be
2) [in module /usr/libexec/ld.so]
#0  0x00000ec9a681649d in ipc_get_device () from /usr/local/bin/wg


(gdb) bt
#0  0x00000ec9a681649d in ipc_get_device () from /usr/local/bin/wg
#1  0x00000ec9a6817ac2 in show_main () from /usr/local/bin/wg
#2  0x00000ec9a6808822 in _start () from /usr/local/bin/wg
#3  0x0000000000000000 in ?? ()
(gdb)

Reply via email to