Bug 341867 - Application: Okular (okular), signal: Segmentation fault
Summary: Application: Okular (okular), signal: Segmentation fault
Status: RESOLVED DUPLICATE of bug 341485
Alias: None
Product: okular
Classification: Applications
Component: EPub backend (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-14 06:29 UTC by Chris Peñalver
Modified: 2014-12-19 23:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
valgrind.txt (14.18 KB, text/plain)
2014-12-14 19:46 UTC, Chris Peñalver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Peñalver 2014-12-14 06:29:49 UTC
1) lsb_release -rd
Description:	Ubuntu 14.04.1 LTS
Release:	14.04

2) apt-cache policy okular
okular:
  Installed: 4:4.13.3-0ubuntu0.1
  Candidate: 4:4.13.3-0ubuntu0.1
  Version table:
     4:4.13.3-0ubuntu0.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     4:4.13.0-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

3) What is expected to happen is when one attempts to open the https://bugs.launchpad.net/ubuntu/+source/evince/+bug/241736/+attachment/4280564/+files/EPUBBestPractices-1_0.epub via okular, it does so successfully.

4) What happens instead is okular crashes consistently.

Reproducible: Always

Steps to Reproduce:
^

Actual Results:  
^

Expected Results:  
^

Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007fd7fd2446c2 in XRandR11::config() const () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR11.so
#7  0x00007fd801030ba9 in KScreen::Config::current() () from /usr/lib/libkscreen.so.1
#8  0x00007fd801d7f632 in Okular::Utils::realDpi (widgetOnScreen=0x199a5f0) at ../core/utils.cpp:105
#9  0x00007fd801d5a1fb in Okular::DocumentPrivate::openDocumentInternal (this=0x19b3900, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=...) at ../core/document.cpp:939
#10 0x00007fd801d5a905 in Okular::Document::openDocument (this=0x1994f70, docFile=..., url=..., _mime=...) at ../core/document.cpp:2227
#11 0x00007fd80201dcac in Okular::Part::openFile (this=0x197e420) at ../part.cpp:1242
#12 0x00007fd813c80c47 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x197d6c0) at ../../kparts/part.cpp:591
#13 0x00007fd813c8222e in KParts::ReadOnlyPart::openUrl (this=this@entry=0x197e420, url=...) at ../../kparts/part.cpp:555
#14 0x00007fd80201310b in Okular::Part::openUrl (this=0x197e420, _url=...) at ../part.cpp:1392
#15 0x000000000040f117 in Shell::openUrl (this=this@entry=0x196b2f0, url=...) at ../../shell/shell.cpp:246
#16 0x000000000040f5ae in Shell::openDocument (this=this@entry=0x196b2f0, doc=...) at ../../shell/shell.cpp:186
#17 0x0000000000409dca in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:163
Comment 1 Albert Astals Cid 2014-12-14 12:20:51 UTC
Which version of libkscreen are you running? Can you install the debug symbols of libkscreen and create the trace again?
Comment 2 Albert Astals Cid 2014-12-14 12:21:01 UTC
Which version of libkscreen are you running? Can you install the debug symbols of libkscreen and create the trace again?
Comment 3 Chris Peñalver 2014-12-14 12:47:11 UTC
Albert Astals Cid, thank you for your inquiry.

>"Which version of libkscreen are you running?"

apt-cache policy libkscreen1
libkscreen1:
  Installed: 1.0.5-0ubuntu1~ubuntu14.04
  Candidate: 1.0.5-0ubuntu1~ubuntu14.04
  Version table:
     1.0.5-0ubuntu1~ubuntu14.04 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     1.0.2-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

>"Can you install the debug symbols of libkscreen and create the trace again?"

When I ran the stacktrace, I had both libkscreen-dbg and okular-dbg already installed. Would there be another *-dbg package I would need to install?

apt-cache policy libkscreen-dbg
libkscreen-dbg:
  Installed: 1.0.5-0ubuntu1~ubuntu14.04
  Candidate: 1.0.5-0ubuntu1~ubuntu14.04
  Version table:
     1.0.5-0ubuntu1~ubuntu14.04 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     1.0.2-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

apt-cache policy okular-dbg
okular-dbg:
  Installed: 4:4.13.3-0ubuntu0.1
  Candidate: 4:4.13.3-0ubuntu0.1
  Version table:
     4:4.13.3-0ubuntu0.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     4:4.13.0-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
Comment 4 Albert Astals Cid 2014-12-14 13:57:22 UTC
Which graphic card/Driver do you have?
Comment 5 Chris Peñalver 2014-12-14 18:11:36 UTC
Albert Astals Cid, thanks for the follow up.

>"Which graphic card/Driver do you have?"

00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Acer Incorporated [ALI] Device [1025:0504]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 49
	Region 0: Memory at c0000000 (64-bit, non-prefetchable) [size=4M]
	Region 2: Memory at b0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at 2000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915

Just to advise, when I installed okular in a GNOME environment (gnome-session-fallback) on a different computer (same release version of Ubuntu/Okular, but not Kubuntu ISO), the crash wasn't reproducible. The window pops up noting:
Error - Okular
Could not open /home/username/EPUBBestPractices-1_0.epub

00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400] [1002:9830] (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:3802]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 79
	Region 0: Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at f0000000 (64-bit, prefetchable) [size=8M]
	Region 4: I/O ports at 3000 [size=256]
	Region 5: Memory at f0a00000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at f0a60000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: radeon

apt-cache policy gnome-session-fallback
gnome-session-fallback:
  Installed: 1:3.8.0-1ubuntu12.2
  Candidate: 1:3.8.0-1ubuntu12.2
  Version table:
 *** 1:3.8.0-1ubuntu12.2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     1:3.8.0-1ubuntu11 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
Comment 6 Albert Astals Cid 2014-12-14 19:03:13 UTC
"Just to advise, when I installed okular in a GNOME environment (gnome-session-fallback) on a different computer (same release version of Ubuntu/Okular, but not Kubuntu ISO), the crash wasn't reproducible. The window pops up noting:"

That's because you didn't install okular-extra-backends.

Can you try running 
valgrind okular myfile.epub
and attaching the output?
Comment 7 Chris Peñalver 2014-12-14 19:46:26 UTC
Created attachment 89974 [details]
valgrind.txt
Comment 8 Albert Astals Cid 2014-12-14 20:34:04 UTC
That log doesn't make it look like it crash, did it?
Comment 9 Chris Peñalver 2014-12-14 21:55:13 UTC
>"That log doesn't make it look like it crash, did it?"

Correct. When it's running under valgrind, for whatever reason, it doesn't crash. If it doesn't run under valgrind, it crashes consistently.
Comment 10 Albert Astals Cid 2014-12-15 21:12:15 UTC
That is really weird.

I just installed kubuntu 14.04.1 in a second computer and can't reproduce the crash at all.

Are you using any custom repositories or something that might create issues?
Comment 11 Chris Peñalver 2014-12-15 22:28:51 UTC
Albert Astals Cid, thank you for your quick response. While I don't have any third party software (self-compile, PPAs, etc.) here is where I think my environment differs from yours:
+ During install I set up my user to login automatically.
+ However, with that user logged in, install the repository package xrdp.
+ While the user is still logged in, RDP into this Kubuntu install via KRDC.
+ Try to run okular as previously noted and it consistently crashes.

Let me know if you do this verbatim and it's not reproducible.
Comment 12 Albert Astals Cid 2014-12-19 23:12:15 UTC

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