Subject: bin/32402: pr print filter dumps core with -s option specified
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <antiright@gmail.com>
List: netbsd-bugs
Date: 12/28/2005 18:40:00
>Number:         32402
>Category:       bin
>Synopsis:       pr print filter dumps core with -s option specified
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 28 18:40:00 +0000 2005
>Originator:     Jeffrey Bedard
>Release:        3.0
>Organization:
>Environment:
NetBSD antiright.dyndns.org 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
When piping text to the pr print filter for lpr output, the print filter dumps core.  This only occurs for me when the -s option is specified.

Output:

$ cat amp.txt | pr -w 72 -s . | less
Memory fault (core dumped) 
$ 

>How-To-Repeat:
Pipe a text file though pr with the -s option specified.  The text file that I am attempting to print has very long lines (no newlines, except in between paragraphs).

>Fix: