barcode CLI crashes on start unless /etc/papersize exists

Bug #1835582 reported by C H
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU barcode
New
Undecided
Unassigned
barcode (Ubuntu)
New
Undecided
Unassigned

Bug Description

strace -fo/tmp/a barcode -b testing -o out.txt
Segmentation fault (core dumped)

tail -n 3 /tmp/a
19294 stat("/etc/papersize", 0x7fff4f346390) = -1 ENOENT (No such file or directory)
19294 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
19294 +++ killed by SIGSEGV (core dumped) +++

ls -l /etc/papersize
ls: cannot access '/etc/papersize': No such file or directory

echo letter | sudo tee /etc/papersize

strace -fo/tmp/a barcode -b testing -o out.txt

The barcode program crashes without an error unless /etc/papersize is present. This may be the fault of libpaper, because it doesn't crash if you specify the paper size with -p.

C H (charlesubuntu)
affects: apport → gnu-barcode
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.