Forum Bugs

Docker Ubuntu 18.04 Segmentation Fault

nicomfer
Specs:
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic

/usr/lib/prince/bin/princedebug --version
Prince 12.4
Copyright 2002-2018 YesLogic Pty. Ltd.
Non-commercial License


Problem:
We are attempting to generate a big PDF file with more than 1500 pages and we are getting a segmentation fault trying to converting the document.

prince: Converting document...
prince: debug: pack
prince: debug: font request: bold Ubuntu, sans-serif
prince: debug: font scan: Arial
prince: debug: font scan: Arial, 4 matches
prince: debug: font scan: DejaVu Sans
prince: debug: font scan: DejaVu Sans, 2 matches
prince: debug: font scan: DejaVu LGC Sans
prince: debug: font scan: DejaVu LGC Sans, 0 matches
prince: debug: font scan: Liberation Sans
prince: debug: font scan: Liberation Sans, 0 matches
prince: debug: font scan: OpenSymbol
prince: debug: font scan: OpenSymbol, 0 matches
prince: debug: font scan: AR PL UKai CN
prince: debug: font scan: AR PL UKai CN, 0 matches
prince: debug: font scan: AR PL KaitiM GB
prince: debug: font scan: AR PL KaitiM GB, 0 matches
prince: debug: font scan: Kochi Gothic
prince: debug: font scan: Kochi Gothic, 0 matches
prince: debug: font scan: IPAGothic
prince: debug: font scan: IPAGothic, 0 matches
prince: debug: font scan: UnDotum
prince: debug: font scan: UnDotum, 0 matches
prince: debug: font scan: Baekmuk Gulim
prince: debug: font scan: Baekmuk Gulim, 0 matches
prince: debug: font scan: Garuda
prince: debug: font scan: Garuda, 4 matches
prince: debug: font scan: Times New Roman
prince: debug: font scan: Times New Roman, 0 matches
prince: debug: font scan: DejaVu Serif
prince: debug: font scan: DejaVu Serif, 2 matches
prince: debug: font scan: DejaVu LGC Serif
prince: debug: font scan: DejaVu LGC Serif, 0 matches
prince: debug: font scan: Liberation Serif
prince: debug: font scan: Liberation Serif, 0 matches
prince: debug: font scan: AR PL UMing CN
prince: debug: font scan: AR PL UMing CN, 0 matches
prince: debug: font scan: AR PL SungtiL GB
prince: debug: font scan: AR PL SungtiL GB, 0 matches
prince: debug: font scan: Kochi Mincho
prince: debug: font scan: Kochi Mincho, 0 matches
prince: debug: font scan: IPAMincho
prince: debug: font scan: IPAMincho, 0 matches
prince: debug: font scan: UnBatang
prince: debug: font scan: UnBatang, 0 matches
prince: debug: font scan: Baekmuk Batang
prince: debug: font scan: Baekmuk Batang, 0 matches
prince: debug: font scan: Lohit Devanagari
prince: debug: font scan: Lohit Devanagari, 0 matches
prince: debug: font scan: Lohit Bengali
prince: debug: font scan: Lohit Bengali, 0 matches
prince: debug: font scan: Ani
prince: debug: font scan: Ani, 0 matches
prince: debug: font scan: Mukti Narrow
prince: debug: font scan: Mukti Narrow, 0 matches
prince: debug: font scan: Lohit Punjabi
prince: debug: font scan: Lohit Punjabi, 0 matches
prince: debug: font scan: Lohit Gujarati
prince: debug: font scan: Lohit Gujarati, 0 matches
prince: debug: font scan: Lohit Tamil
prince: debug: font scan: Lohit Tamil, 0 matches
prince: debug: font scan: Lohit Telugu
prince: debug: font scan: Lohit Telugu, 0 matches
prince: debug: font scan: Lohit Kannada
prince: debug: font scan: Lohit Kannada, 0 matches
prince: debug: font scan: Lohit Malayalam
prince: debug: font scan: Lohit Malayalam, 0 matches
prince: debug: font scan: Lohit Oriya
prince: debug: font scan: Lohit Oriya, 0 matches
prince: used font: Ubuntu, Bold
prince: debug: font request: bold Arial Unicode MS, Noto Sans, Ubuntu, sans-serif
prince: used font: Arial Unicode MS, Bold
prince: debug: font request: Arial Unicode MS, Noto Sans, Ubuntu, sans-serif
prince: used font: Arial Unicode MS, Regular
prince: debug: font request: serif
prince: used font: Garuda, Book
prince: debug: font request: Arial Unicode MS, Noto Sans, Ubuntu, Noto Sans, Noto Sans Sinhala, sans-serif
prince: debug: font scan: Noto Sans Sinhala
prince: debug: font scan: Noto Sans Sinhala, 1 matches
Segmentation fault

mikeday
How much RAM do you have? Do smaller documents work? Is this 32-bit or 64-bit?
nicomfer
We have 8GB, currently the process is using ~350MB, smaller documents are working fine (~300 pages). It's 64-bit arch. We also were able to generate this document running the same command on FreeBSD.
mikeday
Would you be able to run the command through princedebug and email me (mikeday@yeslogic.com) the resulting /tmp/prince.debug and /tmp/prince.strace files?
mikeday
This issue is fixed in the latest build, thanks for helping us track it down!