Mailing List Archive

Strange behavior under sparc-linux.
Hi,
Ok I have qmail-0.96 running on ix86-linux, sos5, and sos4 hosts, no
problem. Here is the catch. I recently put RedHat 4.1 on a sparc-20.
After installation I compile and put qmail on the box just like the rest of
the network. Now here is a problem. This host seems to choke on delivering
mail. The behavior is the same on local or remote mail. Standard compile,
no modifications. Machine not loaded.

Example:
prompt> echo to:moran |/var/qmail/bin/qmail-inject

Then in the log file there is this:

Feb 20 00:43:53 kelvin qmail: 856417433.525234 running
Feb 20 00:44:47 kelvin qmail: 856417487.946710 new msg 49696
Feb 20 00:44:47 kelvin qmail: 856417487.947517 info msg 49696: bytes 224 from
<root@kelvin.math.utk.edu> qp 18161 uid 0
Feb 20 00:44:48 kelvin qmail: 856417488.058747 starting delivery 1: msg 49696
to local moran@kelvin.math.utk.edu

At this point the message has been delivered, I can look in my Mailbox and see
the message. The log file does not state that the message has been delivered.
qmail-qread outputs:

20 Feb 1997 05:44:47 GMT #49696 224 <root@kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu

Now, if I do another echo to:moran |/var/qmail/bin/qmail-inject, I get:

Feb 20 00:55:33 kelvin qmail: 856418133.686764 delivery 1: success: did_1+0+0/
Feb 20 00:55:33 kelvin qmail: 856418133.687485 end msg 49696
Feb 20 00:55:33 kelvin qmail: 856418133.781206 new msg 49697
Feb 20 00:55:33 kelvin qmail: 856418133.781982 info msg 49697: bytes 224 from
<root@kelvin.math.utk.edu> qp 18192 uid 0
Feb 20 00:55:33 kelvin qmail: 856418133.979062 starting delivery 2: msg 49697
to local moran@kelvin.math.utk.edu

And once again it sits there waiting forever (notice 11 minutes between
delivery start and success).

It gets more interesting, if I send a message that has multiple recipients,
the first one on the list gets the message and qmail sits there acting like
it is waiting for delivery to complete. Then if I send another message after
that(to any real address), qmail-qread shows that the first addressee in the
list has been delivered but is waiting on delivery success of the 2nd. If
I send another message, then qmail-qread says that they have all been
delivered successfully, but the messages I have sent trying to get the 1st
multirecipient message to be delivered are still showing in the qmail-qread
list, and have already been delivered. Below I am attaching a typescript
file that shows what I did, and the log file showing what is in the log.

-------------------------------------------------------------------------
Script started on Thu Feb 20 01:12:37 1997
prompt> unalias ls
prompt> uname -a
Linux kelvin.math.utk.edu 2.0.27 #1 Wed Jan 1 19:27:39 EST 1997 sparc
prompt> qmail-qread
prompt> env - PATH="/var/qmail/bin:$PATH" qmail-start splogger qmail &
[1] 18322
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:13:38 GMT #49696 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:14:12 GMT #49697 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:14:25 GMT #49696 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:14:49 GMT #49698 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:16:36 GMT #49700 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> /var/qmail/bin/qmail-inject
To:moran
cc:moran,moran,moran
prompt> qmail-qread
20 Feb 1997 06:17:32 GMT #49698 310 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:17:32 GMT #49698 310 <kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
20 Feb 1997 06:17:46 GMT #49700 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:17:32 GMT #49698 310 <kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
20 Feb 1997 06:17:46 GMT #49700 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
20 Feb 1997 06:17:54 GMT #49701 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> qmail-qread
20 Feb 1997 06:17:32 GMT #49698 310 <kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
20 Feb 1997 06:17:46 GMT #49700 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
20 Feb 1997 06:17:54 GMT #49701 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:18:28 GMT #49704 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
20 Feb 1997 06:17:54 GMT #49701 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:18:41 GMT #49696 224 <kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
prompt> echo to: moran@math.utk.edu | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:19:06 GMT #49697 217 <kelvin.math.utk.edu>
remote moran@math.utk.edu
prompt> echo to: moran@math.utk.edu | /var/qmail/bin/qmail-inject
prompt> qmail-qread
20 Feb 1997 06:19:30 GMT #49696 217 <kelvin.math.utk.edu>
remote moran@math.utk.edu
prompt> uptime
1:19am up 1 day, 4:35, 5 users, load average: 0.05, 0.07, 0.05
prompt> exit

Script done on Thu Feb 20 01:19:59 1997
-----------------------------------------------------------------------
Here is the maillog
-----------------------------------------------------------------------
Feb 20 01:13:17 kelvin qmail: 856419197.324211 running
Feb 20 01:13:38 kelvin qmail: 856419218.778558 new msg 49696
Feb 20 01:13:38 kelvin qmail: 856419218.780188 info msg 49696: bytes 224 from <root@kelvin.math.utk.edu> qp 18329 uid 0
Feb 20 01:13:38 kelvin qmail: 856419218.891648 starting delivery 1: msg 49696 to local moran@kelvin.math.utk.edu
Feb 20 01:14:12 kelvin qmail: 856419252.790962 delivery 1: success: did_1+0+0/
Feb 20 01:14:12 kelvin qmail: 856419252.791691 end msg 49696
Feb 20 01:14:12 kelvin qmail: 856419252.796896 new msg 49697
Feb 20 01:14:12 kelvin qmail: 856419252.797474 info msg 49697: bytes 224 from <root@kelvin.math.utk.edu> qp 18335 uid 0
Feb 20 01:14:12 kelvin qmail: 856419252.950693 starting delivery 2: msg 49697 to local moran@kelvin.math.utk.edu
Feb 20 01:14:25 kelvin qmail: 856419265.140868 delivery 2: success: did_1+0+0/
Feb 20 01:14:25 kelvin qmail: 856419265.141591 end msg 49697
Feb 20 01:14:25 kelvin qmail: 856419265.146573 new msg 49696
Feb 20 01:14:25 kelvin qmail: 856419265.147149 info msg 49696: bytes 224 from <root@kelvin.math.utk.edu> qp 18341 uid 0
Feb 20 01:14:25 kelvin qmail: 856419265.272918 starting delivery 3: msg 49696 to local moran@kelvin.math.utk.edu
Feb 20 01:14:49 kelvin qmail: 856419289.375601 delivery 3: success: did_1+0+0/
Feb 20 01:14:49 kelvin qmail: 856419289.376321 end msg 49696
Feb 20 01:14:49 kelvin qmail: 856419289.381515 new msg 49698
Feb 20 01:14:49 kelvin qmail: 856419289.382094 info msg 49698: bytes 224 from <root@kelvin.math.utk.edu> qp 18347 uid 0
Feb 20 01:14:49 kelvin qmail: 856419289.518976 starting delivery 4: msg 49698 to local moran@kelvin.math.utk.edu
Feb 20 01:16:36 kelvin qmail: 856419396.825625 delivery 4: success: did_1+0+0/
Feb 20 01:16:36 kelvin qmail: 856419396.826365 end msg 49698
Feb 20 01:16:36 kelvin qmail: 856419396.831655 new msg 49700
Feb 20 01:16:36 kelvin qmail: 856419396.832239 info msg 49700: bytes 224 from <root@kelvin.math.utk.edu> qp 18368 uid 0
Feb 20 01:16:36 kelvin qmail: 856419396.956995 starting delivery 5: msg 49700 to local moran@kelvin.math.utk.edu
Feb 20 01:17:32 kelvin qmail: 856419452.489245 delivery 5: success: did_1+0+0/
Feb 20 01:17:32 kelvin qmail: 856419452.489962 end msg 49700
Feb 20 01:17:32 kelvin qmail: 856419452.495315 new msg 49698
Feb 20 01:17:32 kelvin qmail: 856419452.495897 info msg 49698: bytes 310 from <root@kelvin.math.utk.edu> qp 18373 uid 0
Feb 20 01:17:32 kelvin qmail: 856419452.614028 starting delivery 6: msg 49698 to local moran@kelvin.math.utk.edu
Feb 20 01:17:32 kelvin qmail: 856419452.614695 starting delivery 7: msg 49698 to local moran@kelvin.math.utk.edu
Feb 20 01:17:46 kelvin qmail: 856419466.886444 delivery 6: success: did_1+0+0/
Feb 20 01:17:46 kelvin qmail: 856419466.887282 starting delivery 8: msg 49698 to local moran@kelvin.math.utk.edu
Feb 20 01:17:46 kelvin qmail: 856419466.887728 new msg 49700
Feb 20 01:17:46 kelvin qmail: 856419466.888268 info msg 49700: bytes 224 from <root@kelvin.math.utk.edu> qp 18379 uid 0
Feb 20 01:17:47 kelvin qmail: 856419467.012065 starting delivery 9: msg 49698 to local moran@kelvin.math.utk.edu
Feb 20 01:17:54 kelvin qmail: 856419474.857918 delivery 7: success: did_1+0+0/
Feb 20 01:17:54 kelvin qmail: 856419474.858698 delivery 8: success: did_1+0+0/
Feb 20 01:17:54 kelvin qmail: 856419474.859164 new msg 49701
Feb 20 01:17:54 kelvin qmail: 856419474.859675 info msg 49701: bytes 224 from <root@kelvin.math.utk.edu> qp 18387 uid 0
Feb 20 01:17:54 kelvin qmail: 856419474.992064 starting delivery 10: msg 49700 to local moran@kelvin.math.utk.edu
Feb 20 01:18:28 kelvin qmail: 856419508.245643 starting delivery 11: msg 49701 to local moran@kelvin.math.utk.edu
Feb 20 01:18:28 kelvin qmail: 856419508.246400 delivery 9: success: did_1+0+0/
Feb 20 01:18:28 kelvin qmail: 856419508.246871 delivery 10: success: did_1+0+0/
Feb 20 01:18:28 kelvin qmail: 856419508.247320 end msg 49698
Feb 20 01:18:28 kelvin qmail: 856419508.256243 new msg 49704
Feb 20 01:18:28 kelvin qmail: 856419508.256886 info msg 49704: bytes 224 from <root@kelvin.math.utk.edu> qp 18396 uid 0
Feb 20 01:18:28 kelvin qmail: 856419508.448736 starting delivery 12: msg 49704 to local moran@kelvin.math.utk.edu
Feb 20 01:18:28 kelvin qmail: 856419508.449378 end msg 49700
Feb 20 01:18:41 kelvin qmail: 856419521.691771 delivery 11: success: did_1+0+0/
Feb 20 01:18:41 kelvin qmail: 856419521.692529 delivery 12: success: did_1+0+0/
Feb 20 01:18:41 kelvin qmail: 856419521.692988 end msg 49701
Feb 20 01:18:41 kelvin qmail: 856419521.698250 new msg 49696
Feb 20 01:18:41 kelvin qmail: 856419521.698829 info msg 49696: bytes 224 from <root@kelvin.math.utk.edu> qp 18404 uid 0
Feb 20 01:18:41 kelvin qmail: 856419521.811808 starting delivery 13: msg 49696 to local moran@kelvin.math.utk.edu
Feb 20 01:18:41 kelvin qmail: 856419521.813801 end msg 49704
Feb 20 01:19:06 kelvin qmail: 856419546.923519 delivery 13: success: did_1+0+0/
Feb 20 01:19:06 kelvin qmail: 856419546.924246 end msg 49696
Feb 20 01:19:06 kelvin qmail: 856419546.929533 new msg 49697
Feb 20 01:19:06 kelvin qmail: 856419546.930147 info msg 49697: bytes 217 from <root@kelvin.math.utk.edu> qp 18410 uid 0
Feb 20 01:19:07 kelvin qmail: 856419547.076033 starting delivery 14: msg 49697 to remote moran@math.utk.edu
Feb 20 01:19:30 kelvin qmail: 856419570.083875 delivery 14: success: 128.169.244.124_accepted_message./Remote_host_said:_250_BAA18794_Message_accepted_for_delivery/
Feb 20 01:19:30 kelvin qmail: 856419570.084600 end msg 49697
Feb 20 01:19:30 kelvin qmail: 856419570.089629 new msg 49696
Feb 20 01:19:30 kelvin qmail: 856419570.090233 info msg 49696: bytes 217 from <root@kelvin.math.utk.edu> qp 18416 uid 0
Feb 20 01:19:30 kelvin qmail: 856419570.218514 starting delivery 15: msg 49696 to remote moran@math.utk.edu
--------------------------------------------------------------------------

