Bug#972715: atril: segfault on opening an epub file
Package: atril
Version: 1.24.0-1
Severity: normal
X-Debbugs-Cc: tomaxuser@gmail.com
After opening a file in atril (e.g. `atril /tmp/love.pdf`) I get a reproducible
segfault. From the backtrace I suspect that the problem lies in the included
opf XML file which is a part of the epub file (which can be downloaded here:
https://arkhamarchivist.com/ebook/The%20Complete%20Works%20of%20HP%20Lovecraft.epub).
xmllint did not complain about the file and a Pocketbook reads the file fine.
If I had to pinpoint the problematic library, I guess it would be
libatrildocument3.
Regards,
Tomas
Thread 10 "EvJobScheduler" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff9bffd700 (LWP 321539)]
xml_get_data_from_node (node=0x0, attributename=<optimized out>, rettype=<optimized out>) at epub-document.c:610
610 epub-document.c: No such file or directory.
(gdb) bt
#0 xml_get_data_from_node (node=0x0, attributename=<optimized out>, rettype=<optimized out>) at epub-document.c:610
#1 0x00007fffe6a374d5 in xml_get_data_from_node (attributename=0x0, rettype=XML_KEYWORD, node=<optimized out>) at epub-document.c:1284
#2 setup_document_index (containeruri=0x7fff84005b90 "file:///tmp/atril-321523/love.epubP8R5S0/OEBPS/content.opf", epub_document=0x555555982f40) at epub-document.c:1284
#3 epub_document_load (document=<optimized out>, uri=<optimized out>, error=0x7fff9bffca50) at epub-document.c:1744
#4 0x00007ffff7f6c602 in ev_document_load (document=document@entry=0x555555982f40, uri=uri@entry=0x555555ab18e0 "file:///tmp/love.epub", error=error@entry=0x7fff9bffcac0) at ev-document.c:230
#5 0x00007ffff7f6e26b in ev_document_factory_get_document (uri=0x555555ab18e0 "file:///tmp/love.epub", error=error@entry=0x7fff9bffcb10) at ev-document-factory.c:235
#6 0x00007ffff7f2023c in ev_job_load_run (job=0x555555b27050) at ev-jobs.c:1111
#7 0x00007ffff7f21242 in ev_job_thread (job=0x555555b27050) at ev-job-scheduler.c:184
#8 ev_job_thread_proxy (data=<optimized out>) at ev-job-scheduler.c:217
#9 0x00007ffff70fbdbd in g_thread_proxy (data=0x5555558364c0) at ../../../glib/gthread.c:820
#10 0x00007ffff6f23ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007ffff6e53d4f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
*** /tmp/atril-321523/love.epubP8R5S0/OEBPS/content.opf
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:title>The Complete Works of H.P. Lovecraft</dc:title>
<dc:rights>Public domain</dc:rights>
<dc:creator opf:role="aut">H.P. Lovecraft</dc:creator>
<dc:description>The complete original short stories and novels/novellas of Howard Philips Lovecraft written between 1917 and 1935.</dc:description>
<dc:date opf:event="creation">2011-03-01</dc:date>
<dc:contributor opf:role="com">Ruth - CthulhuChick.com</dc:contributor>
<dc:language>en</dc:language>
<dc:identifier id="BookID" opf:scheme="UUID">urn:uuid:691852ee-1441-452b-9adc-ae86bbe909d1</dc:identifier>
<meta name="cover" content="cclicense.png"/>
<meta name="Sigil version" content="0.3.4"/>
</metadata>
<manifest>
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
<item id="Lovecraftcover.png" href="Images/Lovecraft%20cover.png" media-type="image/png"/>
<item id="cclicense.png" href="Images/cclicense.png" media-type="image/png"/>
<item id="cover.png" href="Images/cover.png" media-type="image/png"/>
<item id="AttheMountainsofMadness.xhtml" href="Text/At%20the%20Mountains%20of%20Madness.xhtml" media-type="application/xhtml+xml"/>
<item id="Azazoth.xhtml" href="Text/Azazoth.xhtml" media-type="application/xhtml+xml"/>
<item id="BeyondtheWallofSleep.xhtml" href="Text/Beyond%20the%20Wall%20of%20Sleep.xhtml" media-type="application/xhtml+xml"/>
<item id="Celephais.xhtml" href="Text/Celephais.xhtml" media-type="application/xhtml+xml"/>
<item id="CoolAir.xhtml" href="Text/Cool%20Air.xhtml" media-type="application/xhtml+xml"/>
<item id="Cover.xhtml" href="Text/Cover.xhtml" media-type="application/xhtml+xml"/>
<item id="Dagon.xhtml" href="Text/Dagon.xhtml" media-type="application/xhtml+xml"/>
<item id="ExOblivione.xhtml" href="Text/Ex%20Oblivione.xhtml" media-type="application/xhtml+xml"/>
<item id="FromBeyond.xhtml" href="Text/From%20Beyond.xhtml" media-type="application/xhtml+xml"/>
<item id="He.xhtml" href="Text/He.xhtml" media-type="application/xhtml+xml"/>
<item id="HerbertWestReanimator.xhtml" href="Text/Herbert%20West%20Reanimator.xhtml" media-type="application/xhtml+xml"/>
<item id="Hypnos.xhtml" href="Text/Hypnos.xhtml" media-type="application/xhtml+xml"/>
<item id="Ibid.xhtml" href="Text/Ibid.xhtml" media-type="application/xhtml+xml"/>
<item id="IntheVault.xhtml" href="Text/In%20the%20Vault.xhtml" media-type="application/xhtml+xml"/>
<item id="Memory.xhtml" href="Text/Memory.xhtml" media-type="application/xhtml+xml"/>
<item id="Nyarlathotep.xhtml" href="Text/Nyarlathotep.xhtml" media-type="application/xhtml+xml"/>
<item id="OldBugs.xhtml" href="Text/Old%20Bugs.xhtml" media-type="application/xhtml+xml"/>
<item id="PickmansModel.xhtml" href="Text/Pickmans%20Model.xhtml" media-type="application/xhtml+xml"/>
<item id="Polaris.xhtml" href="Text/Polaris.xhtml" media-type="application/xhtml+xml"/>
<item id="Preface.xhtml" href="Text/Preface.xhtml" media-type="application/xhtml+xml"/>
<item id="TableofContents.xhtml" href="Text/Table%20of%20Contents.xhtml" media-type="application/xhtml+xml"/>
<item id="TheBook.xhtml" href="Text/The%20Book.xhtml" media-type="application/xhtml+xml"/>
<item id="TheCallofCthulhu.xhtml" href="Text/The%20Call%20of%20Cthulhu.xhtml" media-type="application/xhtml+xml"/>
<item id="TheCaseofCharlesDexterWard.xhtml" href="Text/The%20Case%20of%20Charles%20Dexter%20Ward.xhtml" media-type="application/xhtml+xml"/>
<item id="TheCatsofUlthar.xhtml" href="Text/The%20Cats%20of%20Ulthar.xhtml" media-type="application/xhtml+xml"/>
<item id="TheColourOutofSpace.xhtml" href="Text/The%20Colour%20Out%20of%20Space.xhtml" media-type="application/xhtml+xml"/>
<item id="TheDescendant.xhtml" href="Text/The%20Descendant.xhtml" media-type="application/xhtml+xml"/>
<item id="TheDoomThatCametoSarnath.xhtml" href="Text/The%20Doom%20That%20Came%20to%20Sarnath.xhtml" media-type="application/xhtml+xml"/>
<item id="TheDreamQuestofUnknownKadath.xhtml" href="Text/The%20Dream%20Quest%20of%20Unknown%20Kadath.xhtml" media-type="application/xhtml+xml"/>
<item id="TheDreamsintheWitchHouse.xhtml" href="Text/The%20Dreams%20in%20the%20Witch%20House.xhtml" media-type="application/xhtml+xml"/>
<item id="TheDunwichHorror.xhtml" href="Text/The%20Dunwich%20Horror.xhtml" media-type="application/xhtml+xml"/>
<item id="TheEvilClergyman.xhtml" href="Text/The%20Evil%20Clergyman.xhtml" media-type="application/xhtml+xml"/>
<item id="TheFactsConcerningtheLateArthurJermynandHisFamily.xhtml" href="Text/The%20Facts%20Concerning%20the%20Late%20Arthur%20Jermyn%20and%20His%20Family.xhtml" media-type="application/xhtml+xml"/>
<item id="TheFestival.xhtml" href="Text/The%20Festival.xhtml" media-type="application/xhtml+xml"/>
<item id="TheHaunteroftheDark.xhtml" href="Text/The%20Haunter%20of%20the%20Dark.xhtml" media-type="application/xhtml+xml"/>
<item id="TheHistoryoftheNecronomicon.xhtml" href="Text/The%20History%20of%20the%20Necronomicon.xhtml" media-type="application/xhtml+xml"/>
<item id="TheHorroratRedHook.xhtml" href="Text/The%20Horror%20at%20Red%20Hook.xhtml" media-type="application/xhtml+xml"/>
<item id="TheHound.xhtml" href="Text/The%20Hound.xhtml" media-type="application/xhtml+xml"/>
<item id="TheLurkingFear.xhtml" href="Text/The%20Lurking%20Fear.xhtml" media-type="application/xhtml+xml"/>
<item id="TheMoon-Bog.xhtml" href="Text/The%20Moon-Bog.xhtml" media-type="application/xhtml+xml"/>
<item id="TheMusicofErichZann.xhtml" href="Text/The%20Music%20of%20Erich%20Zann.xhtml" media-type="application/xhtml+xml"/>
<item id="TheNamelessCity.xhtml" href="Text/The%20Nameless%20City.xhtml" media-type="application/xhtml+xml"/>
<item id="TheOtherGods.xhtml" href="Text/The%20Other%20Gods.xhtml" media-type="application/xhtml+xml"/>
<item id="TheOutsider.xhtml" href="Text/The%20Outsider.xhtml" media-type="application/xhtml+xml"/>
<item id="ThePictureintheHouse.xhtml" href="Text/The%20Picture%20in%20the%20House.xhtml" media-type="application/xhtml+xml"/>
<item id="TheQuestofIranon.xhtml" href="Text/The%20Quest%20of%20Iranon.xhtml" media-type="application/xhtml+xml"/>
<item id="TheRatsintheWalls.xhtml" href="Text/The%20Rats%20in%20the%20Walls.xhtml" media-type="application/xhtml+xml"/>
<item id="TheShadowOverInnsmouth.xhtml" href="Text/The%20Shadow%20Over%20Innsmouth.xhtml" media-type="application/xhtml+xml"/>
<item id="TheShadowoutofTime.xhtml" href="Text/The%20Shadow%20out%20of%20Time.xhtml" media-type="application/xhtml+xml"/>
<item id="TheShunnedHouse.xhtml" href="Text/The%20Shunned%20House.xhtml" media-type="application/xhtml+xml"/>
<item id="TheSilverKey.xhtml" href="Text/The%20Silver%20Key.xhtml" media-type="application/xhtml+xml"/>
<item id="TheStatementofRandolphCarter.xhtml" href="Text/The%20Statement%20of%20Randolph%20Carter.xhtml" media-type="application/xhtml+xml"/>
<item id="TheStrangeHighHouseintheMist.xhtml" href="Text/The%20Strange%20High%20House%20in%20the%20Mist.xhtml" media-type="application/xhtml+xml"/>
<item id="TheStreet.xhtml" href="Text/The%20Street.xhtml" media-type="application/xhtml+xml"/>
<item id="TheTemple.xhtml" href="Text/The%20Temple.xhtml" media-type="application/xhtml+xml"/>
<item id="TheTerribleOldMan.xhtml" href="Text/The%20Terrible%20Old%20Man.xhtml" media-type="application/xhtml+xml"/>
<item id="TheThingintheMoonlight.xhtml" href="Text/The%20Thing%20in%20the%20Moonlight.xhtml" media-type="application/xhtml+xml"/>
<item id="TheThingontheDoorstep.xhtml" href="Text/The%20Thing%20on%20the%20Doorstep.xhtml" media-type="application/xhtml+xml"/>
<item id="TheTomb.xhtml" href="Text/The%20Tomb.xhtml" media-type="application/xhtml+xml"/>
<item id="TheTransitionofJuanRomero.xhtml" href="Text/The%20Transition%20of%20Juan%20Romero.xhtml" media-type="application/xhtml+xml"/>
<item id="TheTree.xhtml" href="Text/The%20Tree.xhtml" media-type="application/xhtml+xml"/>
<item id="TheUnnamable.xhtml" href="Text/The%20Unnamable.xhtml" media-type="application/xhtml+xml"/>
<item id="TheVeryOldFolk.xhtml" href="Text/The%20Very%20Old%20Folk.xhtml" media-type="application/xhtml+xml"/>
<item id="TheWhispererinDarkness.xhtml" href="Text/The%20Whisperer%20in%20Darkness.xhtml" media-type="application/xhtml+xml"/>
<item id="TheWhiteShip.xhtml" href="Text/The%20White%20Ship.xhtml" media-type="application/xhtml+xml"/>
<item id="WhattheMoonBrings.xhtml" href="Text/What%20the%20Moon%20Brings.xhtml" media-type="application/xhtml+xml"/>
</manifest>
<spine toc="ncx">
<itemref idref="Cover.xhtml"/>
<itemref idref="Preface.xhtml"/>
<itemref idref="TableofContents.xhtml"/>
<itemref idref="TheTomb.xhtml"/>
<itemref idref="Dagon.xhtml"/>
<itemref idref="Polaris.xhtml"/>
<itemref idref="BeyondtheWallofSleep.xhtml"/>
<itemref idref="Memory.xhtml"/>
<itemref idref="OldBugs.xhtml"/>
<itemref idref="TheTransitionofJuanRomero.xhtml"/>
<itemref idref="TheWhiteShip.xhtml"/>
<itemref idref="TheDoomThatCametoSarnath.xhtml"/>
<itemref idref="TheStatementofRandolphCarter.xhtml"/>
<itemref idref="TheTerribleOldMan.xhtml"/>
<itemref idref="TheTree.xhtml"/>
<itemref idref="TheCatsofUlthar.xhtml"/>
<itemref idref="TheTemple.xhtml"/>
<itemref idref="TheFactsConcerningtheLateArthurJermynandHisFamily.xhtml"/>
<itemref idref="TheStreet.xhtml"/>
<itemref idref="Celephais.xhtml"/>
<itemref idref="FromBeyond.xhtml"/>
<itemref idref="Nyarlathotep.xhtml"/>
<itemref idref="ThePictureintheHouse.xhtml"/>
<itemref idref="ExOblivione.xhtml"/>
<itemref idref="TheNamelessCity.xhtml"/>
<itemref idref="TheQuestofIranon.xhtml"/>
<itemref idref="TheMoon-Bog.xhtml"/>
<itemref idref="TheOutsider.xhtml"/>
<itemref idref="TheOtherGods.xhtml"/>
<itemref idref="TheMusicofErichZann.xhtml"/>
<itemref idref="HerbertWestReanimator.xhtml"/>
<itemref idref="Hypnos.xhtml"/>
<itemref idref="WhattheMoonBrings.xhtml"/>
<itemref idref="Azazoth.xhtml"/>
<itemref idref="TheHound.xhtml"/>
<itemref idref="TheLurkingFear.xhtml"/>
<itemref idref="TheRatsintheWalls.xhtml"/>
<itemref idref="TheUnnamable.xhtml"/>
<itemref idref="TheFestival.xhtml"/>
<itemref idref="TheShunnedHouse.xhtml"/>
<itemref idref="TheHorroratRedHook.xhtml"/>
<itemref idref="He.xhtml"/>
<itemref idref="IntheVault.xhtml"/>
<itemref idref="TheDescendant.xhtml"/>
<itemref idref="CoolAir.xhtml"/>
<itemref idref="TheCallofCthulhu.xhtml"/>
<itemref idref="PickmansModel.xhtml"/>
<itemref idref="TheSilverKey.xhtml"/>
<itemref idref="TheStrangeHighHouseintheMist.xhtml"/>
<itemref idref="TheDreamQuestofUnknownKadath.xhtml"/>
<itemref idref="TheCaseofCharlesDexterWard.xhtml"/>
<itemref idref="TheColourOutofSpace.xhtml"/>
<itemref idref="TheVeryOldFolk.xhtml"/>
<itemref idref="TheThingintheMoonlight.xhtml"/>
<itemref idref="TheHistoryoftheNecronomicon.xhtml"/>
<itemref idref="Ibid.xhtml"/>
<itemref idref="TheDunwichHorror.xhtml"/>
<itemref idref="TheWhispererinDarkness.xhtml"/>
<itemref idref="AttheMountainsofMadness.xhtml"/>
<itemref idref="TheShadowOverInnsmouth.xhtml"/>
<itemref idref="TheDreamsintheWitchHouse.xhtml"/>
<itemref idref="TheThingontheDoorstep.xhtml"/>
<itemref idref="TheEvilClergyman.xhtml"/>
<itemref idref="TheBook.xhtml"/>
<itemref idref="TheShadowoutofTime.xhtml"/>
<itemref idref="TheHaunteroftheDark.xhtml"/>
</spine>
<guide>
<reference type="cover" title="Cover" href="Text/Preface.xhtml"/>
</guide>
</package>
-- System Information:
Debian Release: bullseye/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.8.0-3-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages atril depends on:
ii atril-common 1.24.0-1
ii dconf-gsettings-backend [gsettings-backend] 0.38.0-1
ii libatk1.0-0 2.36.0-2
ii libatrildocument3 1.24.0-1
ii libatrilview3 1.24.0-1
ii libc6 2.31-4
ii libcaja-extension1 1.24.0-1
ii libgdk-pixbuf2.0-0 2.40.0+dfsg-5
ii libglib2.0-0 2.66.1-2
ii libgtk-3-0 3.24.23-2
ii libice6 2:1.0.10-1
ii libsecret-1-0 0.20.3-1
ii libsm6 2:1.2.3-1
ii libxml2 2.9.10+dfsg-6.1
ii shared-mime-info 2.0-1
Versions of packages atril recommends:
ii dbus-user-session [default-dbus-session-bus] 1.12.20-1
ii dbus-x11 [dbus-session-bus] 1.12.20-1
ii gvfs 1.46.1-1
Versions of packages atril suggests:
pn caja <none>
ii poppler-data 0.4.9-2
ii unrar 1:5.6.6-2
-- no debconf information
Reply to: