Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2009 22:51:49 GMT
From:      ron <rzo@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   amd64/132677: error calling fork execvp
Message-ID:  <200903152251.n2FMpnRk014352@www.freebsd.org>
Resent-Message-ID: <200903152300.n2FN05ON061692@freefall.freebsd.org>

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

>Number:         132677
>Category:       amd64
>Synopsis:       error calling fork execvp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 15 23:00:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     ron
>Release:        7.1 amd64
>Organization:
>Environment:
FreeBSD bsd64.ARBEITSGRUPPE 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 08:58:24 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
hello,

calling execvp(2) works fine.

however calling 

pid = fork()
if (pid == 0)
  execvp(2)

returns error 22 (invalid value)

calling

pid = fork()
if (pid == 0)
  execve(3)

works fine

- Ron
>How-To-Repeat:

>Fix:


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



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