From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5851 invoked from network); 26 May 1998 12:14:18 -0000 Received: from helix.mdy.univie.ac.at (131.130.40.7) by mail2.redhat.com with SMTP; 26 May 1998 12:14:18 -0000 Received: from alpha.mdy.univie.ac.at (alpha.mdy.univie.ac.at [131.130.40.3]) by helix.mdy.univie.ac.at (8.8.8/8.8.8) with ESMTP id OAA05767 for ; Tue, 26 May 1998 14:14:02 +0200 (MDT) From: Stefan Boresch Received: (from stefan@localhost) by alpha.mdy.univie.ac.at (8.8.8/8.8.8) id OAA05593 for axp-list@redhat.com; Tue, 26 May 1998 14:19:17 +0200 (MESZ) Message-Id: <199805261219.OAA05593@alpha.mdy.univie.ac.at> Subject: Strange error message running a Digital Unix executable -- solved To: axp-list@redhat.com Date: Tue, 26 May 98 14:19:15 MESZ Reply-To: stefan@mdy.univie.ac.at Mailer: Elm [revision: 70.85] I think I found the cause and have a workaround. Maybe this helps someone, and maybe someone can help me find a more general solution. Briefly the problem again: A large program package compiled on DEC Unix (4.0) with the DEC f77 compiler (non_shared) for performance reasons runs OK under Linux (RH 5.0, 2.0.33; RH 4.2, 2.0.30) but produces tons of error messages to the console that look like: In addition, the syslog gets flooded (from /var/log/messages): May 25 15:15:05 delta kernel: Cannot read proc file system: 9 - Bad file descriptor. In fact, the problem is a bit more obnoxious than I thought yesterday because after a while syslogd and klogd get so confused that they eat up 30% of the CPU each, even if the offending process has finished. This I noticed only this morning -- restarting the daemons doesn't help, btw. Following a hint from Michal Jaegermann (thanks!), I looked at the strace output from a sample run. After some testing, I have found the 'culprit'. The getlogin and getlog (for FORTRAN) system calls don't transfer well from DEC Unix to Linux, i.e., they (i) don't work and (ii) lead to the error -- the strace output looks as follows: SYS_49(0x140ca7de0, 0x40, 0xc, 0x2020202020202000, 0xfffffffffffffff9) = -1 EPERM (Operation not permitted) Once one avoids to use getlog and getlogin (I can live without them), the weird proc filesystem warning doesn't occur either. Stefan PS: Wasn't there an emulation(?) library in the works that would do away with the need for a 'non_shared' executable? (I don't want to 'steal' the original DEC shared libs) However, what about libm, where I certainly want to use the one from DEC for performance reasons.