NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/39504: times(2) in linux emul fails with null arg



>Number:         39504
>Category:       kern
>Synopsis:       times(2) in linux emul fails with null arg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 08 10:25:00 +0000 2008
>Originator:     Arto Huusko
>Release:        NetBSD 4.99.72
>Organization:
>Environment:
NetBSD localhost 4.99.72 NetBSD 4.99.72 (DUUNI) #1: Wed Sep  3 21:43:28 EEST 
2008  
root%mutteri.local@localhost:/local/netbsd/build/netbsd-current/amd64/obj/sys/arch/amd64/compile/DUUNI
 amd64
>Description:
times(2) system call in linux allows the "buf" argument to be NULL, but NetBSD 
linux32 emulation (and presumably linux emulation) fails when times is called 
with NULL argument.

An excerpt from times(2) manual page says:

"On  Linux,  the  buf argument can be specified as NULL, with the result that 
times() just returns a function result.  However, POSIX  does  not specify  
this  behaviour, and most other Unix implementations require a non-NULL value 
for buf."

>How-To-Repeat:
For example, try to run Oracle SQLPlus on Oracle instant client 10.2.0.3, and 
see it go into an endless loop calling times.
>Fix:



Home | Main Index | Thread Index | Old Index