Re: this assembly example works in linux, netbsd - but not in openbsd, why?

2019-10-29 Thread Philip Guenther
On Tue, 29 Oct 2019, Guild Navigator wrote: > Program prints first two strings directly. > But it does not print the third string (1st array string). > > And debugging says why. > The address of msg1 and msg2 is not stored correctly in the array. > So when I access the address of msg1 from the

Will Theo de Raadt and other OpenBSD developer answer this topic (https://marc.info/?l=openbsd-misc=157234932505571=2)?

2019-10-29 Thread Clark Block
Will Theo de Raadt and other OpenBSD developer answer this topic ( https://marc.info/?l=openbsd-misc=157234932505571=2)?

Re: Kernel Debugging

2019-10-29 Thread Neeraj Pal
Hi, I was debugging the OpenBSD kernel using Qemu and gdb. Well, it depends on the task. You can follow the below link if it suits to you and sees if it works for you. http://bijanebrahimi.github.io/blog/remote-debugging-the-running-openbsd-kernel.html In my case, I was debugging pledge(2) and

Re: Setting charset in Content-Type header with relayd and httpd

2019-10-29 Thread Bertalan Zoltán Péter
Hello, Hiltjo Posthuma [2019-10-29 23:15:56 +0100]: > You can actually do it in httpd.conf. > > This will give a syntax error (httpd -n): > > "text/plain; charset=utf-8" txt > > Using quoting will work: > > "text"/"plain; charset=utf-8" txt Thank you, this indeed works,

Re: Setting charset in Content-Type header with relayd and httpd

2019-10-29 Thread Hiltjo Posthuma
On Tue, Oct 29, 2019 at 08:41:54PM +0100, Bertalan Zoltán Péter wrote: > Hello, > > I have a working httpd server behind a relayd reverse proxy. > > Recently I wanted to host some simple text files in a directory that > contained UTF-8 characters. Unfortunately, I noticed that when opened > from

Setting charset in Content-Type header with relayd and httpd

2019-10-29 Thread Bertalan Zoltán Péter
Hello, I have a working httpd server behind a relayd reverse proxy. Recently I wanted to host some simple text files in a directory that contained UTF-8 characters. Unfortunately, I noticed that when opened from a browser, say iridium, these documents render with incorrect encoding and are

Re: rspamd stop rc script doesn't work in OpenBSD 6.6

2019-10-29 Thread List
On Sun, 27 Oct 2019 21:29:41 -0700 Jordan Geoghegan wrote: > On 2019-10-27 17:29, Chris Narkiewicz wrote: > > Rspamd stop rc script doesn't work in OpenBSD 6.6. > > > > 1. Fresh OpenBSD 6.6 installation > > 2. pkg_add rspamd > > 3. rcctl start rspamd > > > > Works. > > > > 4. rcctl stop rspamd

Kernel Debugging

2019-10-29 Thread List
Hi, I was wondering how you guys debug your kernel? Are you doing some vmd(8) voodoo ? Recompiling every time you think you've found the error gets quite exhausting over time. g, Stephan

Re: OpenBSD VM on ESXi: uvn_flush: obj=0xfffffd813ee78298, offset=0x33f000. error during pageout.

2019-10-29 Thread Mike Larkin
On Tue, Oct 29, 2019 at 09:16:42PM +0100, Jurjen Oskam wrote: > Hi, > > I'm using VMware ESXi (currently on 6.7 Update 3) to try things out before > running it on bare metal hardware. I've been doing this for a few release > cycles now. With the release of 6.6 I've encountered a phenomenon I >

OpenBSD VM on ESXi: uvn_flush: obj=0xfffffd813ee78298, offset=0x33f000. error during pageout.

2019-10-29 Thread Jurjen Oskam
Hi, I'm using VMware ESXi (currently on 6.7 Update 3) to try things out before running it on bare metal hardware. I've been doing this for a few release cycles now. With the release of 6.6 I've encountered a phenomenon I haven't seen before. After the VM is installed, there is a high probability

Re: Will future programmers probably warn people not to use high-level programming languages just as most programmers today warn people not to use assembler?

2019-10-29 Thread Mike
On 10/29/2019 1:17 PM, Nathan Hartman wrote: > On Tue, Oct 29, 2019 at 7:41 AM Clark Block wrote: > >> Just as most programmers today warn people not to use assembler, probably >> future programmers will warn people not to use high-level programming >> languages. > > > In the future, computers

Re: relayd reverse proxy with TLS to multiple servers

2019-10-29 Thread Bertalan Zoltán Péter
Anthony J. Bentley [2019-09-29 23:17:06 -0600]: > I don't claim to understand all of openssl's output, but when I try > it on my certs I get various CNs that I don't expect either, even > though I'm quite confident the certificate has a valid hostname. Hi, Thanks for your reply. Since then I

Re: Will future programmers probably warn people not to use high-level programming languages just as most programmers today warn people not to use assembler?

2019-10-29 Thread Nathan Hartman
On Tue, Oct 29, 2019 at 7:41 AM Clark Block wrote: > Just as most programmers today warn people not to use assembler, probably > future programmers will warn people not to use high-level programming > languages. In the future, computers will program programmers.

Re: this assembly example works in linux, netbsd - but not in openbsd, why?

2019-10-29 Thread Ted Unangst
Guild Navigator wrote: > But what would be the OpenBSD correct way to > write such simple print-from-the-array-of-strings program? printf

Re: this assembly example works in linux, netbsd - but not in openbsd, why?

2019-10-29 Thread Guild Navigator
No. I am using amd64. Which is really obvious from the register usage in the program. Program prints first two strings directly. But it does not print the third string (1st array string). And debugging says why. The address of msg1 and msg2 is not stored correctly in the array. So when I access

Re: this assembly example works in linux, netbsd - but not in openbsd, why?

2019-10-29 Thread Simon Mages
Does not work how? Are you using i386? 2019-10-29 13:50 GMT+01:00, Guild Navigator : > # as why.asm -o why.o > # ld why.o -e start -static -o why > > .global start > > .equ SYS_EXIT, 0x01 > .equ SYS_WRITE, 0x04 > .equ STD_OUT, 0x01 > > # this example works in linux (with changed syscalls) > #

Re: this assembly example works in linux, netbsd - but not in openbsd, why?

2019-10-29 Thread Theo de Raadt
We have changed the ABI. Pray we do not change it further. Guild Navigator wrote: > # as why.asm -o why.o > # ld why.o -e start -static -o why > > .global start > > .equ SYS_EXIT, 0x01 > .equ SYS_WRITE, 0x04 > .equ STD_OUT, 0x01 > > # this example works in linux (with changed syscalls) > #

Re: vpn.rebehn.net upgrade log

2019-10-29 Thread Stuart Henderson
On 2019-10-28, Heinrich Rebehn wrote: > Hello list, > > After upgrading a OpenBSD host running 6.5 to 6.6 using sysupgrade(8), I > received the email below. > It suggests that the upgrade has been aborted upon failure to upgrade > comp66.tgz. This set was not part of the initial installation. >

Re: Disable ftp in pkg_add syspatch sysupgrade

2019-10-29 Thread Stuart Henderson
On 2019-10-29, PJ wrote: > Am 28.10.19 um 23:52 schrieb Stuart Henderson: >> On 2019-10-28, Andy Lemin wrote: >>> Hi guys, >>> >>> Does anyone know if it is possible to completely disable ftp in the package >>> management utilities; pkg_add, syspatch, sysupgrade etc? >>> >>> My PKG_PATH

this assembly example works in linux, netbsd - but not in openbsd, why?

2019-10-29 Thread Guild Navigator
# as why.asm -o why.o # ld why.o -e start -static -o why .global start .equ SYS_EXIT, 0x01 .equ SYS_WRITE, 0x04 .equ STD_OUT, 0x01 # this example works in linux (with changed syscalls) # also in netbsd, but not in openbsd. why? .macro sys syscall .endm .text start: # print first message leaq

Will future programmers probably warn people not to use high-level programming languages just as most programmers today warn people not to use assembler?

2019-10-29 Thread Clark Block
Hi! Just as most programmers today warn people not to use assembler, probably future programmers will warn people not to use high-level programming languages. It is written in book Java How to Program ninth edition that instead of using the strings of numbers that computers could directly

Changes to VLAN and promiscuous mode in 6.6

2019-10-29 Thread Zé Loff
Hi all Some changes in VLAN-related code went into 6.6 and I think some of them changed the way the parent interface gets into promiscuous mode. Let me try to explain... Our ISP provides internet and VoIP over two separate VLANs (100 and 101, respectively). Our external firewall has two

Re: What is the relationship between fdisk and disklabel?

2019-10-29 Thread Peter Kay
Your disk layout is strange, an EFI partition is typically initialised by a GPT disk, not MBR. GPT has a number of advantages including no differentiation between primary and extended partitions, and beating the 2TB limit of MBR. When created, GPT also creates a 'protective MBR' covering the

Re: What is the relationship between fdisk and disklabel?

2019-10-29 Thread dmitry.sensei
Thanks. I used partition cloning software recently. I'll fix it  вт, 29 окт. 2019 г., 14:10 Peter Kay : > Your disk layout is strange, an EFI partition is typically initialised by > a GPT disk, not MBR. > > > GPT has a number of advantages including no differentiation between > primary and

Re: When will be created a great desktop experience for OpenBSD?

2019-10-29 Thread Walter Alejandro Iglesias
In article <20191028083820.ga43...@nausicaa.home> Marc Espie wrote: > On Fri, Oct 25, 2019 at 05:35:27PM +, flauenroth wrote: > > Apparently not just theo is using fvwm after all. :) > > Considering all the people using it, it would be great if someone were to > look at the enhancements of

Re: Disable ftp in pkg_add syspatch sysupgrade

2019-10-29 Thread PJ
Am 28.10.19 um 23:52 schrieb Stuart Henderson: > On 2019-10-28, Andy Lemin wrote: >> Hi guys, >> >> Does anyone know if it is possible to completely disable ftp in the package >> management utilities; pkg_add, syspatch, sysupgrade etc? >> >> My PKG_PATH references http:// urls, as does

Re: What is the relationship between fdisk and disklabel?

2019-10-29 Thread chohag
dmitry.sensei writes: > Why offset in disklabel for a partition is different from fdisk output? > 423202816 and 433358194 Something wrote the MBR and/or disklabel incorrectly. Probably a repartitioning or other data shuffling process gone wrong. > When I add label for partition 3 as in fdisk

What is the relationship between fdisk and disklabel?

2019-10-29 Thread dmitry.sensei
Hi!. In my opinion disklabel and fdisk whow very different information. Why offset in disklabel for a partition is different from fdisk output? 423202816 and 433358194 When I add label for partition 3 as in fdisk output i get overlapping error. disklabel # /dev/rsd0c: total sectors: