Permission Error of Tun devices

2021-03-26 Thread Siegfried Levin
I’m running several applications use tun devices as a non-root user. My hostname.tunX file is like: # /etc/hostname.tun0 inet 192.168.37.4 255.255.255.254 NONE dest 192.168.37.3 mtu 1436 !/sbin/chown tunuser:tunuser /dev/\$if They worked great until recently. I noticed causal permission error (e

EACCES of UDP packet

2021-06-15 Thread Siegfried Levin
Hi, I have a application run by a normal user communicating with the server with UDP. It crashes very occasionally, like once per week, due to EACCES when sending a UDP packet. According to the manpage (https://man.openbsd.org/OpenBSD-6.9/sendmsg.2#EACCES), the reason might be either being blo

Re: EACCES of UDP packet

2021-06-21 Thread Siegfried Levin
for locating the root cause. Siegfried siegfried.le...@gmail.com > On Jun 15, 2021, at 8:50 PM, Theo de Raadt wrote: > > use ktrace > > Siegfried Levin wrote: > >> Hi, >> >> I have a application run by a normal user communicating with the server with

Re: EACCES of UDP packet

2021-06-22 Thread Siegfried Levin
d000,0x1a1000) 3058 myapp RET munmap 0 3058 myapp CALL munmap(0x1691cb22000,0x1a1000) 3058 myapp RET munmap 0 3058 myapp CALL munmap(0x168220f8000,0x1a1000) 3058 myapp RET munmap 0 3058 myapp CALL close(4) 3058 myapp RET close 0 3058 myapp CALL close(3) 3058 myapp

All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Siegfried Levin
After I upgraded my OS from 7.2 to 7.3 with sysupgrade like 8 hours ago, all my programs written in Rust broke, including cargo installed with pkg_add on 7.2. I fixed Cargo by “pkg_add -u rust” and then recompiled some of my projects. Now they are having segment faults. Does anyone having the sa

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Siegfried Levin
11, 2023, at 00:09, Sebastien Marie wrote: > > On Mon, Apr 10, 2023 at 11:49:50PM +0800, Siegfried Levin wrote: >> After I upgraded my OS from 7.2 to 7.3 with sysupgrade like 8 hours ago, all >> my programs written in Rust broke, including cargo installed with pkg_add on >

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Siegfried Levin
Thanks. I believe that is the reason. > On Apr 11, 2023, at 02:54, Theo Buehler wrote: > >  >> >> Thanks. Actually that’s what I did. Rust package was updated by >> “pkg_add -u rust” and then “cargo build —release” rebuilds the >> projects. However, when I ran it, it crashed because of segment

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-11 Thread Siegfried Levin
I checked the core dump again. There is still an error on Ring 0.16.20. Where can I know more about the protection introduced in 7.3 in case that I need to report this on GitHub? Thanks. Reading symbols from /usr/libexec/ld.so...Error while reading shared library symbols: Dwarf Error: wrong ve

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-11 Thread Siegfried Levin
Oh shoot! Sorry I misunderstood the solution. I got rust-ring package installed and tried Laurie’s recipe. Now all errors are gone. Thanks a lot! > On Apr 11, 2023, at 17:06, Theo Buehler wrote: > > On Tue, Apr 11, 2023 at 04:43:04PM +0800, Siegfried Levin wrote: >> I checke

Alpine Linux guest running slow after upgraded to OpenBSD 7.0

2021-10-18 Thread Siegfried Levin
An Alpine Linux 3.10 guest VM is running quite slow after I upgraded the host to 7.0. It takes quite long to get a response. Other OpenBSD guests seems ok. Is anyone having the same issue? Thanks. Siegfried siegfried.le...@gmail.com

doas hang suddenly

2022-06-21 Thread Siegfried Levin
My server has been running for weeks without an issue. It is running OpenBSD 7.1. However, today I suddenly cannot use doas anymore. It always hang. Has anyone met this issue before? Siegfried siegfried.le...@gmail.com

Re: doas hang suddenly

2022-06-22 Thread Siegfried Levin
Weird. I did nothing but it recovered. I’ll check it again when it’s hanging. Thanks for you help. Siegfried siegfried.le...@gmail.com > On Jun 22, 2022, at 15:27, Stuart Henderson wrote: > > On 2022-06-22, Siegfried Levin wrote: >> My server has been running for weeks w