From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9125 invoked from network); 21 Sep 1998 14:42:18 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 21 Sep 1998 14:42:17 -0000 Received: from vanuata (vanuata.dcs.gla.ac.uk [130.209.240.50]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id KAA32635; Mon, 21 Sep 1998 10:41:58 -0400 Received: from bathurst by vanuata with SMTP DCS (MMTA); Mon, 21 Sep 1998 15:41:11 +0100 Received: from localhost by bathurst; (5.65v3.2/1.1.8.2/19Apr96-0202PM) id AA14164; Mon, 21 Sep 1998 15:41:07 +0100 Message-Id: <9809211441.AA14164@bathurst> X-Mailer: exmh version 2.0.2 2/24/98 To: redhat-bugs@redhat.com, axp-list@redhat.com Cc: rjb@dcs.gla.ac.uk Subject: at least two bugs in strace-3.1-5 Date: Mon, 21 Sep 98 15:41:07 +0100 From: Richard Black X-Mts: smtp MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Summary: I discovered a bug in strace (on alpha), and on investigating discovered that the source RPM appears not to compile on either alpha or intel (multiple problems) Details: 1) The following program, when run under strace on alpha linux shows that strace on alpha linux does not record the mmap call correctly. It is recorded correctly on intel linux. #include #include #include #include #include int main(int argc, char **argv) { int fd = open("/etc/passwd", O_RDONLY); if (mmap(NULL, 8192, PROT_READ, MAP_PRIVATE, fd, 0) == 0) perror("mmap:"); return 0; } gives: open("/etc/passwd", O_RDONLY) = 3 mmap(0, 0, 0x1ffff480, 0 /* MAP_??? */, 2, 0) = 0x1555556a000 exit(0) = ? on alpha, but the correct open("/etc/passwd", O_RDONLY) = 5 mmap(0, 8192, PROT_READ, MAP_PRIVATE, 5, 0) = 0x400b5000 _exit(0) = ? on intel. 2) - Also the strace source rpm (even with the supplied patches) does not compile on either alpha or intel because of a missing kernel include file. strace-3.1/process.c includes which in turn includes , but that header file does not exist. - On intel, the file syscall.c does not compile because of the errors: syscall.c: In function `trace_syscall': syscall.c:513: `ORIG_EAX' undeclared (first use this function) syscall.c:513: (Each undeclared identifier is reported only once syscall.c:513: for each function it appears in.) syscall.c:613: `EAX' undeclared (first use this function) make: *** [syscall.o] Error 1 - On alpha even if config.h is modified to say #undef HAVE_PRCTL the build still fails in sock.c: In function `sock_ioctl': sock.c:60: warning: implicit declaration of function `_IOW' sock.c:60: parse error before `int' sock.c:76: warning: unreachable code at beginning of switch statement It is necessary to also include sys/ioctl.h to get the (buggy) binary shipped in the binary rpm file. Richard