Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2000 18:55:48 -0700 (PDT)
From:      "Ronald F. Guilmette" <rfg@monkeys.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21548: libcoro.a (ports) should use MAP_STACK when allocating stacks
Message-ID:  <200009260155.SAA13285@monkeys.com>

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

>Number:         21548
>Category:       ports
>Synopsis:       libcoro.a (ports) should use MAP_STACK when allocating stacks
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 25 19:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Ronald F. Guilmette
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
Infinite Monkeys & Co.
>Environment:

>Description:

	Looking at the source code for coro.c (in the libcoro port) it appears
	to me that when coro.c is allowed to perform memory allocation for a
	coroutine stack, it should probably be using the MAP_STACK flag in its
	call to mmap(), at least on FreeBSD, where this flag is available.

	(I would say that it should DEFINITELY be using the MAP_STACK flag,
	but the exact semantics of this flag are not 100% clear from reading
	the mmap(2) man page.)

>How-To-Repeat:

	look at the source code -- coro.c

>Fix:

	Add the MAP_STACK flag in the call to mmap() in coro.c.

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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