And Robin wins the highly coveted Gold Plated Software
Wizard "Can find the most elusive bug that even Dr. Powell
cannot find... Nah naddy nah nah!" Button.
Good for 2 beers at the next LISA Conference.
Congratulations, Robin.
> From [EMAIL PROTECTED] Wed Jun 21 05:59:10 2000
> Date: Wed, 21 Jun 2000 14:59:26 +0200
> From: Robin Sommer <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: Another problem with 3.6.17
>
>
> On Tue, Jun 20, 2000 at 13:40, [EMAIL PROTECTED] wrote:
>
> > > From: Robin Sommer <[EMAIL PROTECTED]>
>
> > > ----- cut ------------------------------------------------------------
> > > 2000-06-20-13:50:40.045 moon [9440] RECV lw-e3-guru-test: Checkwrite: file
>'/var/spool/lpd/lw-e3-guru-test/hfA825' fd 7, inode 0x18871, perms 0100600
> > > 2000-06-20-13:50:40.051 moon [9440] RECV lw-e3-guru-test: setstatus: msg
>'lw-e3-guru-test: Check_for_missing files: error renaming '/tmp/temp09qPaaCs' to
>'dfA825andros' - Cross-device link'
> > > 2000-06-20-13:50:40.052 moon [9440] RECV lw-e3-guru-test: Trim_status_file: dir
>'/var/spool/lpd/lw-e3-guru-test', file 'status.lw-e3-guru-test' max 10, min 0
> > > 2000-06-20-13:50:40.053 moon [9440] RECV lw-e3-guru-test: Trim_status_file:
>'/var/spool/lpd/lw-e3-guru-test/status.lw-e3-guru-test' max 10, min 0, size 1948
> > > 2000-06-20-13:50:40.054 moon [9440] RECV lw-e3-guru-test: Checkwrite: file
>'/var/spool/lpd/lw-e3-guru-test/status.lw-e3-guru-test' fd 8, inode 0x18868, perms
>0100600
> > > 2000-06-20-13:50:40.056 moon [9440] RECV (INFO) lw-e3-guru-test:
>Check_for_missing files: error renaming '/tmp/temp09qPaaCs' to 'dfA825andros' -
>Cross-device link
> > > 2000-06-20-13:50:40.082 moon [9440] RECV lw-e3-guru-test: cleanup: signal No
>signal, Errorcode 0, exits 1
> > > ----- cut ------------------------------------------------------------
> [...]
> > I do not have this happening. Please compile this on the same system and see
> > if you get the same result.
>
> Yes, I do.
>
> Now I've compiled and tested 3.6.12 and 3.6.17 on the same Solaris 7
> system using identical configurations . With 3.6.17 I get the same
> error as above, but with 3.6.12 it works fine.
>
> I assume that the error is caused by using a wrong path to the spool
> directory. I've applied the following patch to both versions:
>
> ----- cut ------------------------------------------------------------
> --- solaris2.6/LPRng-3.6.17/src/common/linelist.c Mon Jun 19 01:42:59 2000
> +++ solaris2.7/LPRng-3.6.17/src/common/linelist.c Wed Jun 21 14:11:33 2000
> @@ -2391,6 +2391,9 @@
> struct stat statb;
>
> if( Tempfile == 0 ){
> +
> + DEBUG1( "%d %s %s %s", Is_server, dir, Spool_dir_DYN,
>Server_tmp_dir_DYN );
> +
> if( Is_server ){
> if( dir == 0 ) dir = Spool_dir_DYN;
> if( dir == 0 ) dir = Server_tmp_dir_DYN;
> ----- cut ------------------------------------------------------------
>
> The output with 3.6.17 is:
>
> ----- cut ------------------------------------------------------------
> rsommer@andros [rsommer] >>/usr/local/gnu/bin/grep -A 1 Init_tempfile nexus.3.6.17
> 2000-06-21-14:35:08.217 nexus [4759] STARTALL Init_tempfile: temp file '/tmp/temp'
> 2000-06-21-14:35:08.222 nexus [4758] Waiting Start_all: pid 4759, fd 9
> --
> 2000-06-21-14:35:10.029 nexus [4784] (Server) lw-e3-guru-test: Init_tempfile: temp
>file '/tmp/temp'
> 2000-06-21-14:35:10.030 nexus [4758] Waiting Start_worker: pid 4784
> --
> 2000-06-21-14:35:11.543 nexus [4812] (Server) lw-e3-guru-test-dup: Init_tempfile:
>temp file '/tmp/temp'
> 2000-06-21-14:35:11.713 nexus [4812] (Server) lw-e3-guru-test-dup: Make_temp_fd: fd
>4, name '/tmp/temp003iaGzj'
> --
> 2000-06-21-14:35:18.243 nexus [4920] SERVER Init_tempfile: temp file '/tmp/temp'
> 2000-06-21-14:35:18.250 nexus [4758] Waiting Start_worker: pid 4920
> rsommer@andros [rsommer] >>/usr/local/gnu/bin/grep -B 1 Init_tempfile nexus.3.6.17
> 2000-06-21-14:35:08.216 nexus [4759] STARTALL 1 <NULL> <NULL> /tmp
> 2000-06-21-14:35:08.217 nexus [4759] STARTALL Init_tempfile: temp file '/tmp/temp'
> --
> 2000-06-21-14:35:10.029 nexus [4784] (Server) lw-e3-guru-test: 1 <NULL> <NULL> /tmp
> 2000-06-21-14:35:10.029 nexus [4784] (Server) lw-e3-guru-test: Init_tempfile: temp
>file '/tmp/temp'
> --
> 2000-06-21-14:35:11.524 nexus [4759] STARTALL lw-e3-guru-test-dup: exit
>'Remove_tempfiles' 0x4ab98, parm 0x0
> 2000-06-21-14:35:11.543 nexus [4812] (Server) lw-e3-guru-test-dup: Init_tempfile:
>temp file '/tmp/temp'
> --
> 2000-06-21-14:35:18.242 nexus [4920] SERVER 1 <NULL> <NULL> /tmp
> 2000-06-21-14:35:18.243 nexus [4920] SERVER Init_tempfile: temp file '/tmp/temp'
> ----- cut ------------------------------------------------------------
>
> But 3.6.12 gives me:
>
> ----- cut ------------------------------------------------------------
> /usr/local/gnu/bin/grep -B 1 Init_tempfile nexus.3.6.12
> 2000-06-21-14:43:12.227 nexus [9062] (Server) lw-e3-guru-test: 1 <NULL>
>/var/spool/lpd/lw-e3-guru-test /tmp
> 2000-06-21-14:43:12.227 nexus [9062] (Server) lw-e3-guru-test: Init_tempfile: temp
>file '/var/spool/lpd/lw-e3-guru-test/temp'
> --
> 2000-06-21-14:43:15.890 nexus [9102] RECV lw-e3-guru-test: 1 <NULL>
>/var/spool/lpd/lw-e3-guru-test /tmp
> 2000-06-21-14:43:15.891 nexus [9102] RECV lw-e3-guru-test: Init_tempfile: temp file
>'/var/spool/lpd/lw-e3-guru-test/temp'
> ----- cut ------------------------------------------------------------
>
> If you need the full "-D 3" Output, you can it get it via
>
> http://andros.uni-paderborn.de/rsommer/nexus.3.6.17
> and http://andros.uni-paderborn.de/rsommer/nexus.3.6.12
>
> The executed commands were
>
> "lpd -D 3 -F" and (from system andros) "lpr -Ptestleo test.ps"
>
> Hope this helps a bit. Do you need any other information?
>
> Robin
>
> P.S.: Note that I don't know whether this a Solaris 2.6 vs 2.7
> problem or not as our 2.6 systems are partitioned differently, so that I
> can't test that easily. This is the disk layout of nexus:
>
> ----- cut ------------------------------------------------------------
> rsommer@nexus [LPRng-3.6.12] >>mount
> /proc on /proc read/write/setuid on Tue Jun 20 18:19:46 2000
> / on /dev/dsk/c0t0d0s0 read/write/setuid/largefiles on Tue Jun 20 18:19:46 2000
> /usr on /dev/dsk/c0t0d0s6 read/write/setuid/largefiles on Tue Jun 20 18:19:46 2000
> /dev/fd on fd read/write/setuid on Tue Jun 20 18:19:46 2000
> /home on /dev/dsk/c0t0d0s4 read/write/setuid/largefiles on Tue Jun 20 18:19:48 2000
> /tmp on /dev/dsk/c0t0d0s7 read/write/setuid/largefiles on Tue Jun 20 18:19:48 2000
> /usr/openwin on /dev/dsk/c0t0d0s5 read/write/setuid/largefiles on Tue Jun 20
>18:19:48 2000
> [...]
> ----- cut ------------------------------------------------------------
>
>
> --
> Robin Sommer * private 05251/65041 * work 05251/60-3322
> Univers. of Paderborn * [EMAIL PROTECTED] * [EMAIL PROTECTED]
>
>
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------