Re: Possible sasyncd memory leak ?

2019-03-08 Thread Otto Moerbeek
On Fri, Mar 08, 2019 at 12:03:25PM +0100, Michał Koc wrote:

> Hi all,
> 
> We have a triple redundant vpn gateway setup with sasyncd running and tons
> of tunnels, about 1000 flows.
> 
> Looking at the graph of memory usage, you can clearly see that something is
> sucking up the memory.
> 
> The graph can be viewed here: https://pasteboard.co/I4sjzQ8.jpg
> 
> Looking at the ps, sasyncd shows huge memory consumption:
> 
> USER PID   %CPU  %MEM   VSZ  RSS    TT STAT 
> STARTED   TIME   COMMAND
> _isakmpd 33560  0.0   17.0    699264   708508 ?? S   
> 26Feb19    6:58.81  /usr/sbin/sasyncd
> 
> It only happens on the master node. Slaves do not show such a behavior.
> 
> There is nothing about sasyncd in the logs.
> 
> After sasyncd restart memory consumption is minimal, but tends to grow.
> 
> Is it normal ? or am I missing something ?
> 
> Best regards
> M.K.
> 

This is not normal. You could try to run with -vv to see if some error
path is taken that triggers a leak.

-Otto



Can't boot up on -current of thursday

2019-03-08 Thread STeve Andre'
For the first time in 14+ years I cant boot up.   I compiled -current yesterday 
but didnt reboot then. Rebooting today after the probe line  Spkr0 at pcppi0  I 
get

Usbd_free_xfer:  xfer=0xff087bb44c30 not free

And hangs.  So, I booted the previous kernel and got the same message.  Other 
kernels give the same message.  Bsd.rd did come up however.  This is a w541 
thinkpad.

I'm going to install on an external disk, but have others seen this?  Given 
multiple kernel failures I fear hardware problems. And of course I dont have 
other working hardware with me so I have to deal with that to get comparison 
systems up.

Thanks for any clues.

--STeve Andre'


Re: clocksource tsc sometimes not available within debian vm on OpenBSD 6.4

2019-03-08 Thread Robert Paschedag
Am 8. März 2019 20:29:36 MEZ schrieb Dave Voutila :
>On Fri, Mar 8, 2019 at 1:55 PM Joe M  wrote:
>>
>> I have the same issue and have been using this driver. It sets the
>> correct time every 5 seconds. For this purpose, this solution is a
>> hack, but, I could not figure out a better solution.
>>
>> https://github.com/voutilad/virtio_vmmci/issues/1
>
>As the author of the driver, let me clarify that the behavior now
>mimics the native vmmci(4) behavior in that it only syncs the clock
>when told to by the host system, which corresponds to the virtual
>mc146818 detected its own clock drift (see vmd(8) source code). In
>practice, this usually happens when the host system comes out of
>suspension/hibernation.
>
>The driver is not meant to resolve major issues like chronic clock
>drift that even ntp can't fix.

The drift is not my primary problem. Yes, the drift is still large but it 
really solves the problem that "containerd" does not eat 100% CPU. It was 
unusable before.

But I'll keep that in mind.

Thanks
Robert

>
>>
>> Also, I noticed that vm clock would be very slow. It loses 28 minutes
>> for every 30 minutes.
>>
>> Another thing, watch out regarding tsc=unreliable kernel command line
>> option, the vm is getting unresponsive with it after an hour or so.
>>
>
>-Dave


-- 
sent from my mobile device



Re: Puffy Security smtpd out of date ( closed )

2019-03-08 Thread Sean Kamath
> On Mar 8, 2019, at 10:38, Geir Svalland  wrote:
> 
> It's a shame good work like 
> this is
> of no use anymore. According to my opinion, it's well written and easy 
> to follow.
> 
> /Hasse


So, I’ll take issue with the “well written” part of that.  It doesn’t do much 
in the way of explaining anything, just a lot of “put this here”, “put that 
there”.

I used https://frozen-geek.net/openbsd-email-server-1/ (and the second part) 
when I was migrating from Solaris (for reasons — I’ve had mailservers running 
on Solaris since about 1992, when it was SunOS) to OpenBSD (hosted on Vultr;  
I’ve been using OpenBSD since 2.6 or so, mostly for firewalls).  I would argue 
that this is better from the standpoint of explaining why things are the way 
they are (in the doc), with examples, and, even though it was a little out of 
date, I found it easy to understand the underlying concepts pretty easily 
(granted, as I’ve said, I’ve been running mail servers forever, but OpenBSD 
brings some interesting differences (mostly in PF-enabled routing of 
connections).

Of course, how to docs tend to be a personal thing…

Now to stop dragging my heals on upgrading from 6.3 -> 6.4. . .

Sean




Re: clocksource tsc sometimes not available within debian vm on OpenBSD 6.4

2019-03-08 Thread Dave Voutila
On Fri, Mar 8, 2019 at 1:55 PM Joe M  wrote:
>
> I have the same issue and have been using this driver. It sets the
> correct time every 5 seconds. For this purpose, this solution is a
> hack, but, I could not figure out a better solution.
>
> https://github.com/voutilad/virtio_vmmci/issues/1

As the author of the driver, let me clarify that the behavior now
mimics the native vmmci(4) behavior in that it only syncs the clock
when told to by the host system, which corresponds to the virtual
mc146818 detected its own clock drift (see vmd(8) source code). In
practice, this usually happens when the host system comes out of
suspension/hibernation.

The driver is not meant to resolve major issues like chronic clock
drift that even ntp can't fix.

>
> Also, I noticed that vm clock would be very slow. It loses 28 minutes
> for every 30 minutes.
>
> Another thing, watch out regarding tsc=unreliable kernel command line
> option, the vm is getting unresponsive with it after an hour or so.
>

-Dave



Re: I can't open web.telegram.org in the Chromium

2019-03-08 Thread Vitaly Kovalyshyn
On Fri, Mar 08, 2019 at 06:34:03PM -, Stuart Henderson wrote:
> On 2019-03-08, Vitaly Kovalyshyn  wrote:
> > Hi @misc !
> >
> > I need to use Telegram as my main messenger. I'm trying open 
> > https://web.telegram.org in the Chromium (-current). But browser crashed. I 
> > have installed firefox and surf - everything work fine. The site opens and 
> > web version works fine.
> >
> > Can someone open https://web.telegram.org in the current version of the 
> > Chromium? How to fix it? I don't want to use additional browser for 
> > Telegram only...
>
> Not sure what's going on, but it fails for me when it first opens,
> but works if I reload with ctrl-shift-R.

Strange... Didn't work for me. Neither chromium, nor iridium after Ctrl+Shift+R


>
> Neither --disable-unveil nor -js-flags=--noexpose_wasm help.
>



Re: clocksource tsc sometimes not available within debian vm on OpenBSD 6.4

2019-03-08 Thread Joe M
I have the same issue and have been using this driver. It sets the
correct time every 5 seconds. For this purpose, this solution is a
hack, but, I could not figure out a better solution.

https://github.com/voutilad/virtio_vmmci/issues/1

Also, I noticed that vm clock would be very slow. It loses 28 minutes
for every 30 minutes.

Another thing, watch out regarding tsc=unreliable kernel command line
option, the vm is getting unresponsive with it after an hour or so.



Re: Puffy Security smtpd out of date ( closed )

2019-03-08 Thread Geir Svalland
Thanks to everybody who answered my post.
Even those who rose their finger at me for posting this to the list.

I've sent a note to Thomas Dwyer with a heads up on this outdated tutorial,
and asked if it's possible to get an update. It's a shame good work like 
this is
of no use anymore. According to my opinion, it's well written and easy 
to follow.

/Hasse



Re: I can't open web.telegram.org in the Chromium

2019-03-08 Thread Stuart Henderson
On 2019-03-08, Vitaly Kovalyshyn  wrote:
> Hi @misc !
>
> I need to use Telegram as my main messenger. I'm trying open 
> https://web.telegram.org in the Chromium (-current). But browser crashed. I 
> have installed firefox and surf - everything work fine. The site opens and 
> web version works fine.
>
> Can someone open https://web.telegram.org in the current version of the 
> Chromium? How to fix it? I don't want to use additional browser for Telegram 
> only...

Not sure what's going on, but it fails for me when it first opens,
but works if I reload with ctrl-shift-R.

Neither --disable-unveil nor -js-flags=--noexpose_wasm help.



Re: sound volume reduction - chromium

2019-03-08 Thread Marc Espie
On Fri, Mar 08, 2019 at 09:09:59AM -0600, joshua stein wrote:
> On Fri, 08 Mar 2019 at 10:46:24 +0200, Mihai Popescu wrote:
> > Hello,
> > 
> > Does anyone observe some sound volume reduction when chromium is
> > displaying some specific tabs?
> > 
> > I am using mpv in xterm with some internet radio, when I point
> > chromium to some tabs (with or without multimedia in them, I can't
> > figure out for the moment) the sound volume is dropping a little but
> > noticeable and it is coming back to normal when I close chromium or
> > the offending tabs.
> 
> That is probably sndiod(8) doing its default behavior of trying to 
> avoid clipping by reducing volume when multiple things are playing.  
> See the -w option in the sndiod man page.

I think there's possibly something slightly off in chromium's routines,
because the drop-off happens BEFORE you even start any audio, thus pointing
to chromium always initializing the audio output even if it's not going
to play anything...

... which is a minor peeve when you're actually using audio for other things.



Re: Meinberg Funkuhren DCF77 clocks

2019-03-08 Thread Peter J. Philipp
On Fri, Mar 08, 2019 at 04:09:34PM -, Christian Weisgerber wrote:
> On 2019-03-08, "Peter J. Philipp"  wrote:
> 
> > I'm wondering if this particular USB clock is supported in OpenBSD.
> > https://www.meinbergglobal.com/english/products/usb-dcf77-clock.htm
> > it's predecessor is the USB5131 model, which is supported under the
> > umbg(4) driver.
> 
> (I hate "I don't know either" replies, but in this case I doubt
> you'll get a definitive answer.)
> 
> I took a quick look at Meinberg's Linux driver package...
> https://www.meinbergglobal.com/download/drivers/mbgtools-lx-4.2.2.tar.gz
> ... but I got lost in the ifdef and abstraction maze.
> 
> The DCF600USB will definitely not work out of the box, since it has
> a different product ID from the USB5131.  Beyond that, I can't tell.
> The DCF600USB has a "v2" USB interface as opposed to the USB5131,
> but while a flag for this is passed around, I couldn't see where
> it's used.
> 
> -- 
> Christian "naddy" Weisgerber  na...@mips.inka.de

Hi Christian,

Thanks for your reply.  I mailed meinberg whether they give out datasheets to
their products so that I can modify the driver.  If I don't manage to make the
new one working, is there interest by german or european developers to take
on the hardware or money to buy their own device?  I don't know if the
original umbg(4) driver author is still at OpenBSD...

I probably won't get a reply by monday, so we'll see then.

Regards,
-peter



clocksource tsc sometimes not available within debian vm on OpenBSD 6.4

2019-03-08 Thread Robert Paschedag
Hi misc,

I'm running OpenBSD 6.4 stable on my notebook and wanted to play around
with docker within debian VMs.

1 created 3 debian (stretch) VMs (2nd and 3rd are just copies and
modified later).

I had some trouble getting docker (containerd) running. It was always
using 100% CPU and I didn't know, why. Found out it made many
"clock_gettime" syscalls and found a thread, that setting the
clocksource to "tsc" within the VM would improve performance.

And, indeed, setting the clocksource to "tsc" fixes the containerd problem.

But the main problem is, that sometimes the "tsc" clocksource is not
available within the VM.

Until now, only 2 of the 3 debian VMs have the "tsc" clocksource
available, if all 3 are running. If I stop one of the 2 VMs that have
"tsc" available and restart the one that did not have it, that one
*then* has the "tsc" available. But not always. So this looks somehow
pretty random to me.

So here is an example, when "tsc" is not available

root@debian2-vm:~# dmesg | grep tsc
[0.00] tsc: Fast TSC calibration failed
[0.00] tsc: Unable to calibrate against PIT
[0.00] tsc: No reference (HPET/PMTIMER) available
[0.00] tsc: Marking TSC unstable due to could not calculate TSC khz
root@debian2-vm:~#

And here it is (on the same VM after one or more reboots)

root@debian2-vm:~# dmesg | grep tsc
[0.00] tsc: Fast TSC calibration failed
[0.00] tsc: Using PIT calibration value
[0.00] tsc: Detected 15521.837 MHz processor
[1.948708] clocksource: tsc: mask: 0x max_cycles:
0x1bf7a091b1e1, max_idle_ns: 881591361965 ns
[1.948709] clocksource: Switched to clocksource tsc
[2.797715] clocksource: timekeeping watchdog on CPU0: Marking
clocksource 'tsc' as unstable because the skew is too large:
[2.797716] clocksource:   'tsc' cs_now:
2cd3e49b586 cs_last: 2cbb8a34d2c mask: 
root@debian2-vm:~#

Is this known and possibly fixed in current?

Thanks,
Robert


Here is the dmesg

OpenBSD 6.4 (GENERIC.MP) #3: Thu Dec 20 19:19:32 CET 2018

r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16708087808 (15934MB)
avail mem = 16192450560 (15442MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdae9d000 (68 entries)
bios0: vendor LENOVO version "HEET34WW (1.15 )" date 07/02/2013
bios0: LENOVO 68852HG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT ASF! HPET APIC MCFG FPDT SSDT SSDT
UEFI UEFI POAT UEFI DBG2
acpi0: wakeup devices P0P1(S4) EHC1(S3) EHC2(S3) XHC_(S3) HDEF(S3)
PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4)
PXSX(S4) RP05(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.54 MHz, 06-3a-09
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.12 MHz, 06-3a-09
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.12 MHz, 06-3a-09
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 2594.12 MHz, 06-3a-09
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1

Re: Meinberg Funkuhren DCF77 clocks

2019-03-08 Thread Christian Weisgerber
On 2019-03-08, "Peter J. Philipp"  wrote:

> I'm wondering if this particular USB clock is supported in OpenBSD.
> https://www.meinbergglobal.com/english/products/usb-dcf77-clock.htm
> it's predecessor is the USB5131 model, which is supported under the
> umbg(4) driver.

(I hate "I don't know either" replies, but in this case I doubt
you'll get a definitive answer.)

I took a quick look at Meinberg's Linux driver package...
https://www.meinbergglobal.com/download/drivers/mbgtools-lx-4.2.2.tar.gz
... but I got lost in the ifdef and abstraction maze.

The DCF600USB will definitely not work out of the box, since it has
a different product ID from the USB5131.  Beyond that, I can't tell.
The DCF600USB has a "v2" USB interface as opposed to the USB5131,
but while a flag for this is passed around, I couldn't see where
it's used.

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: I can't open web.telegram.org in the Chromium

2019-03-08 Thread Vitaly Kovalyshyn
On Fri, Mar 08, 2019 at 08:44:12AM -0700, Aaron Bieber wrote:
>
> Vitaly Kovalyshyn writes:
>
> > Hi @misc !
> >
> > I need to use Telegram as my main messenger. I'm trying open 
> > https://web.telegram.org in the Chromium (-current). But browser crashed. I 
> > have installed firefox and surf - everything work fine. The site opens and 
> > web version works fine.
> >
> > Can someone open https://web.telegram.org in the current version of the 
> > Chromium? How to fix it? I don't want to use additional browser for 
> > Telegram only...
> >
> > Thank You.
>
> It works fine for me using iridium (with unveil and --site-per-process).

I don't know why - but doesn't work for me using iridium too.
I just have added package iridium-2018.11.71p2
The page with phone number verification loaded and crashed:

[~]$ iridium --site-per-process web.telegram.org

[81273:1761839336:0308/175446.667548:ERROR:process_metrics_openbsd.cc(126)] Not 
implemented reached in bool base::GetSystemMemoryInfo(base::SystemMemoryInfoKB 
*)
[81273:-1424928192:0308/175446.993798:ERROR:bus.cc(396)] Failed to connect to 
the bus: Could not parse server address: Unknown address type (examples of 
valid types are "tcp" and on UNIX "unix")
*** autoupdate was enabled, overriding with false
[81273:1761839336:0308/175447.708400:ERROR:x11_input_method_context_impl_gtk.cc(144)]
 Not implemented reached in virtual void 
libgtkui::X11InputMethodContextImplGtk::SetSurroundingText(const base::string16 
&, const gfx::Range &)
[81273:-1424921024:0308/175447.887420:ERROR:process_posix.cc(204)] Not 
implemented reached in bool (anonymous 
namespace)::WaitForExitWithTimeoutImpl(base::ProcessHandle, int *, 
base::TimeDelta)

<--- Last few GCs --->

[33100:0x25d5c935000]  116 ms: Mark-sweep 1.4 (3.4) -> 1.4 (3.4) MB, 4.7 / 
0.1 ms  (average mu = 0.037, current mu = 0.037) memory pressure GC in old 
space requested
[33100:0x25d5c935000]  121 ms: Mark-sweep 1.4 (3.4) -> 1.4 (3.4) MB, 4.5 / 
0.1 ms  (average mu = 0.023, current mu = 0.007) memory pressure GC in old 
space requested
[33100:0x25d5c935000]  126 ms: Mark-sweep 1.4 (3.4) -> 1.3 (3.4) MB, 4.8 / 
0.1 ms  (average mu = 0.017, current mu = 0.011) memory pressure GC in old 
space requested


<--- JS stacktrace --->

 JS stack trace =

0: ExitFrame [pc: 0x25a75e7a74e]
1: StubFrame [pc: 0x25a75dec881]
Security context: 0x2f47462263f1 
2: init(aka init) [0x2f474627e521] 
[https://web.telegram.org/vendor/rusha/rusha.js:231] [bytecode=0x2f4746268b19 
offset=208](this=0x326cbb2825a1 ,4194304)
3: new constructor(aka Rusha) [0x2f474627d851] 
[https://web.telegram.org/vendor/rusha/rusha.js:239] [bytecode=0x...

[33100:-1055292864:0308/175448.606730:FATAL:v8_initializer.cc(781)]



>
> >
> >
> >
> > OpenBSD 6.5-beta (GENERIC.MP) #776: Wed Mar  6 18:03:29 MST 2019
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 4175851520 (3982MB)
> > avail mem = 4039340032 (3852MB)
> >
> > chromium-72.0.3626.121
> >
> >$ chrome web.telegram.org
> >
> > [63996:-1842259736:0308/173107.524633:ERROR:process_posix.cc(388)] Not 
> > implemented reached in base::Time base::Process::CreationTime() const
> >
> > <--- Last few GCs --->
> >
> > [7985:0xb38758db000] 8635 ms: Mark-sweep 10.9 (14.8) -> 10.9 (14.3) MB, 
> > 37.3 / 2.4 ms  (average mu = 0.028, current mu = 0.001) memory pressure GC 
> > in old space requested
> > [7985:0xb38758db000] 8675 ms: Mark-sweep 10.9 (14.3) -> 10.2 (14.3) MB, 
> > 37.8 / 2.2 ms  (average mu = 0.041, current mu = 0.057) memory pressure GC 
> > in old space requested
> >
> >
> > <--- JS stacktrace --->
> >
> >  JS stack trace =
> >
> > 0: ExitFrame [pc: 0xb35afa2b46b]
> > 1: StubFrame [pc: 0xb35af98210b]
> > Security context: 0x0ea2acc4bc11 https://web.telegram.org>
> > 2: p(aka p) [0x29b671e60b99] [https://web.telegram.org/js/app.js:20] 
> > [bytecode=0x319520badc71 offset=209](this=0x084703f004d1 
> > ,1048576)
> > 3: new constructor(aka t) [0x1ececcb88219] 
> > [https://web.telegram.org/js/app.js:20] [bytecode=0x319520bad711 
> > offset=81](this=0x29b671e60851  >
> > [63996:-2147143104:0308/173116.931342:ERROR:object_proxy.cc(621)] Failed to 
> > call method: org.freedesktop.DBus.Properties.Get: object_path= 
> > /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The 
> > name org.freedesktop.UPower was not provided by any .service files
> > [63996:-2147143104:0308/173116.934483:ERROR:object_proxy.cc(621)] Failed to 
> > call method: org.freedesktop.UPower.GetDisplayDevice: object_path= 
> > /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The 
> > name org.freedesktop.UPower was not provided by any .service files
> > [63996:-2147143104:0308/173116.935940:ERROR:object_proxy.cc(621)] Failed to 
> > call method: org.freedesktop.UPower.EnumerateDevices: object_path= 
> > /org/freedeskt

Re: I can't open web.telegram.org in the Chromium

2019-03-08 Thread Aaron Bieber


Vitaly Kovalyshyn writes:

> Hi @misc !
>
> I need to use Telegram as my main messenger. I'm trying open 
> https://web.telegram.org in the Chromium (-current). But browser crashed. I 
> have installed firefox and surf - everything work fine. The site opens and 
> web version works fine.
>
> Can someone open https://web.telegram.org in the current version of the 
> Chromium? How to fix it? I don't want to use additional browser for Telegram 
> only...
>
> Thank You.

It works fine for me using iridium (with unveil and --site-per-process).

>
>
>
> OpenBSD 6.5-beta (GENERIC.MP) #776: Wed Mar  6 18:03:29 MST 2019
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4175851520 (3982MB)
> avail mem = 4039340032 (3852MB)
>
> chromium-72.0.3626.121
>
>$ chrome web.telegram.org
>
> [63996:-1842259736:0308/173107.524633:ERROR:process_posix.cc(388)] Not 
> implemented reached in base::Time base::Process::CreationTime() const
>
> <--- Last few GCs --->
>
> [7985:0xb38758db000] 8635 ms: Mark-sweep 10.9 (14.8) -> 10.9 (14.3) MB, 
> 37.3 / 2.4 ms  (average mu = 0.028, current mu = 0.001) memory pressure GC in 
> old space requested
> [7985:0xb38758db000] 8675 ms: Mark-sweep 10.9 (14.3) -> 10.2 (14.3) MB, 
> 37.8 / 2.2 ms  (average mu = 0.041, current mu = 0.057) memory pressure GC in 
> old space requested
>
>
> <--- JS stacktrace --->
>
>  JS stack trace =
>
> 0: ExitFrame [pc: 0xb35afa2b46b]
> 1: StubFrame [pc: 0xb35af98210b]
> Security context: 0x0ea2acc4bc11 https://web.telegram.org>
> 2: p(aka p) [0x29b671e60b99] [https://web.telegram.org/js/app.js:20] 
> [bytecode=0x319520badc71 offset=209](this=0x084703f004d1 ,1048576)
> 3: new constructor(aka t) [0x1ececcb88219] 
> [https://web.telegram.org/js/app.js:20] [bytecode=0x319520bad711 
> offset=81](this=0x29b671e60851 
> [63996:-2147143104:0308/173116.931342:ERROR:object_proxy.cc(621)] Failed to 
> call method: org.freedesktop.DBus.Properties.Get: object_path= 
> /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name 
> org.freedesktop.UPower was not provided by any .service files
> [63996:-2147143104:0308/173116.934483:ERROR:object_proxy.cc(621)] Failed to 
> call method: org.freedesktop.UPower.GetDisplayDevice: object_path= 
> /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name 
> org.freedesktop.UPower was not provided by any .service files
> [63996:-2147143104:0308/173116.935940:ERROR:object_proxy.cc(621)] Failed to 
> call method: org.freedesktop.UPower.EnumerateDevices: object_path= 
> /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name 
> org.freedesktop.UPower was not provided by any .service files


-- 



I can't open web.telegram.org in the Chromium

2019-03-08 Thread Vitaly Kovalyshyn
Hi @misc !

I need to use Telegram as my main messenger. I'm trying open 
https://web.telegram.org in the Chromium (-current). But browser crashed. I 
have installed firefox and surf - everything work fine. The site opens and web 
version works fine.

Can someone open https://web.telegram.org in the current version of the 
Chromium? How to fix it? I don't want to use additional browser for Telegram 
only...

Thank You.



OpenBSD 6.5-beta (GENERIC.MP) #776: Wed Mar  6 18:03:29 MST 2019
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4175851520 (3982MB)
avail mem = 4039340032 (3852MB)

chromium-72.0.3626.121

   $ chrome web.telegram.org

[63996:-1842259736:0308/173107.524633:ERROR:process_posix.cc(388)] Not 
implemented reached in base::Time base::Process::CreationTime() const

<--- Last few GCs --->

[7985:0xb38758db000] 8635 ms: Mark-sweep 10.9 (14.8) -> 10.9 (14.3) MB, 
37.3 / 2.4 ms  (average mu = 0.028, current mu = 0.001) memory pressure GC in 
old space requested
[7985:0xb38758db000] 8675 ms: Mark-sweep 10.9 (14.3) -> 10.2 (14.3) MB, 
37.8 / 2.2 ms  (average mu = 0.041, current mu = 0.057) memory pressure GC in 
old space requested


<--- JS stacktrace --->

 JS stack trace =

0: ExitFrame [pc: 0xb35afa2b46b]
1: StubFrame [pc: 0xb35af98210b]
Security context: 0x0ea2acc4bc11 https://web.telegram.org>
2: p(aka p) [0x29b671e60b99] [https://web.telegram.org/js/app.js:20] 
[bytecode=0x319520badc71 offset=209](this=0x084703f004d1 ,1048576)
3: new constructor(aka t) [0x1ececcb88219] 
[https://web.telegram.org/js/app.js:20] [bytecode=0x319520bad711 
offset=81](this=0x29b671e60851 

Re: Virtual Web Server

2019-03-08 Thread Stuart Henderson
On 2019-03-08, daffodil...@protonmail.ch  wrote:
> I installed OpenBSD on my home server with the intention of running Wordpress 
> and some other things (maybe a TOR relay, I don't know). After installing, I 
> used some online guides to get PHP and MySQL as well as httpd (not apache) 
> set up. But after setting up Wordpress, I was getting some errors I was 
> unable to debug (unable to post content, unable to crop images, etc.)
>
> Now I'm thinking instead to run Linux in a VM to host Wordpress but keeping 
> OpenBSD on the machine as the base operating system. What settings do I need 
> to alter in order to serve http and https from a VM? And is this a normal 
> kind of setup or should I work harder at just debugging what is wrong with 
> Wordpress on the OpenBSD setup?
>

Wordpress runs ok on OpenBSD. It used to be in ports but was removed
because there's nothing unusual about the setup for running it on
OpenBSD and with this sort of web application you really want to
be using the standard update mechanism to get security fixes quickly.

You'll probably find it simpler to use a web server other than httpd(1)
to start with (nginx or apache httpd), so that the config guides you'll
find are more relevant.

When you have it working then you can start translating the config..





Re: sound volume reduction - chromium

2019-03-08 Thread Tracey Emery
Indeed! Heck yeah, that fixed it here! WOOHOO

Thanks.

On Fri, Mar 08, 2019 at 09:09:59AM -0600, joshua stein wrote:
> On Fri, 08 Mar 2019 at 10:46:24 +0200, Mihai Popescu wrote:
> > Hello,
> > 
> > Does anyone observe some sound volume reduction when chromium is
> > displaying some specific tabs?
> > 
> > I am using mpv in xterm with some internet radio, when I point
> > chromium to some tabs (with or without multimedia in them, I can't
> > figure out for the moment) the sound volume is dropping a little but
> > noticeable and it is coming back to normal when I close chromium or
> > the offending tabs.
> 
> That is probably sndiod(8) doing its default behavior of trying to 
> avoid clipping by reducing volume when multiple things are playing.  
> See the -w option in the sndiod man page.



Re: sound volume reduction - chromium

2019-03-08 Thread joshua stein
On Fri, 08 Mar 2019 at 10:46:24 +0200, Mihai Popescu wrote:
> Hello,
> 
> Does anyone observe some sound volume reduction when chromium is
> displaying some specific tabs?
> 
> I am using mpv in xterm with some internet radio, when I point
> chromium to some tabs (with or without multimedia in them, I can't
> figure out for the moment) the sound volume is dropping a little but
> noticeable and it is coming back to normal when I close chromium or
> the offending tabs.

That is probably sndiod(8) doing its default behavior of trying to 
avoid clipping by reducing volume when multiple things are playing.  
See the -w option in the sndiod man page.



Re: Virtual Web Server

2019-03-08 Thread Michael Hekeler
I would suggest to analyze the problems you have with wordpress on httpd.

Just a few thoughts (shot in the dark): 

"unable to post content" -> write permissions? 

"crop images" -> do you have all the php libraries 
installed that wordpress needs?
What is needed to crop images? gd? image-magick? check wordpress 
requirements.

A good start is to see httpd's error log.
Also see the output of phpinfo().

Installing linux to host wordpress will not magically solve problems ;-)




On Fri, Mar 08, 2019 at 12:09:22PM +, daffodil...@protonmail.ch wrote:
> I installed OpenBSD on my home server with the intention of running 
> Wordpress and some other things (maybe a TOR relay, I don't know). 
> After installing, I used some online guides to get PHP and MySQL as 
> well as httpd (not apache) set up. But after setting up Wordpress, I 
> was getting some errors I was unable to debug (unable to post content, 
> unable to crop images, etc.)
> 
> Now I'm thinking instead to run Linux in a VM to host Wordpress but 
> keeping OpenBSD on the machine as the base operating system. What 
> settings do I need to alter in order to serve http and https from a 
> VM? And is this a normal kind of setup or should I work harder at just 
> debugging what is wrong with Wordpress on the OpenBSD setup?



Re: sound volume reduction - chromium

2019-03-08 Thread Tracey Emery
On March 8, 2019 1:46:24 AM MST, Mihai Popescu  wrote:
>Hello,
>
>Does anyone observe some sound volume reduction when chromium is
>displaying some specific tabs?
>
>I am using mpv in xterm with some internet radio, when I point
>chromium to some tabs (with or without multimedia in them, I can't
>figure out for the moment) the sound volume is dropping a little but
>noticeable and it is coming back to normal when I close chromium or
>the offending tabs.
>
>I can see this even in youtube tab, whenever I open another tab with
>multimedia in it.
>
>Thank you.

Yeah, it does. I couldn't find a chrome setting to stop it. Then again, I 
didn't dig that deeply.
-- 
Tracey Emery


Re: Puffy Security smtpd out of date

2019-03-08 Thread Michael Hekeler
Text on the bottom:
This site Copyright © 2015 Thomas Dwyer .

So maybe Thomas can do?
...or better you look in the official documentation. 



> Am 07.03.2019 um 13:17 schrieb Geir Svalland :
> 
> Hello all.
> 
> Any chance to get the http://puffysecurity.com/wiki/opensmtpd.html updated ?
> 
> Actual description are out of date. Don't work anymore.
> 
> /Hasse
> 


Meinberg Funkuhren DCF77 clocks

2019-03-08 Thread Peter J. Philipp
Hi,

I'm wondering if this particular USB clock is supported in OpenBSD.

https://www.meinbergglobal.com/english/products/usb-dcf77-clock.htm

it's predecessor is the USB5131 model, which is supported under the
umbg(4) driver.  But this one is newer it seems, anyone got this
working or am I going bleeding edge if I want to buy one?

I either want to put it on my EdgeRouter-8 which has no RTC or on a
NUC which does have RTC.

Regards,
-peter



Re: Virtual Web Server

2019-03-08 Thread Josh Grosse
On Fri, Mar 08, 2019 at 12:09:22PM +, daffodil...@protonmail.ch wrote:
> I installed OpenBSD on my home server with the intention of running Wordpress 
> and some other things (maybe a TOR relay, I don't know). After installing, I 
> used some online guides to get PHP and MySQL as well as httpd (not apache) 
> set up. But after setting up Wordpress, I was getting some errors I was 
> unable to debug (unable to post content, unable to crop images, etc.)
> 
> Now I'm thinking instead to run Linux in a VM to host Wordpress but keeping 
> OpenBSD on the machine as the base operating system. What settings do I need 
> to alter in order to serve http and https from a VM? And is this a normal 
> kind of setup or should I work harder at just debugging what is wrong with 
> Wordpress on the OpenBSD setup?

I'm going to guess you are using either httpd(8) or the nginx package
as your web server.  If so, you will need to create a copy of /etc/resolv.conf
as /var/www/etc/resolv.conf.  Both web servers run in a chroot(2) at
/var/www.  After creating the directory and copying the file, restart your
phpXX_fpm daemon.

It was just a guess, of course, because you didn't state what you're using,
or what you've done.



Virtual Web Server

2019-03-08 Thread daffodil-11
I installed OpenBSD on my home server with the intention of running Wordpress 
and some other things (maybe a TOR relay, I don't know). After installing, I 
used some online guides to get PHP and MySQL as well as httpd (not apache) set 
up. But after setting up Wordpress, I was getting some errors I was unable to 
debug (unable to post content, unable to crop images, etc.)

Now I'm thinking instead to run Linux in a VM to host Wordpress but keeping 
OpenBSD on the machine as the base operating system. What settings do I need to 
alter in order to serve http and https from a VM? And is this a normal kind of 
setup or should I work harder at just debugging what is wrong with Wordpress on 
the OpenBSD setup?


Possible sasyncd memory leak ?

2019-03-08 Thread Michał Koc

Hi all,

We have a triple redundant vpn gateway setup with sasyncd running and 
tons of tunnels, about 1000 flows.


Looking at the graph of memory usage, you can clearly see that something 
is sucking up the memory.


The graph can be viewed here: https://pasteboard.co/I4sjzQ8.jpg

Looking at the ps, sasyncd shows huge memory consumption:

USER PID   %CPU  %MEM   VSZ  RSS    TT STAT  
STARTED   TIME   COMMAND
_isakmpd 33560  0.0   17.0    699264   708508 ?? S    
26Feb19    6:58.81  /usr/sbin/sasyncd


It only happens on the master node. Slaves do not show such a behavior.

There is nothing about sasyncd in the logs.

After sasyncd restart memory consumption is minimal, but tends to grow.

Is it normal ? or am I missing something ?

Best regards
M.K.



Re: Puffy Security smtpd out of date

2019-03-08 Thread Marcus MERIGHI
z...@znedw.com (Zach Nedwich), 2019.03.08 (Fri) 08:06 (CET):
> http://tomd.tel
> 
> It appears the author has contact details on their personal site
> (which references puffysecurity). Might be worth getting in touch with
> them via the email listed.

I did this on "Thu, 7 Mar 2019 19:41:57 +0100", the answer was along the
lines of "thanks for the heads up, I'm currently moving, no idea when
there will be time to update the guide". 

Marcus

> On 8 March 2019 9:51:02 am AEST, Stuart Henderson  
> wrote:
> >On 2019-03-07, Christer Solskogen  wrote:
> >> On Thu, Mar 7, 2019, 13:19 Geir Svalland 
> >wrote:
> >>
> >>> Hello all.
> >>>
> >>> Any chance to get the http://puffysecurity.com/wiki/opensmtpd.html
> >>> updated ?
> >>>
> >>
> >> Probably. But why not rather ask the person behind the site instead
> >of this
> >> mailing list?
> >>
> >
> >No contact details on the site.
> >
> >If people are going to put up content like this, PLEASE:
> >
> >- mention the date and relevant OpenBSD version number up front
> >and clearly visible so people aren't tricked into thinking something
> >4 years old is still valid. (the iked page on this site is better in
> >this regard).
> >
> >- provide contact details
> >
> >- keeping it up to date would be nice too. getting it into shape
> >for www/faq/ would be even nicer, there's some useful information
> >there which would likely make a good addition.
> 
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.



sound volume reduction - chromium

2019-03-08 Thread Mihai Popescu
Hello,

Does anyone observe some sound volume reduction when chromium is
displaying some specific tabs?

I am using mpv in xterm with some internet radio, when I point
chromium to some tabs (with or without multimedia in them, I can't
figure out for the moment) the sound volume is dropping a little but
noticeable and it is coming back to normal when I close chromium or
the offending tabs.

I can see this even in youtube tab, whenever I open another tab with
multimedia in it.

Thank you.



Console keyboard layout gets reset if you unplug the keyboard

2019-03-08 Thread Alfred Morgan
On an amd64 running OpenBSD 6.4 in the console:
doas kbd us.dvorak


You will find the layout is not dvorak anymore and is qwerty instead.

This also is a problem if you don't have a keyboard plugged in on boot. The
/etc/kbdtype containing "us.dvorak" gets ignored when plugging in a USB
keyboard and will default to qwerty.

-- 
-alfred