Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using wkhtmltopdf through the command line. It successfully creates a PDF given a URL but is very slow and the output ends with a seg fault. Any idea how to resolve this? How can I verify that I successfully installed wkhtmltopdf?

The command I am running:

wkhtmltopdf MYURL test.pdf

I verified that the following dependencies are installed:


Here is the output from the command:

Loading pages (1/5)
Resolving links (2/5)                                              
Counting pages (3/5)                                                      
Printing pages (5/5)                                                      
Segmentation fault (core dumped)

Some websites work perfectly fine while others, including every URL I need this functionality to work with, encounter the above error. Is there something about my files in particular that are causing the seg fault? They're all coded in very basic HTML and CSS.

share|improve this question

migrated from Feb 18 '12 at 23:35

This question came from our site for system and network administrators.

Seems to me that any time you get a Segmentation fault (core dumped) it is because of an error in the program. No program should dump core for any reason. Core is dumped so that an application can be debugged using the resulting core file.

share|improve this answer
While an application should not cause a core dump, few segfaults actually result in a core dump. A core dump is normally indicative of a fault in the kernel. – John Gardeniers Feb 16 '12 at 2:18
@JohnGardeniers: You are confusing an application's memory dump (or "core" dump) with a dump of kernel memory (also called a "core dump"). Both exist. It can be trivial to write a program that dumps core. You may be able to see more from core(5). In my version of that man page, the first line is: "The default of certain signals is to cause a process to terminate and produce a core dump file, a disk file containing an image of the process's memory at the time of termination." – Mei Feb 16 '12 at 15:18
if that is correct then I stand corrected and whoever wrote that man page should learn that a memory dump is not a core dump. – John Gardeniers Feb 16 '12 at 20:20

You must log in to answer this question.