Re: ports/textproc/wkhtmltopdf: coredump

Denis Fondras <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
Le Mon, Aug 17, 2026 at 11:03:46PM +0900, Simon Wollwage a écrit :
> Denis Fondras <[email protected]> writes:
> 
> > Hello,
> >
> > I am trying to use textproc/wkhtmltopdf to convert a document to PDF.
> > I am using OpenBSD-current on amd64.
> >
> > When running `wkhtmltopdf example.com ex.pdf`, it fails with a coredump :
> > ```
> > * thread #1, stop reason = signal SIGSEGV
> >   * frame #0: 0x000000332b80e181 wkhtmltopdf`QApplication::setStyle(QStyle*) +
> >   * 721
> >     frame #1: 0x000000332a79f158 wkhtmltopdf`main + 280
> >     frame #2: 0x000000332a75dc2b wkhtmltopdf`__start + 267
> > ```
> >
> > I tried with multiple page and html documents, always the same error.
> >
> > Can someone confirm it works on its system please ?
> >
> > Denis
> 
> Does that happen with any document or can you create a minimal
> reproducible example that can be used for debugging?

What I can see is that a the following diff allows wkhtmltopdf to run further. Still dumping in another later Qt call though.

--- wkhtmltopdf.cc.orig Mon Aug 17 16:25:28 2026
+++ wkhtmltopdf.cc      Mon Aug 17 16:22:01 2026
@@ -191,7 +191,7 @@
 #endif
        QApplication a(argc, argv, use_graphics);
        MyLooksStyle * style = new MyLooksStyle();
-       a.setStyle(style);
+       //a.setStyle(style);
 
        if (parser.readArgsFromStdin) {
                char *buff;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.