Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2004 15:44:06 +0200 (CEST)
From:      Peter Holm <peter@holm.cc>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/68987: panic: kmem_malloc(163840): kmem_map too small
Message-ID:  <200407131344.i6DDi6g1000801@current.osted.lan>
Resent-Message-ID: <200407131350.i6DDoJ4W092703@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68987
>Category:       kern
>Synopsis:       panic: kmem_malloc(163840): kmem_map too small
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 13:50:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Peter Holm
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD current.osted.lan 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue Jul 13 11:04:18 CEST 2004 pho@current.osted.lan:/usr/src/sys/i386/compile/PHO i386


	
>Description:
	Stress test of core dump via kse_create seems to create the problem, with
	"define PREEMPTION" removed from sys/i386/include/param.h.

	With PREEMPTION defined I get lock ups or these problems:
	http://www.holm.cc/stress/log/cons58.html
	http://www.holm.cc/stress/log/cons59.html
	http://www.holm.cc/stress/log/cons60.html

	Details of the current problem is at
	http://www.holm.cc/stress/log/cons61.html
>How-To-Repeat:
kse_create.c:
int main(int argc, char **argv)
{
        struct kse_mailbox mbx;
        int newgroup = 1;
        int r;
        int i;

        bzero(&mbx, sizeof(mbx));
        mbx.km_version = 1912;
        for (i = 0; i < 499; i++) {
                r = kse_create(&mbx, newgroup);
                if (r == -1)
                        err(1, "kse_create, %d", i);
        }
        return 0;
}

plus

while true;do
   date
   ./kse_create&
   ./kse_create&
   wait;wait
done

>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407131344.i6DDi6g1000801>