ports/109596: patch for benchmarks/unixbench: execl benchmark fails on 64-bit machines

Ivan Voras ivoras at gmail.com
Tue Feb 27 11:30:11 UTC 2007


>Number:         109596
>Category:       ports
>Synopsis:       patch for benchmarks/unixbench: execl benchmark fails on 64-bit machines
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 27 11:30:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ivan Voras
>Release:        FreeBSD 6.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD xxx 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 08:43:30 UTC 2007 root at portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP amd64


	
>Description:
	
    execl benchmark is not 64-bit ready, and crashes when 0 is passed
    to execl(2) instead of NULL.
>How-To-Repeat:
	
    Run execl benchmark on amd64, observe the error message.
>Fix:

	

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       unixbench_execl.patch
#
echo x - unixbench_execl.patch
sed 's/^X//' >unixbench_execl.patch << 'END-of-unixbench_execl.patch'
X--- unixbench-4.1.0/src/execl.c        Wed Jul 28 21:46:58 1999
X+++ unixbench-4.1.0-new/src/execl.c    Tue Feb 27 10:06:48 2007
X@@ -88,7 +88,7 @@
X               fprintf(stderr, "%lu loops\n", iter);
X               exit(0);
X               }
X-      execl(fullpath, fullpath, "0", dur_str, count_str, start_str, 0);
X+      execl(fullpath, fullpath, "0", dur_str, count_str, start_str, NULL);
X       printf("Exec failed at iteration %lu\n", iter);
X       perror("Reason");
X       exit(1);
END-of-unixbench_execl.patch
exit


Since unixbench is unmaintained, I propose this patch be added
as a local FreeBSD ports patch.

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



More information about the freebsd-ports-bugs mailing list