Hi,

On Mon, Dec 25, 2017 at 11:00:00AM +0000, Edd Barrett wrote:
> Any info you have on the crash would also be useful. Did you have a trace?

That's what I got today, when building math/octave (exactly: when
math/octave runs texi2pdf to generate pdf documentation). Please
note that you'll probably have to use egdb (package gdb from ports).

$ egdb /usr/local/bin/pdftex pdftex.core 
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-openbsd6.2".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/pdftex...done.
[New process 223395]
Core was generated by `pdftex'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  _rthread_mutex_timedlock (mutexp=0x22a, trywait=0, abs=0x0, timed=0) at 
/usr/src/lib/libc/thread/rthread_mutex.c:154
154             if (*mutexp == NULL) {
(gdb) bt
#0  _rthread_mutex_timedlock (mutexp=0x22a, trywait=0, abs=0x0, timed=0) at 
/usr/src/lib/libc/thread/rthread_mutex.c:154
#1  0x0000178abe406ea3 in MutexLocker::MutexLocker (this=0x7f7ffffe2600, 
mutexA=0x22a) at ../goo/GooMutex.h:78
#2  0x0000178abe427b7d in Dict::add(char*, Object&&) (this=0x202, 
key=0x178abafcdaf0 "ProcSet", val=<unknown type in 
/usr/local/lib/libpoppler.so.45.0, CU 0x88c80, DIE 0x8cc67>) at Dict.cc:145
#3  0x00001788965c8599 in Object::dictAdd(char*, Object&&) 
(this=0x7f7ffffe2a40, key=0x178abafcdaf0 "ProcSet", val=<unknown type in 
/usr/local/bin/pdftex, CU 0x26ab0, DIE 0x2e37e>)
    at /usr/local/include/poppler/Object.h:347
#4  0x00001788965c5179 in initDictFromDict (obj=..., dict=0x178ab8fdc240) at 
../.././../texk/web2c/pdftexdir/pdftoepdf.cc:196
#5  0x00001788965c3c7f in write_epdf () at 
../.././../texk/web2c/pdftexdir/pdftoepdf.cc:963
#6  0x00001788965a880c in writeimage (img=0) at 
../.././../texk/web2c/pdftexdir/writeimg.c:382
#7  0x000017889656499c in zpdfwriteimage (n=4) at pdftex0.c:22285
#8  0x00001788965934b8 in doextension () at pdftex0.c:37228
#9  0x0000178896596ff1 in maincontrol () at pdftex0.c:38916
#10 0x00001788965215ab in mainbody () at pdftexini.c:5656
#11 0x0000178896503117 in main (ac=5, av=0x7f7ffffe2f68) at 
../.././../texk/web2c/lib/texmfmp.c:1013



And from the build log of math/octave:

TEXINPUTS="/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/build-aux:$TEXINPUTS" \
MAKEINFO='/bin/sh 
/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/build-aux/missing makeinfo   -I 
doc/interpreter -I 
/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/doc/interpreter' \
texi2pdf  --build-dir=doc/interpreter/octave.t2p -o doc/interpreter/octave.pdf  
\
`test -f 'doc/interpreter/octave.texi' || echo 
'/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/'`doc/interpreter/octave.texi
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016-OpenBSD_Ports) 
(preloaded format=pdfetex)
 restricted \write18 enabled.
entering extended mode
(/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/doc/interpreter/octave.texi
(/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/build-aux/texinfo.tex
Loading texinfo [version 2016-09-18.18]: pdf, fonts, markup, glyphs,
page headings, tables, conditionals, indexing, sectioning, toc, environments,
defuns, macros, cross references, insertions,
(/usr/local/share/texmf-local/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.4 <14 February 2011>
) localization, formatting, and turning on texinfo input format.)
(/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/doc/interpreter/macros.texi)
(/home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/doc/interpreter/version-octave.t
exi) </home/ports/pobj/p2/octave-4.2.1/octave-4.2.1/doc/interpreter/octave_logo
.pdfSegmentation fault (core dumped) 

I don't yet have any simple input file to reproduce it, but from
what I read at the archlinux reports, it happens when you import a
pdf file into your document, which matches the pdftex output about
(it fails when including octave_logo.pdf).

I'm also pretty sure that I'd seen other backtrace than the one
pasted above, failing somewhere in memmove(3) or similar, completely
unrelated to pthreads, so this looks just like random memory
corruption.

But again: it's tiresome to switch back and forth between different
versions of poppler and differently patched versions of texlive/base.
My patch for print/texlive/base with a newer poppler is obviously
incorrect (or poppler-0.59, which I currently use for those tests,
is buggy), print/texlive/base builds and works with the bundled
poppler, even if it's outdated, so I'm going to put that in (with
jca@'s correction regarding CPPFLAGS). *temporarily*. To get that
poppler bullshit off my table.

Ciao,
        Kili

Reply via email to