bug-a2ps
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a2ps Bug ???


From: Shamsher Sandhu
Subject: a2ps Bug ???
Date: Mon, 11 Jun 2001 10:28:13 -0700

Hi,

I am using a2ps version a2ps-4.13b-13.i386.rpm on Redhat 6.3 kernel version 
2.2.18 and glibc version glibc-2.1.3-22.1.
When I try to print output to Display, I get the following error:

address@hidden oracle]$ a2ps -P display --debug /etc/hosts
[/etc/hosts (plain): 1 page on 1 sheet]
lp: cannot open display
a2ps: received signal 13: Broken pipe


Here is the portion on strace:

[400e6b4d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[400c0021] gettimeofday({992280201, 489013}, NULL) = 0
[400c92a7] getpid()                     = 15496
[400dda74] open("/tmp/a2_5kdkoI", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
[400ddadd] close(3)                     = 0
[400dda74] open("/tmp/a2_5kdkoI", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
[400dccdc] fstat64(0x3, 0xbfffadf0)     = 0
[400e6b4d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4014a000
[400ddb64] write(3, "SPY-BEGIN\na2ps 4.13 was called w"..., 186) = 186
[400ddb64] write(3, "\nSheets:\n-------\n", 17) = 17
[400ddb64] write(3, "  medium          = Letter, land"..., 178) = 178
[400ddb64] write(3, "  number lines         = no\n  fo"..., 179) = 179
[400ddb64] write(3, "  header       = %a\n  left foote"..., 261) = 261
[400ddb64] write(3, "  truncate lines = no\n  interpre"..., 237) = 237
[400ddb64] write(3, "  style sheet     = selected aut"..., 109) = 109
[400ddb64] write(3, "  destination     = sent to the "..., 210) = 210
[400ddb64] write(3, "  magic number              = %!"..., 365) = 365
[400ddb64] write(3, "  verbosity level     = 2\n  file"..., 550) = 550
[400ddb64] write(3, "\ncfg.wrapped      = 1\ndel.a2ps  "..., 1286) = 1286
[400ddadd] close(3)                     = 0
[400e6b91] munmap(0x4014a000, 4096)     = 0
[400dda74] open("/tmp/a2_5kdkoI", O_RDONLY) = 3
[400dccdc] fstat64(0x3, 0xbfffadd4)     = 0
[400e6b4d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4014a000
[400ddb24] read(3, "SPY-BEGIN\na2ps 4.13 was called w"..., 4096) = 3578
[400ddb64] write(4, "%!PS-Adobe-3.0\n%%Title: hosts\n%%"..., 4096) = 4096
[400ddb24] read(3, "", 4096)            = 0
[400ddadd] close(3)                     = 0
[400e6b91] munmap(0x4014a000, 4096)     = 0
[400df4fd] unlink("/tmp/a2_5kdkoI")     = 0
[400ddb64] write(4, "         = #!s|$p-|,|\n% ps2pdf  "..., 4096lp: cannot open 
display
) = -1 EPIPE (Broken pipe)
[400ddb64] --- SIGPIPE (Broken pipe) ---
[40056af4] --- SIGCHLD (Child exited) ---
[400c883d] uname({sys="Linux", node="oracle-apps2.hdqt.valinux.com", ...}) = 0
[400dda74] open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
[400dda74] open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
[400ddb64] write(2, "a2ps: ", 6a2ps: )        = 6
[400ddb64] write(2, "received signal 13: Broken pipe", 31received signal 13: 
Broken pipe) = 31
[400ddb64] write(2, "\n", 1
)            = 1
[400df4fd] unlink("/tmp/a2_5kdkoI")     = -1 ENOENT (No such file or directory)
[400df4fd] unlink("/tmp/a2_5kdkoI")     = -1 ENOENT (No such file or directory)
[400ddb64] write(4, "         = #!s|$p-|,|\n% ps2pdf  "..., 4096) = -1 EPIPE 
(Broken pipe)
[400e6b91] munmap(0x40019000, 4096)     = 0
[400c8d6d] _exit(1)                     = ?


Please let me know if this a problem with my setup. I am using the default 
a2ps.cfg and site cfg files.

Other wise printing to normal printers is fine.

Shamsher Sandhu
Sr. DBA at VA Linux Systems



reply via email to

[Prev in Thread] Current Thread [Next in Thread]