re: zsh crash in recent -current

2019-03-13 Thread matthew green
> (while none I have ever seen actually do, the > malloc implementation is free to retrn the memory to the kernel, and > remove it from the process's address space). FWIW, both old and new jemalloc are capable of doing this. :-) .mrg.

daily CVS update output

2019-03-13 Thread NetBSD source update
Updating src tree: P src/crypto/external/bsd/openssl/dist/crypto/armcap.c P src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/ppccpuid.S P src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ppccpuid.S P src/lib/libcurses/get_wch.c P src/lib/libcurses/getch.c P

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Robert Elz
Date:Wed, 13 Mar 2019 11:44:51 -0700 From:Jason Thorpe Message-ID: <9a2a4a34-35b0-490e-9a92-aab44174f...@me.com> | Ok, well, I see some problematic code in sys_mlock() and sys_munlock(), | but I don't think it's affecting this case (and it may in fact have |

Re: zsh crash in recent -current

2019-03-13 Thread Robert Elz
Date:Wed, 13 Mar 2019 10:37:41 -0700 From:Brian Buhrow Message-ID: <201903131737.x2dhbfd8001...@lothlorien.nfbcal.org> | Given this code fragment and the discussion you raise | about it, allow me to ask what perhaps is a naive question. If the sample | you

Re: UFS2 feature: inode space used for data

2019-03-13 Thread Michael van Elst
rhia...@falu.nl (Rhialto) writes: >in the set is allocated and initialized. The set of blocks that may >be allocated to inodes is held as part of the free-space reserve >until all other space in the filesystem is allocated. Only then can >it be used for file data.=20 >But the bit

UFS2 feature: inode space used for data

2019-03-13 Thread Rhialto
I was reading about the history of the Unix File System. In https://www.usenix.org/legacy/events/bsdcon03/tech/full_papers/mckusick/mckusick_html/ "Enhancements to the Fast Filesystem To Support Multi-Terabyte Storage Systems" there is this in section 4.1. Dynamic Inodes One of the

Re: zsh crash in recent -current

2019-03-13 Thread Brett Lymn
On Wed, Mar 13, 2019 at 11:32:05AM +, Chavdar Ivanov wrote: > Setting INSTALL_UNSTRIPPED=yes didn't work for me for zsh and ncurses, > I still had to find all the '-s' flags in the install command > invocations. Perhaps I am doing something wrong. Still, I've gor now > zsh with the debug

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Jason Thorpe
> On Mar 13, 2019, at 10:27 AM, Robert Elz wrote: > > Some progress. > > #1 touching the buffer that malloc() returns (which is page aligned) > made no difference - it is likely that the malloc llibrary would have > done that in any case (the malloc is for just one page, so either it > is

Re: zsh crash in recent -current

2019-03-13 Thread Brian Buhrow
hello Robert. Given this code fragment and the discussion you raise about it, allow me to ask what perhaps is a naive question. If the sample you quote is incorrect, what is the correct way to accomplish the same task? -thanks -Brian On Mar 13, 6:27pm, Robert Elz wrote: } Subject: Re:

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Robert Elz
Some progress. #1 touching the buffer that malloc() returns (which is page aligned) made no difference - it is likely that the malloc llibrary would have done that in any case (the malloc is for just one page, so either it is resident (or paged) or it is a ZFoD page, and most likely not the

Re: xdm receives no input

2019-03-13 Thread Chavdar Ivanov
Awesome, thanks! That's a thing which pops up from time to time, I've had it myself. On Wed, 13 Mar 2019 at 15:04, Patrick Welche wrote: > > On Tue, Mar 12, 2019 at 05:17:10PM +, Chavdar Ivanov wrote: > > /etc/ttys ? > > Absolutely right. This laptop's xdm worked before the update, so I

Re: xdm receives no input

2019-03-13 Thread Patrick Welche
On Tue, Mar 12, 2019 at 05:17:10PM +, Chavdar Ivanov wrote: > /etc/ttys ? Absolutely right. This laptop's xdm worked before the update, so I doubted your suggestion. What happened is that the update replaced my /etc/X11/xdm/Xservers.ws in which I had carefully set vt08 as the terminal to

Re: new jemalloc vs VirtualBox

2019-03-13 Thread Christos Zoulas
In article <20190313104136.gb58...@imac7.ub.uni-mainz.de>, K. Schreiner wrote: >Hi, > >I've had "build.sh ... distribution" failing on an amd64-VM running in >VirtualBox (newest test version) like so: > >... >: /u/NetBSD/src/external/bsd/jemalloc/lib/../dist/src/arena.c:647: >Failed assertion:

Re: zsh crash in recent -current

2019-03-13 Thread Chavdar Ivanov
s/gor/got/. On the other hand there were some jemalloc changes overnight, so I will update the system first and then try to get zsh crashes. On Wed, 13 Mar 2019 at 11:32, Chavdar Ivanov wrote: > > Setting INSTALL_UNSTRIPPED=yes didn't work for me for zsh and ncurses, > I still had to find all

Re: zsh crash in recent -current

2019-03-13 Thread Chavdar Ivanov
Setting INSTALL_UNSTRIPPED=yes didn't work for me for zsh and ncurses, I still had to find all the '-s' flags in the install command invocations. Perhaps I am doing something wrong. Still, I've gor now zsh with the debug options and all modules plus ncurses unstripped. Now to build the OS debug

Re: zsh crash in recent -current

2019-03-13 Thread Robert Elz
Date:Wed, 13 Mar 2019 10:06:42 + From:Chavdar Ivanov Message-ID: | I saw the one with the trashed history as well. | | I don't think it is zsh's problem, though. As I mentioned above, I've | used v5.7 since it came out without any problems until perhaps

Re: xdm receives no input

2019-03-13 Thread Patrick Welche
On Wed, Mar 13, 2019 at 11:54:11AM +0100, Martin Husemann wrote: > On Wed, Mar 13, 2019 at 10:44:46AM +, Patrick Welche wrote: > > I stared at /etc/X11/xdm/Xresources, and > > https://gitlab.freedesktop.org/xorg/app/xdm/blob/master/config/Xresources.in > > and didn't spot additional fields

Tilissäsi havaittu epätavallinen toiminta vahvistaa tilisi vastaanottaaksesi saapuvan odottavan postisi

2019-03-13 Thread Emiliano.Bagnoli
Päivitä tilisi Tietojemme mukaan tiliäsi ei ole päivitetty, mikä on saattanut johtaa tilisi sulkemiseen. Jos et päivitä tiliäsi, et voi enää lähettää ja vastaanottaa sähköpostiviestejä, ja et saa pääsyä moniin uusimpiin keskusteluihin, yhteystietoihin ja liitteisiin. Päivitä tili nopeammin

Re: xdm receives no input

2019-03-13 Thread Martin Husemann
On Wed, Mar 13, 2019 at 10:44:46AM +, Patrick Welche wrote: > I stared at /etc/X11/xdm/Xresources, and > https://gitlab.freedesktop.org/xorg/app/xdm/blob/master/config/Xresources.in > and didn't spot additional fields (just our fonts are smaller and we > fiddle with the NetBSD logo) - what

Re: xdm receives no input

2019-03-13 Thread Patrick Welche
On Wed, Mar 13, 2019 at 08:10:23AM +1100, matthew green wrote: > Patrick Welche writes: > > Had a go with the shiny new X (thanks!) on the sandy bridge laptop > > which no longer likes SNA but works with UX, and xdm seems to sit > > at the prompt waiting for something: > > ... > is it a black

new jemalloc vs VirtualBox

2019-03-13 Thread K. Schreiner
Hi, I've had "build.sh ... distribution" failing on an amd64-VM running in VirtualBox (newest test version) like so: ... : /u/NetBSD/src/external/bsd/jemalloc/lib/../dist/src/arena.c:647: Failed assertion: "nstime_compa\ re(>epoch, ) <= 0" ... [1] Abort trap (core dumped)

Re: zsh crash in recent -current

2019-03-13 Thread Chavdar Ivanov
Thanks. One has to read the manuals from time to time... On Wed, 13 Mar 2019 at 10:21, Patrick Welche wrote: > > On Wed, Mar 13, 2019 at 10:06:42AM +, Chavdar Ivanov wrote: > > I saw the one with the trashed history as well. > > > > I don't think it is zsh's problem, though. As I mentioned

Re: zsh crash in recent -current

2019-03-13 Thread Patrick Welche
On Wed, Mar 13, 2019 at 10:06:42AM +, Chavdar Ivanov wrote: > I saw the one with the trashed history as well. > > I don't think it is zsh's problem, though. As I mentioned above, I've > used v5.7 since it came out without any problems until perhaps 3-4 > days ago. > > I tried to build zsh

Re: zsh crash in recent -current

2019-03-13 Thread Chavdar Ivanov
OK, I understand. I should carry on using it to see if it will break again and perhaps get something useful. On Wed, 13 Mar 2019 at 10:09, Martin Husemann wrote: > > On Wed, Mar 13, 2019 at 10:06:42AM +, Chavdar Ivanov wrote: > > I saw the one with the trashed history as well. > > > > I

Re: zsh crash in recent -current

2019-03-13 Thread Martin Husemann
On Wed, Mar 13, 2019 at 10:06:42AM +, Chavdar Ivanov wrote: > I saw the one with the trashed history as well. > > I don't think it is zsh's problem, though. As I mentioned above, I've > used v5.7 since it came out without any problems until perhaps 3-4 > days ago. It still is very likely a

Re: zsh crash in recent -current

2019-03-13 Thread Chavdar Ivanov
I saw the one with the trashed history as well. I don't think it is zsh's problem, though. As I mentioned above, I've used v5.7 since it came out without any problems until perhaps 3-4 days ago. I tried to build zsh with debug (adding --enable-zsh-debug --enable-zsh-mem --enable-zsh-mem-debug

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Robert Elz
OK, with DIAGNOSTIC enabled, and with this patch made: --- uvm_page.c 19 May 2018 15:03:26 - 1.198 +++ uvm_page.c 13 Mar 2019 08:51:11 - @@ -1605,9 +1605,11 @@ uvm_pageunwire(struct vm_page *pg) { KASSERT(mutex_owned(_pageqlock)); + KASSERT(pg->wire_count != 0);

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Manuel Bouyer
On Wed, Mar 13, 2019 at 03:22:27PM +0700, Robert Elz wrote: > [...] > > netbsd# df /tmp > Filesystem1K-blocks Used Avail %Cap Mounted on > tmpfs 4 4 0 100% /tmp > > That's what it showed (it was still in my xterm scrollback buffer from > the

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Robert Elz
Date:Tue, 12 Mar 2019 23:21:59 -0700 From:Jason Thorpe Message-ID: | THAT is particularly special, because the code in question is: | | | void | uvm_pagewire(struct vm_page *pg) | { | KASSERT(mutex_owned(_pageqlock)); | #if

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Robert Elz
Date:Tue, 12 Mar 2019 23:21:59 -0700 From:Jason Thorpe Message-ID: Thanks for the reply. I have dropped tech-kern and tech-userlevel from this reply though. | The test employs a bogus understanding of how malloc() is specified. Yes, that is kind of obvious,

Re: ATF t_mlock() babylon5 kernel panics

2019-03-13 Thread Jason Thorpe
> On Mar 12, 2019, at 9:09 PM, Robert Elz wrote: > > The first issue I noticed, is that t_mlock() apparently belives > the malloc(3) man page, which states: > > The malloc() function allocates size bytes of uninitialized memory. The > allocated space is suitably aligned (after