Got this from a Debian user, strange it only died on the alpha.

  - Craig
  
----- Forwarded message from Doug Larrick <[EMAIL PROTECTED]> -----
Package: lprng
Version: 3.7.4-1

Invoking /usr/sbin/lpd on an Alpha running up-to-date testing causes
an immediate segmentation fault, like this:

# /usr/sbin/lpd
Segmentation fault

This problem also causes the installation of the package to fail:

Installing new version of config file /etc/lprng/lpd.perms ...
Starting printer spooler: /etc/init.d/lprng: line 98: 25617
Segmentation fault      start-stop-daemon --start --quiet --pidfile
$PIDFILE --exec $DAEMON
dpkg: error processing lprng (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 lprng
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tracked down this problem in the debugger, and have included a
one-liner patch below.  The problem is that the configuration option
"direct" is defined to be a STRING_K type in the table listing all
such options, but it is really an integer.  When code tries to clean
up the list of configuration options, it tries to free memory that was
never malloced.  This error causes a segfault on Alpha, and probably
causes undetected harm on other platforms.

Patch follows inline.

Thanks, 
-Doug

--- src/common/vars.c~  Mon Jan 15 16:04:15 200
+++ src/common/vars.c   Mon Jan 15 16:47:46 2001
@@ -186,7 +186,7 @@
    /* printers that we should query for status information */
 { "destinations", 0, STRING_K, &Destinations_DYN,0,0},
    /* allow LPR to make direct socket connection to printer */
-{ "direct", 0, STRING_K, &Direct_DYN,0,0},
+{ "direct", 0, INTEGER_K, &Direct_DYN,0,0},
    /* drop root permissions after binding to listening port */
 { "drop_root", 0, FLAG_K, &Drop_root_DYN,0,0},
    /* exit linger timeout to wait for socket to close */


-- 
Doug Larrick  [EMAIL PROTECTED]  [EMAIL PROTECTED]  AIM: DougLarick


----- End forwarded message -----

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/        <[EMAIL PROTECTED]>
MIEEE <[EMAIL PROTECTED]>                 Debian developer <[EMAIL PROTECTED]>

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

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.
-----------------------------------------------------------------------------

Reply via email to