Bug 122768 - When selecting a certain printer Writer crashes
Summary: When selecting a certain printer Writer crashes
Status: RESOLVED DUPLICATE of bug 112215
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print-Dialog
  Show dependency treegraph
 
Reported: 2019-01-16 19:09 UTC by Aaron Honeycutt
Modified: 2019-02-11 11:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
logs and video (2.21 MB, application/x-compressed-tar)
2019-01-22 01:43 UTC, Aaron Honeycutt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Honeycutt 2019-01-16 19:09:46 UTC
1. Open LibreOffice and write a document
2. Open dialog to print
3. Select Printer
4. LibreOffice crashes but the printing dialog stays.
Comment 1 Xisco Faulí 2019-01-16 21:48:44 UTC
Could you please try to reproduce it with LibreOffice 6.2 from https://wiki.documentfoundation.org/QA/GetInvolved#Test_Pre-releases?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 3 Aaron Honeycutt 2019-01-22 01:43:59 UTC
Video of the issue:

https://9089701563e3e5947b90-b6e63eb6c42eb9f70edaf30ab1589b06.ssl.cf2.rackcdn.com/64e25e81-572106-2a8b448e11616998.mp4

I still need to test with 6.2.
Comment 4 Xisco Faulí 2019-01-23 12:50:31 UTC
Thanks for testing it in LibreOffice 6.2.
If possible, please follow the instructions provided at this link < https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux >. and submit a backtrace. That way a developer can look into the underlying reason of the crash.
Comment 5 Xisco Faulí 2019-01-23 12:51:51 UTC
(In reply to Xisco Faulí from comment #4)
> Thanks for testing it in LibreOffice 6.2.
> If possible, please follow the instructions provided at this link <
> https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.
> 2FLinux >. and submit a backtrace. That way a developer can look into the
> underlying reason of the crash.

You can download a build with debug symbols from https://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@86-TDF-dbg/current/
Comment 6 Michael Weghorn 2019-01-29 17:37:43 UTC
Additional questions that may help to analyze the issue:

1) Does the crash only happen for that specific printer or also for others?
2) Can you attach the PPD file for that printer, which should be located at /etc/cups/ppd/<PRINTERNAME>.ppd?
Comment 7 Michael Kiermaier 2019-02-07 13:28:36 UTC
Same problem here. Seen on
LibreOffice 4.2.8.2 420m0(Build:2) (on Kubuntu 14.04)
LibreOffice 6.0.7.3 00m0(Build:3) (on Xubuntu 18.04)

Crash happens only for one specific printer in the list, a Lexmark MX521ade.

PPD driver has been downloaded from:
http://support.lexmark.com/index?page=content&id=DR24522&docLocale=en_US&segType=recommendedSegmentOS
Comment 8 Michael Weghorn 2019-02-07 21:07:19 UTC
(In reply to Michael Kiermaier from comment #7)
> PPD driver has been downloaded from:
> http://support.lexmark.com/
> index?page=content&id=DR24522&docLocale=en_US&segType=recommendedSegmentOS

That archive contains several PPD files. Can you attach the one that is actually used? (Your issue may or may not be the same as that of the original reporter, so it might make sense to create a separate bug report at some point in time, but let's leave it for now...)
Comment 9 Michael Kiermaier 2019-02-07 21:35:37 UTC
I don't know the copyright restrictions so I don't want to attach a copy of the ppd.
The used PPD file within the archive is
GlobalPPD_1.4/Lexmark_MX520_Series.ppd

I did soffice --backtrace. The relevant part of the trace seems to be

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fcab7091b7c in psp::PPDParser::PPDParser(rtl::OUString const&) () from /usr/lib/libreoffice/program/libmergedlo.so
#0  0x00007fcab7091b7c in psp::PPDParser::PPDParser(rtl::OUString const&) () at /usr/lib/libreoffice/program/libmergedlo.so
#1  0x00007fcab709e369 in  () at /usr/lib/libreoffice/program/libmergedlo.so
#2  0x00007fcab70927db in psp::PPDParser::getParser(rtl::OUString const&) () at /usr/lib/libreoffice/program/libmergedlo.so
#3  0x00007fcab709f93c in  () at /usr/lib/libreoffice/program/libmergedlo.so
#4  0x00007fcab7088164 in psp::JobData::operator=(psp::JobData const&) () at /usr/lib/libreoffice/program/libmergedlo.so
#5  0x00007fcab70d7430 in SalGenericInstance::configurePspInfoPrinter(PspSalInfoPrinter*, SalPrinterQueueInfo const*, ImplJobSetup*) () at /usr/lib/libreoffice/program/libmergedlo.so
#6  0x00007fca9e91863b in  () at /usr/lib/libreoffice/program/libvclplug_gtk3lo.so
#7  0x00007fcab6fb9b38 in  () at /usr/lib/libreoffice/program/libmergedlo.so
#8  0x00007fcab6fbde4f in Printer::Printer(rtl::OUString const&) () at /usr/lib/libreoffice/program/libmergedlo.so
#9  0x00007fcab6dc7463 in  () at /usr/lib/libreoffice/program/libmergedlo.so
#10 0x00007fcab6e31730 in Control::ImplCallEventListenersAndHandler(VclEventId, std::function<void ()> const&) () at /usr/lib/libreoffice/program/libmergedlo.so
#11 0x00007fcab6e67372 in ListBox::Select() () at /usr/lib/libreoffice/program/libmergedlo.so
#12 0x00007fcab6e69e00 in  () at /usr/lib/libreoffice/program/libmergedlo.so
#13 0x00007fcab6e614f5 in  () at /usr/lib/libreoffice/program/libmergedlo.so
#14 0x00007fcab6e61fa7 in  () at /usr/lib/libreoffice/program/libmergedlo.so
#15 0x00007fcab6dfff3c in vcl::Window::EndTracking(TrackingEventFlags) () at /usr/lib/libreoffice/program/libmergedlo.so
[...]
Comment 10 Michael Weghorn 2019-02-07 21:55:33 UTC
Thanks for the info! I can't reproduce here with a current development version.

The backtrace gives an indication about the location, which actually suggests it depends on the PPD file, and this commit *might* already have fixed it:

commit 3288d88e0c0842a44aa959e41cc665b9cf3804b9
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Wed Nov 28 12:23:38 2018 +0000

    Resolves: tdf#112215 null deref on missing optional ppd value
    
    Change-Id: Iba45437332df963e1aa213c587071ab293f36390
    Reviewed-on: https://gerrit.libreoffice.org/64163
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm@redhat.com>
    Tested-by: Caolán McNamara <caolanm@redhat.com>

Can you do a retest with a more recent LibreOffice version, e.g. 6.2?
Comment 11 Michael Kiermaier 2019-02-11 10:41:35 UTC
Thank you!

I've tested with 6.2, and the bug is gone.
Also, I'm pretty confident that it is the same bug you linked. In both cases crash in LPPDParser with a Lexmark PPD.
Comment 12 Xisco Faulí 2019-02-11 11:00:23 UTC
(In reply to Michael Kiermaier from comment #11)
> Thank you!
> 
> I've tested with 6.2, and the bug is gone.
> Also, I'm pretty confident that it is the same bug you linked. In both cases
> crash in LPPDParser with a Lexmark PPD.

Thanks for retesting.
Closing as RESOLVED DUPLICATED

*** This bug has been marked as a duplicate of bug 112215 ***