Re: Strange semaphore behavior, sem_init() fails with errno 4294967295 (-1)

2019-02-20 Thread BERTRAND Joël
Mouse a écrit : >> In each thread, my software does a fork() followed by an execve(). >> If I remove this fork(), I'm unable to reproduce this bug. > > I have a fuzzy memory that fork() may do something to semaphores...? Maybe if fork() occurs just when sem_init() tries to allocate

Re: Strange semaphore behavior, sem_init() fails with errno 4294967295 (-1)

2019-02-20 Thread Mouse
> In each thread, my software does a fork() followed by an execve(). > If I remove this fork(), I'm unable to reproduce this bug. I have a fuzzy memory that fork() may do something to semaphores...? > int > sem_init(sem_t *sem, int pshared, unsigned int value) > { > intptr_tsemid; >

Re: Strange semaphore behavior, sem_init() fails with errno 4294967295 (-1)

2019-02-20 Thread BERTRAND Joël
I have forgotten a precision. In each thread, my software does a fork() followed by an execve(). If I remove this fork(), I'm unable to reproduce this bug. Maybe sem_init() returns an error when fork() is called form another thread. That's beeing said, sem_init in librt is : int sem_init(sem_t

Re: how do I automate an install of a NetBSD QEMU guest on a linux host?

2019-02-20 Thread Martin Husemann
On Wed, Feb 20, 2019 at 05:28:55PM +0100, Martin Husemann wrote: > On Wed, Feb 20, 2019 at 10:59:13AM -0500, Andrew Cagney wrote: > > For instance, some sort of magic long virt-install command that feeds > > necessary options directly to sysinst. Searching seems to either come > > up with: > > >

Re: Video Driver for Intel - resolution stuck at 800x600

2019-02-20 Thread David Brownlee
... and a final update which checks and reports the kernel build versions, and adds a few command line options, and posted to github in case anyone finds anything horrifically wrong and wants to push a fix :) https://github.com/abs0/update-netbsd-kernel David On Wed, 6 Feb 2019 at 22:50,

Re: Strange semaphore behavior, sem_init() fails with errno 4294967295 (-1)

2019-02-20 Thread BERTRAND Joël
Hello, I have added some debug code in my software and I have found that sem_init() aborts with "Unknown error: 4294967295" In man page, I can read that, if sem_init() fails, it returns: [EINVAL] value exceeds SEM_VALUE_MAX. [ENOSPC]

Re: how do I automate an install of a NetBSD QEMU guest on a linux host?

2019-02-20 Thread Andreas Gustafsson
Manuel Bouyer wrote: > anita is pure python, so it should run on linux too It does. And you don't need pkgsrc, either, just grab http://www.gson.org/netbsd/anita/download/anita-1.47.tar.gz or get it from github (https://github.com/gson1703/anita). -- Andreas Gustafsson, g...@gson.org

Re: how do I automate an install of a NetBSD QEMU guest on a linux host?

2019-02-20 Thread Martin Husemann
On Wed, Feb 20, 2019 at 10:59:13AM -0500, Andrew Cagney wrote: > For instance, some sort of magic long virt-install command that feeds > necessary options directly to sysinst. Searching seems to either come > up with: > > - do it by hand using the console > - use anita from pkgsrc > > which,

Re: how do I automate an install of a NetBSD QEMU guest on a linux host?

2019-02-20 Thread Manuel Bouyer
On Wed, Feb 20, 2019 at 10:59:13AM -0500, Andrew Cagney wrote: > (while my preference is for amd64 or i386 as they are hopefully more > efficient, I probably don't care) > > For instance, some sort of magic long virt-install command that feeds > necessary options directly to sysinst. Searching

how do I automate an install of a NetBSD QEMU guest on a linux host?

2019-02-20 Thread Andrew Cagney
(while my preference is for amd64 or i386 as they are hopefully more efficient, I probably don't care) For instance, some sort of magic long virt-install command that feeds necessary options directly to sysinst. Searching seems to either come up with: - do it by hand using the console - use