Not trying to overload anyone with data. :0

Rick
--
Rick Moran <moran@math.utk.edu> System Administrator
Department of Mathematics, University of Tennessee Knoxville
----------------------------------------------------------------------
Views expressed herein are my own and do not represent those of
The Unversity of Tennessee at Knoxville in general, or specifically
the Mathematics department.
----------------------------------------------------------------------
Re: Strange behavior under sparc-linux. [ In reply to ]
Let it be known that Rick Moran did speak thusly:
Hi again,
I think I may have narrowed down the problem to a problem with the
named pipe "trigger". First let me say that yes it is a real pipe on the
fs. I was reading INTERNALS when i came upon section 7 (not included for
brevity). The actual delivery is taking place, there are no extra progs
(qmail-alias) hanging around. Here is the catch:
If I have a message that has not returned successfully yet, I can do an

echo '' > /var/qmail/queue/lock/trigger

and instantly the successful message streams into the log, and qmail-qread
nolonger shows that message in the queue.

For multiple recipient messages, it delivers 1-2 messages each time I do a
echo '' > /var/qmail/queue/lock/trigger
and it actually is delivering that many, the rest of the messages go
undelivered until I have touched the trigger enough for it to clear out
of the queue.

Example:
prompt# /var/qmail/bin/qmail-inject
To: moran
cc: moran, moran, moran, moran, moran, moran, moran, moran, moran
^D
prompt# qmail-qread
20 Feb 1997 21:06:19 GMT #49696 506 <root@kelvin.math.utk.edu>
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
prompt# echo '' > /var/qmail/queue/lock/trigger
prompt# qmail-qread
20 Feb 1997 21:06:19 GMT #49696 506 <root@kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
prompt# echo '' > /var/qmail/queue/lock/trigger
prompt# qmail-qread
20 Feb 1997 21:06:19 GMT #49696 506 <root@kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
prompt# echo '' > /var/qmail/queue/lock/trigger
prompt# qmail-qread
20 Feb 1997 21:06:19 GMT #49696 506 <root@kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
prompt# echo '' > /var/qmail/queue/lock/trigger
prompt# qmail-qread
20 Feb 1997 21:06:19 GMT #49696 506 <root@kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
prompt# echo '' > /var/qmail/queue/lock/trigger
prompt# qmail-qread
20 Feb 1997 21:06:19 GMT #49696 506 <root@kelvin.math.utk.edu>
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
done local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu
local moran@kelvin.math.utk.edu

etc......

Rick
--
Rick Moran <moran@math.utk.edu> System Administrator
Department of Mathematics, University of Tennessee Knoxville
----------------------------------------------------------------------
Views expressed herein are my own and do not represent those of
The Unversity of Tennessee at Knoxville in general, or specifically
the Mathematics department.
----------------------------------------------------------------------
Re: Strange behavior under sparc-linux. (Trigger problem??) [ In reply to ]
Hi,

Does anyone out there have qmail running under sparc linux?

Does anyone out there have access to a machine running sparc linux
and could install qmail to test if their results are the same as mine?

Someone at RedHat must have access to a sparc-linux machine and could surely
say that they either see or do not see the same behavior as I do.

Thanks for any help...
Rick
--
Rick Moran <moran@math.utk.edu> System Administrator
Department of Mathematics, University of Tennessee Knoxville
----------------------------------------------------------------------
Views expressed herein are my own and do not represent those of
The Unversity of Tennessee at Knoxville in general, or specifically
the Mathematics department.
----------------------------------------------------------------------
Re: Strange behavior under sparc-linux. ( SOLUTION SUMMARY ) [ In reply to ]
First, I would like to thank everyone that mailed me directly with helpful
suggestions.

SYMPTOM: trynpbg1 hangs during initial compile and must be ^C'd. Typing
"make" again allows the compile to continue resulting in quasi
usable binaries.

PROBLEM: "O_NDELAY" and "O_NONBLOCK" are a little mixed up in sparc-linux.
These are fixed in kernels somewhere after 2.0.27, but stock
2.0.27 (redhat 4.1) exhibits the problem.

SOLUTION: IFF you have problems then replace all occurrances of "O_NDELAY"
with O_NONBLOCK in the Qmail sources. This is a bug
specifically w/ sparc-linux, and is fixed in kernels somewhere
after 2.0.27.

Again thanks to all who responed.
Rick
--
Rick Moran <moran@math.utk.edu> | All information contained herein is my
System Adminstrator | opinion. The case that my opinions
Department of Mathematics, | are the same as my employer is purely
University of Tennessee, Knoxville | coincidental.