Re: testing upgrade today broke output redirection (sometimes)
On Tue, Nov 26, 2002 at 09:39:03PM -0500, cfm@maine.com wrote:
>
> I'm unable to redirect stdout sometimes, eg program > out fails.
>
> I had to move a machine, so first I upgraded:
> deb http://http.us.debian.org/debian unstable main contrib non-free
> deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free
>
This has to to with libperl
Package: libperl5.8
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 1072
Maintainer: Brendan O'Dea <bod@debian.org>
Source: perl
Version: 5.8.0-14
Depends: libc6 (>= 2.3.1-1)
Suggests: perl-base (= 5.8.0-14)
Rolling back to -13 works fine (for me).
Package: libperl5.8
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 1072
Maintainer: Brendan O'Dea <bod@debian.org>
Source: perl
Version: 5.8.0-13
Rebuilding the app with the new libperl did not help.
YMMV.
cfm
> Linux version 2.2.20 (root@jr.maine.com) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Sun Aug 18 20:06:45 EDT 2002
>
> Now I'm having a problem with redirected output.
>
> A small script, "jr", runs an SUID c program (cpage) with
> embedded perl. cpage prints to stdout and that works. When
> I try to redirect that output into a file, I get nothing. Same
> failure when I run it not SUID. A simple test case seems to
> work, so there is something more complicated going wrong and I
> really need some suggestions as to what to try first!
>
> I tried upgrading another dev machine and it broke the same way.
>
> --
>
> Script started on Tue Nov 26 20:24:16 2002
>
> This works fine:
> root@jr.maine.com:/w/jr/journal/.cache/bug# /usr/cgi/cpage -c journal -q "minerva:mysql:slash:links:*:status > 0 AND org_name <> 'Error' ORDER BY org_name" -f templated_links -n 9999 -FD
>
> <TABLE BGCOLOR="#A...[much deleted normal output]...</TABLE>
>
> This does not; there is nothing in 'out'.
> root@jr.maine.com:/w/jr/journal/.cache/bug# /usr/cgi/cpage -c journal -q "minerva:mysql:slash:links:*:status > 0 AND org_name <> 'Error' ORDER BY org_name" -f templated_links -n 9999 -FD > out
> root@jr.maine.com:/usr/lib# echo $?
> 0
> root@jr.maine.com:/w/jr/journal/.cache/bug# cat out <---- out is empty
> root@jr.maine.com:/w/jr/journal/.cache/bug# echo foo > bar
> root@jr.maine.com:/w/jr/journal/.cache/bug# cat bar
> foo
> root@jr.maine.com:/w/jr/journal/.cache/bug# ls -l
> -rw-r--r-- 1 root root 4 Nov 26 20:24 bar
> -rw-r--r-- 1 root root 0 Nov 26 20:24 out
> root@jr.maine.com:/w/jr/journal/.cache/bug# exit
> exit
>
> Script done on Tue Nov 26 20:24:48 2002
>
>
> root@jr.maine.com:/w/jr/journal/.cache/bug# ldd /usr/cgi/cpage
> libcrypt.so.1 => /lib/libcrypt.so.1 (0x40019000)
> libm.so.6 => /lib/libm.so.6 (0x40047000)
> libmysqlclient.so.10 => /usr/lib/libmysqlclient.so.10 (0x40068000)
> libperl.so.5.8 => /usr/lib/libperl.so.5.8 (0x4009d000)
> libdl.so.2 => /lib/libdl.so.2 (0x401a1000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x401a4000)
> libc.so.6 => /lib/libc.so.6 (0x401f4000)
> libz.so.1 => /lib/libz.so.1 (0x40308000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x40316000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
>
> --
>
> Christopher F. Miller, Publisher cfm@maine.com
> MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
> 1.207.657.5078 http://www.maine.com/
> Content/site management, online commerce, internet integration, Debian linux
>
>
> --
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux
Reply to: