Bug#969537: elpa-pdf-tools-server: broken when compiled against libpoppler102

2020-09-04 Thread David Bremner
Emilio Pozuelo Monfort  writes:

>
> You're missing libpoppler-glib's dbgsym. Could you install it?
>
> Also if you could bisect this against poppler that would help. Given that this
> is linking against libpoppler-glib and not libpoppler(-private), you shouldn't
> need to recompile epdfinfo, just run it against the local poppler build with 
> the
> appropriate LD_LIBRARY_PATH or so.

Oh! installing the matching version of libpoppler-glib8  from unstable
makes the segfaults go away. I can probably fix elpa-pdf-tools-server by
adding a versioned depends. Should something else be ensuring the
version of libpoppler-glib8 matches (or is high enough)?

d



Bug#969537: elpa-pdf-tools-server: broken when compiled against libpoppler102

2020-09-04 Thread Emilio Pozuelo Monfort
On Fri, 04 Sep 2020 12:49:06 -0300 David Bremner  wrote:
> David Bremner  writes:
> 
> > Package: elpa-pdf-tools-server
> > Version: 0.90-3+b2
> 
> Here's a backtrace
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x77e5951e in ?? () from 
> /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
> (gdb) bt
> #0  0x77e5951e in  () at 
> /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
> #1  0x77ac284f in Gfx::opShowSpaceText(Object*, int)
> (this=0x555c3100, args=0x7fffddb0, numArgs=) at 
> ./poppler/Object.h:411
> #2  0x77ab8637 in Gfx::go(bool) (this=this@entry=0x555c3100, 
> topLevel=topLevel@entry=true)
> at ./poppler/Gfx.cc:679
> #3  0x77ab8b50 in Gfx::display(Object*, bool)
> (this=this@entry=0x555c3100, obj=obj@entry=0x7fffe0c0, 
> topLevel=topLevel@entry=true)
> at ./poppler/Gfx.cc:640
> #4  0x77b12652 in Page::displaySlice(OutputDev*, double, double, int, 
> bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool 
> (*)(Annot*, void*), void*, bool)
> (this=0x555b6020, out=0x555c0be0, hDPI=, 
> vDPI=, rotate=, useMediaBox=, 
> crop=, sliceX=, sliceY=-1, sliceW=-1, 
> sliceH=-1, printing=false, abortCheckCbk=0x0, abortCheckCbkData=0x0, 
> annotDisplayDecideCbk=
> 0x0, annotDisplayDecideCbkData=0x0, copyXRef=false) at 
> ./poppler/Page.cc:574
> #5  0x77e4439c in  () at 
> /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
> #6  0xee26 in image_render_page
> (pdf=, page=0x555bd440, width=, 
> options=0x55589f18, do_render_annotaions=1) at epdfinfo.c:491
> #7  0xf9ab in cmd_renderpage (ctx=0x7fffe3c8, args= out>) at epdfinfo.c:3100
> #8  0xb33a in main (argc=, argv=) 
> at epdfinfo.c:3689

You're missing libpoppler-glib's dbgsym. Could you install it?

Also if you could bisect this against poppler that would help. Given that this
is linking against libpoppler-glib and not libpoppler(-private), you shouldn't
need to recompile epdfinfo, just run it against the local poppler build with the
appropriate LD_LIBRARY_PATH or so.

Emilio



Bug#969537: elpa-pdf-tools-server: broken when compiled against libpoppler102

2020-09-04 Thread David Bremner
David Bremner  writes:

> Package: elpa-pdf-tools-server
> Version: 0.90-3+b2

Here's a backtrace

Program received signal SIGSEGV, Segmentation fault.
0x77e5951e in ?? () from /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
(gdb) bt
#0  0x77e5951e in  () at /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
#1  0x77ac284f in Gfx::opShowSpaceText(Object*, int)
(this=0x555c3100, args=0x7fffddb0, numArgs=) at 
./poppler/Object.h:411
#2  0x77ab8637 in Gfx::go(bool) (this=this@entry=0x555c3100, 
topLevel=topLevel@entry=true)
at ./poppler/Gfx.cc:679
#3  0x77ab8b50 in Gfx::display(Object*, bool)
(this=this@entry=0x555c3100, obj=obj@entry=0x7fffe0c0, 
topLevel=topLevel@entry=true)
at ./poppler/Gfx.cc:640
#4  0x77b12652 in Page::displaySlice(OutputDev*, double, double, int, 
bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, 
void*), void*, bool)
(this=0x555b6020, out=0x555c0be0, hDPI=, 
vDPI=, rotate=, useMediaBox=, 
crop=, sliceX=, sliceY=-1, sliceW=-1, sliceH=-1, 
printing=false, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=
0x0, annotDisplayDecideCbkData=0x0, copyXRef=false) at ./poppler/Page.cc:574
#5  0x77e4439c in  () at /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
#6  0xee26 in image_render_page
(pdf=, page=0x555bd440, width=, 
options=0x55589f18, do_render_annotaions=1) at epdfinfo.c:491
#7  0xf9ab in cmd_renderpage (ctx=0x7fffe3c8, args=) at epdfinfo.c:3100
#8  0xb33a in main (argc=, argv=) at 
epdfinfo.c:3689



Bug#969537: elpa-pdf-tools-server: broken when compiled against libpoppler102

2020-09-04 Thread David Bremner
Package: elpa-pdf-tools-server
Version: 0.90-3+b2
Severity: grave
Justification: renders package unusable

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Here's a script to reproduce the segfault (path needs adjusting, must
be absolute). I suspect any pdf will be the same, but I will attach
the pdf in question. I say grave because this is the first command
sent by the emacs package elpa-pdf-tools to verify the server is
working.


/usr/bin/epdfinfo <

wt8.pdf
Description: Adobe PDF document