bug-enscript
[Top][All Lists]
Advanced

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

[bug-enscript] Possible bug Enscript 1.6.5: core dumps on both Solaris 8


From: bug-enscript
Subject: [bug-enscript] Possible bug Enscript 1.6.5: core dumps on both Solaris 8 & 10 Sparc
Date: Sun, 7 Mar 2010 20:31:22 +0000 (GMT)

Dear all,

Apologies if this is not a bug but misconfiguration or lack of
understanding at my end.

% uname -a
SunOS xxxxxx 5.10 Generic_138888-03 sun4u sparc SUNW,Sun-Fire-V210 Solaris

% cat /etc/release
                      Solaris 10 10/08 s10s_u6wos_07b SPARC
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 27 October 2008
% pkginfo -l SMCenscr
   PKGINST:  SMCenscr
      NAME:  enscript
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  1.6.5
   BASEDIR:  /usr/local
    VENDOR:  FSF
    PSTAMP:  Steve Christensen
  INSTDATE:  Mar 03 2010 20:49
     EMAIL:  address@hidden
    STATUS:  completely installed
     FILES:      249 installed pathnames
                  34 shared pathnames
                  39 directories
                   8 executables
                5317 blocks used (approx)


% enscript -o /dev/null one_148
[ 1 pages * 1 copy ] left in /dev/null
1 line was Segmentation fault

% printenv ENSCRIPT
-lX vms -P pakard

% unsetenv ENSCRIPT

% ls -l  ~/.enscriptrc
ls: cannot access /home/xxxxx/.enscriptrc: No such file or directory

% printenv LD_LIBRARY_PATH
/usr/X/lib:/usr/X11/lib:/usr/lib:/usr/xpg4/lib:/usr/dt/lib:/opt/local/lib:/usr/loc
al/lib:/opt/hpnpl/lib:/opt/hpnp/lib:/opt/sfw/lib/thunderbird:/opt/csw/lib:/usr/jav
a1.1/lib/sparc/native_threads:

% unsetenv LD_LIBRARY_PATH

% which enscript
/usr/local/bin/enscript
% ldd `which enscript`
 libintl.so.8 =>  /usr/local/lib/libintl.so.8
 libiconv.so.2 =>  /usr/local/lib/libiconv.so.2
 libsec.so.1 =>  /usr/lib/libsec.so.1
 libc.so.1 =>  /usr/lib/libc.so.1
 libm.so.2 =>  /usr/lib/libm.so.2
 libgcc_s.so.1 =>  /usr/local/lib/libgcc_s.so.1
 libavl.so.1 =>  /lib/libavl.so.1
 /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

% enscript -o /dev/null one_148
[ 1 pages * 1 copy ] left in /dev/null
1 line was Segmentation fault

% pstack core
core 'core' of 18465: enscript -o /dev/null one_148
 ff132058 ???????? (2a9ad, ffbfcee8, ffbfc761, 1, 0, 0)
pstack: warning: librtld_db failed to initialize; symbols from shared libraries 
will not be available

% enscript -o /dev/null two_148
[ 1 pages * 1 copy ] left in /dev/null
2 lines were wrapped

% enscript -o /dev/null three_148
[ 1 pages * 1 copy ] left in /dev/null
3 lines were wrapped

% wc three_148
  3   3 444 three_148

% wc two_148
  2   2 296 two_148

% wc one_148
  1   1 148 one_148

% file one_148
one_148: ASCII text

% cd /usr/local/etc
% ls -l enscr*
-rw-r--r-- 1 bin  bin 4783 Mar  3 07:32 enscript.cfg
-rw-r--r-- 1 root bin 7851 Jun  5  2009 enscriptsite.cfg
-r--r--r-- 1 root bin 5364 May 12  2009 enscriptsite.cfg_2009-05-12
-r--r--r-- 1 root bin 5370 May 19  2009 enscriptsite.cfg_2009-05-19

%

% uname -a
SunOS xxxxxx 5.8 Generic_117350-54 sun4u sparc SUNW,UltraAX-i2 Solaris
% cat /etc/release
                        Solaris 8 7/01 s28s_u5wos_08 SPARC
           Copyright 2001 Sun Microsystems, Inc.  All Rights Reserved.
                             Assembled 06 June 2001
                       Preinstall part number 259-3820-06

% pkginfo -l SMCenscr
   PKGINST:  SMCenscr
      NAME:  enscript
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  1.6.5
   BASEDIR:  /usr/local
    VENDOR:  FSF
    PSTAMP:  Steve Christensen
  INSTDATE:  Mar 03 2010 20:47
     EMAIL:  address@hidden
    STATUS:  completely installed
     FILES:      290 installed pathnames
                  34 shared pathnames
                  39 directories
                   8 executables
                6880 blocks used (approx)

% which enscript
/usr/local/bin/enscript

% ldd `which enscript`
        libintl.so.8 =>  /usr/local/lib/libintl.so.8
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libsec.so.1 =>   /usr/lib/libsec.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1

% enscript -o /dev/null one_148
[ 1 pages * 1 copy ] left in /dev/null
1 line was Segmentation fault

% pstack core
core 'core' of 24943:   enscript -o /dev/null one_148
pstack: warning: librtld_db failed to initialize; symbols from shared libraries 
will not be available
 ff1b3258 ???????? (0, ffbeda14, 0, 4c191, 1, 2952d)



I'm sorry I can't be more specific about what it is about the input file
that is triggering it -- I got this far by hacking-about a text file I was
trying to process.  My enscriptsite.cfg and test input files are attached.

TIA.
# /usr/local/etc/enscriptsite.cfg
#
# GNU Enscript configuration file.
# Copyright (c) 1995-1998 Markku Rossi.
#
# Author: Markku Rossi <address@hidden>
#
# 10-APR-03 MAJ Setup site configuration
# 04-MAY-09 MAJ Ported local customisations from parody to cosmos
# 03-JLY-09 MAJ Configuration and so inclusion of AFMPath, WIP.
#
#
# This file is part of GNU enscript.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

# Do we accept PostScript font's composite characters?  As a default,
# this is false because I think this is GhostScript dependent.
AcceptCompositeCharacters:                              0

# Lookup path for the AFM files.
#AFMPath: \
#/usr/X/lib/X11/fonts/Anonymous:\
#/usr/X/lib/X11/fonts/CICA:\
#/usr/X/lib/X11/fonts/Dustismo:\
#/usr/X/lib/X11/fonts/EFF:\
#/usr/X/lib/X11/fonts/F3:\
#/usr/X/lib/X11/fonts/Inconsolata:\
#/usr/X/lib/X11/fonts/LJ45:\
#/usr/X/lib/X11/fonts/Monaco:\
#/usr/X/lib/X11/fonts/Type1:\
#/usr/X/lib/X11/fonts/Type1SO52:\
#/usr/X/lib.X11/fonts/Type1ams:\
#/usr/X/lib/X11/fonts/Type3:\
#/usr/X/lib/X11/fonts/amspsfnt:\
#/usr/X/lib/X11/X/lib/X11/fonts/cm-lgc:\
#/usr/X/lib/X11/fonts/cm-unicode:\
#/usr/X/lib/X11/fonts/cmpsfont:\
#/usr/X/lib/X11/fonts/intlfonts/Type1:\
#/usr/X/lib/X11/fonts/newstyle:\
#/usr/X/lib/X11/fonts/venturis:\
#/usr/X/lib/X11/fonts/ventura:\
#/usr/X/lib/X11/fonts/GS:\
#/usr/share/fonts/Type1/GS:\
#/usr/share/fonts/Type1/LinLibertineFont:\
#/usr/share/fonts/Type1/URW:\
#/usr/share/fonts/Type1/bitstream-vera:\
#/usr/share/fonts/Type1/dejavu-lgc:\
#/usr/share/fonts/Type1/emono:\
#/usr/share/fonts/Type1/liberation:\
#/usr/local/share/ghostscript/8.64/fonts:\
#/usr/local/share/enscript:\
#
AFMPath: 
/usr/X/lib/X11/fonts/Anonymous:/usr/X/lib/X11/fonts/CICA:/usr/X/lib/X11/fonts/Dustismo:/usr/X/lib/X11/fonts/EFF:/usr/X/lib/X11/fonts/F3:/usr/X/lib/X11/fonts/Inconsolata:/usr/X/lib/X11/fonts/LJ45:/usr/X/lib/X11/fonts/Monaco:/usr/X/lib/X11/fonts/Type1:/usr/X/lib/X11/fonts/Type1SO52:/usr/X/lib.X11/fonts/Type1ams:/usr/X/lib/X11/fonts/Type3:/usr/X/lib/X11/fonts/amspsfnt:/usr/X/lib/X11/X/lib/X11/fonts/cm-lgc:/usr/X/lib/X11/fonts/cm-unicode:/usr/X/lib/X11/fonts/cmpsfont:/usr/X/lib/X11/fonts/intlfonts/Type1:/usr/X/lib/X11/fonts/newstyle:/usr/X/lib/X11/fonts/venturis:/usr/X/lib/X11/fonts/ventura:/usr/X/lib/X11/fonts/GS:/usr/share/fonts/Type1/GS:/usr/share/fonts/Type1/LinLibertineFont:/usr/share/fonts/Type1/URW:/usr/share/fonts/Type1/bitstream-vera:/usr/share/fonts/Type1/dejavu-lgc:/usr/share/fonts/Type1/emono:/usr/share/fonts/Type1/liberation:/usr/local/share/ghostscript/8.64/fonts:/usr/local/share/enscript:


# Append ^D character to the end of the output.  Some printers like HP
# LaserJet 5 require this but the default is `false'.
AppendCtrlD:                                            0

# How characters greater than 127 are printed:
#   1   generate clean 7-bit code; print characters greater than 127
#       in the backslash-octal notation `\xxx' (default)
#   0   generate 8-bit code
Clean7Bit:                                              1

# Default input encoding.
DefaultEncoding:                                        vms

# Default fancy header.
DefaultFancyHeader:                                     enscript

# Default output media.
DefaultMedia:                                           A4

# Where output goes as a default: `printer' or `stdout'
DefaultOutputMethod:                                    printer

# Include following font files to all PostScript outputs.
#
# DownloadFont: FooFont1
# DownloadFont: FooFont2

# The escape character for special escapes.
EscapeChar:                                             0

# What to do when a formfeed character is encountered from input:
#  column       move to the beginning of the next column
#  page         move to the beginning of the next page
FormFeedType:                                           column

# Specify whether the PageSize page device option is generated to the
# output.
GeneratePageSize:                                       1

# The gray level which is used to print highlight bars.
HighlightBarGray:                                       .97

# How high highlight bars are in lines.  The default is 0 so no
# highlight bars are printed.
# HighlightBars: 2

# Library path.  Let's use built-in default.
# LibraryPath:

# How wrapped lines are marked in printout.  Possible values are: `none',
# `plus', `box' and `arrow'.  As a default, we do not mark them.
MarkWrappedLines:                                       none

# Media definitions:
#       name            width   height  llx     lly     urx     ury
Media:  A3              842     1190    24      24      818     1166
Media:  A4              595     842     24      24      571     818
Media:  A5              420     595     24      24      396     571
Media:  Legal           612     1008    24      24      588     984
Media:  Letter          612     792     38      24      574     768

# HP DeskJet media (DeskJet can't print on the bottom 1/2" of the paper).
Media:  A4dj            595     842     24      50      571     818
Media:  Letterdj        612     792     24      40      588     768

# Spooler option to suppress the job header.
NoJobHeaderSwitch:                                      -h

# How non-printable characters are printed: `caret', `octal',
# `questionmark' or `space'.
NonPrintableFormat:                                     octal

# PostScript output's first line.
# NB - Do not use multiple tabs or spaces below
OutputFirstLine:        %!PS-Adobe-3.0
# NB - Do not use multiple tabs or spaces above

# Default page label format: `short' or `long'.
PageLabelFormat:                                        short

# Enable / disable page prefeed.
PagePrefeed:                                            0

# The PostScript language level that enscript should use.
PostScriptLevel:                                        2

# Printer name to spool to.  As a default we want to use system's
# default printer.
# Printer: ps

# The spooler command switch to select the printer queue.  This option
# can also be used to pass other flags to the spooler command but they
# must be given bofore the queue switch.
QueueParam:                                             -P

# Pass following Page Device options to the generated output.
#
# Duplex printing.
SetPageDevice: Duplex:true

# Printer spooler command name.
Spooler:                                                lpr

# An absolute path to the states program.
StatesPath:                                             /usr/local/bin/states

# Create color outputs with States?
StatesColor:                                            1

# States' color model.  Possible values are:
#   blackwhite  no colors, just black and white
#   emacs       similar to emacs' font lock highlighting
#StatesColorModel:                                      blackwhite

# The name of the States configuration file.
StatesConfigFile: /usr/local/share/enscript/hl/enscript.st

# States' default highlight level.  Possible values are:
#   none        no highlighting
#   light       light highlighting
#   heavy       give all
#StatesHighlightLevel:                                  heavy

# States' default highlight style.
StatesHighlightStyle:                                   emacs

# Path for the States program.
# StatesPath: /usr/local/share/enscript/hl

# Pass following statusdict options to the generated output.
#
# Use always paper tray 1.
# StatusDict: setpapertray:1

# Format string for table-of-contents entries.
#
# TOCFormat: $3v $-40N $3% pages $4L lines  $E $C

# As a default, print this underlay text to all document.
# Underlay: mtr's printout

# Underlay text angle.
# UnderlayAngle: 45

# Select underlay font.
UnderlayFont:                                           Times-Roman200

# Select underlay gray.
UnderlayGray:                                           .8

# Underlay text starting position.
# UnderlayPosition: +0-0

# Underlay style: `outline' or `filled'
UnderlayStyle:                                          outline

# EOF
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111
000000000111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999000000000011111111112222222222333333333344444444
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111
000000000111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999000000000011111111112222222222333333333344444444
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567

reply via email to

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