Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: lpd memory violations
Date: Sun, 1 Dec 1996 15:22:57 -0700 (MST)	[thread overview]
Message-ID: <199612012222.PAA02989@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.3.95.961130190432.5883B-100000@wehsal.mb.jhu.edu>

> 
> lpd calls __ivaliduser to check if a host is in either
> /etc/hosts.equiv or /etc/hosts.lpr. The way it calls it is:
> 
> __ivaliduser(fd, hostname, DUMMY, DUMMY, baselen)
> 
> However, when called, all it gives is a line
> that goes something like:
> 
> memory violation at pc=155556bfa20 rp=155556beba0 (bad address = 00000000)

I do not have sources handy, but you have 99% chance that this problem
is caused by passing to __ivaliduser long, or pointer, where it
expects int, or vice-versa.  __invaliduser may "know", for example,
that 'int' is long enough to keep length of a baselen but gets something
of size_t type and the whole stack gets out of whack.  If you do not
have sources to __ivaliduser, and nobody will volunteer with a
prototype, then tracing the call in a debugger is likely the only
option (and probably on an assembler level - grrr ...).

As long as __ivaliduser is not totally hosed and does not truncate
pointers to 32-bits thing can be likely rescued by a few casts on
call arguments.

  Good luck,
  Michal

P.S. An attempt to send mail directly to the original poster fails
with this interesting, ahem, error :-)

 --QAA10600.849477332/wehsal.mb.jhu.edu

 The original message was received at Sun, 1 Dec 1996 16:55:30 -0500
 from ellpspace.math.ualberta.ca [129.128.88.19]

    ----- The following addresses have delivery notifications -----
 |/usr/bin/filter  (unrecoverable error)
     (expanded from: <zeus@wehsal.mb.jhu.edu>)

    ----- Transcript of session follows -----
 sh: /usr/bin/filter: No such file or directory
 554 |/usr/bin/filter... unknown mailer error 126

 --QAA10600.849477332/wehsal.mb.jhu.edu
 Content-Type: message/delivery-status

 Reporting-MTA: dns; wehsal.mb.jhu.edu
 Received-From-MTA: DNS; ellpspace.math.ualberta.ca
 Arrival-Date: Sun, 1 Dec 1996 16:55:30 -0500

 Final-Recipient: RFC822; zeus@wehsal.mb.jhu.edu
 X-Actual-Recipient: RFC822; |/usr/bin/filter@wehsal.mb.jhu.edu
 Action: failed
 Status: 5.0.0

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1996-12-01 22:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.95.961130190432.5883B-100000@wehsal.mb.jhu.edu>
1996-12-01 22:22 ` Michal Jaegermann [this message]
1996-12-02  3:51   ` lpd memory violations Jeff Odom
1996-12-02 15:48 Przemek Klosowski
  -- strict thread matches above, loose matches on Subject: below --
1996-12-02  4:28 Przemek Klosowski
1996-12-01  0:12 Jeff Odom
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