Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stefan Boresch <stefan@mdy.univie.ac.at>
To: axp-list@redhat.com
Subject: Strange error message running a Digital Unix executable -- solved
Date: Tue, 26 May 98 14:19:15 MESZ	[thread overview]
Message-ID: <199805261219.OAA05593@alpha.mdy.univie.ac.at> (raw)

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:

<sc 49(140ca7de0,40,c)>

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 <sc 49(140ca7de0,40,c)> 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.


                 reply	other threads:[~1998-05-26 12:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox