NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/45588: Switching many pthreads causes segv
The following reply was made to PR kern/45588; it has been noted by GNATS.
From: "NARUSE, Yui" <naruse%airemix.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: David Holland <dholland-bugs%netbsd.org@localhost>,
kern-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/45588: Switching many pthreads causes segv
Date: Mon, 14 Nov 2011 03:15:06 +0900
(2011/11/14 2:45), David Holland wrote:
> On Mon, Nov 07, 2011 at 06:45:00PM +0000, naruse%airemix.jp@localhost
> wrote:
> > Making many (1000) pthreads and switching them, it causes segv.
>
> The last time I did something like that (years ago) it killed the
> system entirely...
You can reproduce it with my attached code ;-)
> Are you running out of virtual address space to put thread stacks in?
Yeah, it seems something like it.
By ktrace/kdump, _lwp_ctl returns error "Can't allocate memory".
sched_yield(2) should returns error instead of segv.
--
NARUSE, Yui <naruse%airemix.jp@localhost>
Home |
Main Index |
Thread Index |
Old Index