Project

General

Profile

Actions

Bug #5612

closed

lpadmin dumps core in getlist

Added by Alexander Pyhalov over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-02-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

# touch /export/home/alp/tmp/printer
# lpadmin -p printer0 -v /export/home/alp/tmp/printer
/usr/lib/lp/bin/lpadmin[339]: eval: line 1: 1756: Memory fault(coredump)
# mdb /var/cores/lpadmin.1692
Loading modules: [ libc.so.1 ld.so.1 ]
> $C
08047678 getlist+0xef(806e7c8, 806e7c6, 806e7bf, 805569d, 8056cbe, 80)
080476a8 chkopts2+0x59b(1, 8087ab0, 0, 10)
080477b8 chkopts+0xcbc(5, 8047d3c, 8047d08, 805d58d, fef714e0, 1)
08047d08 main+0xd5(8047cfc, fef73688, 8047d30, 80552a7, 5, 8047d3c)
08047d30 _start+0x83(5, 8047e14, 8047e2e, 8047e31, 8047e3a, 8047e3d)
Actions #1

Updated by Gary Mills about 6 years ago

I'll take this one. The problem was that getlist() was attempting to write to a static string, a string in read-only memory.

Actions #2

Updated by Electric Monk about 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 00208914d51cd2f8ec864d0b732aa94a0e13a2ed

commit  00208914d51cd2f8ec864d0b732aa94a0e13a2ed
Author: Gary Mills <gary_mills@fastmail.fm>
Date:   2015-05-08T15:51:11.000Z

    5612 lpadmin dumps core in getlist
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Richard Lowe <richlowe@richlowe.net>
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF