From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199612012222.PAA02989@ellpspace.math.ualberta.ca> Date: Sun, 1 Dec 1996 15:22:57 -0700 (MST) From: Michal Jaegermann Subject: Re: lpd memory violations In-Reply-To: > > 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: ) ----- 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