get build on SmartOS working #1794

Closed
davefinster opened this Issue Jun 21, 2014 · 8 comments

Projects

None yet

2 participants

@davefinster

Hi Everyone

After much pain I was able to compile the custom Qt that goes along with wkhtmltopdf on the current Joyent SmartOS Base 64-bit image. I've been able to compile wkhtmltopdf library and pdf binary, but running it generates a segmentation fault.

I was able to compile the Qt distro by copying the configure arguments used by the pkgsrc maintainers to get the original Qt to compile on SmartOS. They carry several patches, some of which I applied manually due to some of the files already being changed in the custom distro.

I am able to run ./wkhtmltopdf --help and I get the help text, but any attempt to utilise the functionality of wkhtmltopdf results in a Seg Fault.

Any advice for debugging this further?

Stack trace from DTrace

_ZN3WTF17TCMalloc_PageHeap8GrowHeapEm+0xdd()
_ZN3WTF25TCMalloc_Central_FreeList18FetchFromSpansSafeEv+0x400()
_ZN3WTF25TCMalloc_Central_FreeList11RemoveRangeEPPvS2_Pi+0x4c()
_ZN3WTF10fastMallocEm+0x368()
_ZN3WTF10StringImpl5emptyEv+0x4a()
_ZN3JSC19initializeThreadingEv+0x25()
_ZN7WebCore16ScriptController19initializeThreadingEv+9()
_ZN15QWebPagePrivateC1EP8QWebPage+0x16d()
_ZN8QWebPageC1EP7QObject+0x45()
_ZN11wkhtmltopdf10MyQWebPageC1ERNS_14ResourceObjectE+0x1d()
_ZN11wkhtmltopdf14ResourceObjectC1ERNS_22MultiPageLoaderPrivateERK4QUrlRKNS_8set
tings8LoadPageE+0x80()
_ZN11wkhtmltopdf22MultiPageLoaderPrivate11addResourceERK4QUrlRKNS_8settings8Load
PageE+0x3f()
_ZN11wkhtmltopdf15MultiPageLoader11addResourceERK7QStringRKNS_8settings8LoadPage
EPS2_+0x1ba()
_ZN11wkhtmltopdf19PdfConverterPrivate12beginConvertEv+0x1ec()
_ZN11wkhtmltopdf16ConverterPrivate7convertEv+0x16()
main+0xf0e()
_start+0x6c()

Running the binary through truss, this is what I get:

truss ./wkhtmltopdf test.html test.pdf
execve("wkhtmltopdf", 0xFFFFFD7FFFDFF688, 0xFFFFFD7FFFDFF6A8)  argc = 3
sysinfo(SI_MACHINE, "i86pc", 257)               = 6
mmap(0x00000000, 56, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF390000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF380000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF370000
memcntl(0xFFFFFD7FFF399000, 93432, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF360000
memcntl(0x00400000, 17678344, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
resolvepath("/usr/lib/amd64/ld.so.1", "/lib/amd64/ld.so.1", 1023) = 18
getcwd("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin", 1011) = 0
resolvepath("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin/wkhtmltopdf", "/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin/wkhtmltopdf", 1023) = 77
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin/wkhtmltopdf", 0xFFFFFD7FFFDFF360) = 0
open("/var/ld/64/ld.config", O_RDONLY)          Err#2 ENOENT
stat("/opt/local/lib/libtiff.so.5", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libtiff.so.5", "/opt/local/lib/libtiff.so.5.2.0", 1023) = 31
open("/opt/local/lib/libtiff.so.5", O_RDONLY)   = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF360D78, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF350000
memcntl(0xFFFFFD7FE78C0000, 80720, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/liblzma.so.5", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/liblzma.so.5", "/opt/local/lib/liblzma.so.5.0.4", 1023) = 31
open("/opt/local/lib/liblzma.so.5", O_RDONLY)   = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF350A80, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF340000
memcntl(0xFFFFFD7FEBC40000, 39560, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libjpeg.so.9", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libjpeg.so.9", "/opt/local/lib/libjpeg.so.9.0.0", 1023) = 31
open("/opt/local/lib/libjpeg.so.9", O_RDONLY)   = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF340938, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF330000
memcntl(0xFFFFFD7FEBBF0000, 51976, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libXrender.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libXrender.so.1", "/opt/local/lib/libXrender.so.1.3.0", 1023) = 34
open("/opt/local/lib/libXrender.so.1", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF330920, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF320000
memcntl(0xFFFFFD7FEBB80000, 12696, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libfontconfig.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libfontconfig.so.1", "/opt/local/lib/libfontconfig.so.1.7.0", 1023) = 37
open("/opt/local/lib/libfontconfig.so.1", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF320998, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF310000
memcntl(0xFFFFFD7FEBA70000, 75792, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libfreetype.so.6", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libfreetype.so.6", "/opt/local/lib/libfreetype.so.6.10.0", 1023) = 36
open("/opt/local/lib/libfreetype.so.6", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF3109B0, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF300000
memcntl(0xFFFFFD7FEBAD0000, 143384, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libz.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libz.so.1", "/opt/local/lib/libz.so.1.0.2", 1023) = 28
open("/opt/local/lib/libz.so.1", O_RDONLY)      = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF300950, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF2F0000
memcntl(0xFFFFFD7FECAA0000, 18088, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libbz2.so.0", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libbz2.so.0", "/opt/local/lib/libbz2.so.0.0.0", 1023) = 30
open("/opt/local/lib/libbz2.so.0", O_RDONLY)    = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2F0920, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF2E0000
memcntl(0xFFFFFD7FEBDB0000, 10248, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libexpat.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libexpat.so.1", "/opt/local/lib/libexpat.so.1.6.0", 1023) = 32
open("/opt/local/lib/libexpat.so.1", O_RDONLY)  = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2E0920, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF2D0000
memcntl(0xFFFFFD7FEC7D0000, 39192, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libXext.so.0", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libXext.so.0", "/opt/local/lib/libXext.so.0.0.0", 1023) = 31
open("/opt/local/lib/libXext.so.0", O_RDONLY)   = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2D0920, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF2C0000
memcntl(0xFFFFFD7FEBA40000, 28528, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libX11.so.6", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libX11.so.6", "/opt/local/lib/libX11.so.6.3.0", 1023) = 30
open("/opt/local/lib/libX11.so.6", O_RDONLY)    = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2C09B0, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF2B0000
memcntl(0xFFFFFD7FEB8E0000, 269720, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libxcb.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libxcb.so.1", "/opt/local/lib/libxcb.so.1.1.0", 1023) = 30
open("/opt/local/lib/libxcb.so.1", O_RDONLY)    = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2B0998, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF2A0000
memcntl(0xFFFFFD7FEB8B0000, 67248, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libXau.so.6", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libXau.so.6", "/opt/local/lib/libXau.so.6.0.0", 1023) = 30
open("/opt/local/lib/libXau.so.6", O_RDONLY)    = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2A0968, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF290000
memcntl(0xFFFFFD7FEB890000, 6528, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libXdmcp.so.6", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libXdmcp.so.6", "/opt/local/lib/libXdmcp.so.6.0.0", 1023) = 32
open("/opt/local/lib/libXdmcp.so.6", O_RDONLY)  = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF290908, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF280000
memcntl(0xFFFFFD7FEB870000, 9248, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libresolv.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libresolv.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libresolv.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libresolv.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libresolv.so.2", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/lib/64/libresolv.so.2", "/lib/amd64/libresolv.so.2", 1023) = 25
open("/lib/64/libresolv.so.2", O_RDONLY)        = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF280B20, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF270000
memcntl(0xFFFFFD7FFE1E0000, 108072, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libsocket.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libsocket.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libsocket.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libsocket.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libsocket.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/lib/64/libsocket.so.1", "/lib/amd64/libsocket.so.1", 1023) = 25
open("/lib/64/libsocket.so.1", O_RDONLY)        = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF270B00, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF260000
memcntl(0xFFFFFD7FFEA50000, 30912, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libxnet.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libxnet.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libxnet.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libxnet.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libxnet.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/lib/64/libxnet.so.1", "/lib/amd64/libxnet.so.1", 1023) = 23
open("/lib/64/libxnet.so.1", O_RDONLY)          = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF260AA0, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF250000
stat("/opt/local/lib/libnsl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libnsl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libnsl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libnsl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libnsl.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/lib/64/libnsl.so.1", "/lib/amd64/libnsl.so.1", 1023) = 22
open("/lib/64/libnsl.so.1", O_RDONLY)           = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2508F0, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF240000
memcntl(0xFFFFFD7FFED10000, 170992, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libdl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libdl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libdl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libdl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libdl.so.1", 0xFFFFFD7FFFDFEA50)  = 0
resolvepath("/lib/64/libdl.so.1", "/lib/amd64/libdl.so.1", 1023) = 21
open("/lib/64/libdl.so.1", O_RDONLY)            = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF240AD0, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
stat("/opt/local/lib/libiconv.so.2", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/lib/libiconv.so.2", "/opt/local/lib/libiconv.so.2.5.1", 1023) = 32
open("/opt/local/lib/libiconv.so.2", O_RDONLY)  = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF260C50, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF230000
memcntl(0xFFFFFD7FF31F0000, 34592, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libpthread.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libpthread.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libpthread.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libpthread.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libpthread.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/lib/64/libpthread.so.1", "/lib/amd64/libpthread.so.1", 1023) = 26
open("/lib/64/libpthread.so.1", O_RDONLY)       = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF230A40, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF220000
stat("/opt/local/lib/librt.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/librt.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/librt.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/librt.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/librt.so.1", 0xFFFFFD7FFFDFEA50)  = 0
resolvepath("/lib/64/librt.so.1", "/lib/amd64/librt.so.1", 1023) = 21
open("/lib/64/librt.so.1", O_RDONLY)            = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF220CE0, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF210000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF200000
stat("/opt/local/lib/libstdc++.so.6", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libstdc++.so.6", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libstdc++.so.6", "/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libstdc++.so.6.0.17", 1023) = 69
open("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libstdc++.so.6", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF2107E8, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF1F0000
memcntl(0xFFFFFD7FEBDD0000, 550384, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libm.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libm.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libm.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libm.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libm.so.2", 0xFFFFFD7FFFDFEA50)   = 0
resolvepath("/lib/64/libm.so.2", "/lib/amd64/libm.so.2", 1023) = 20
open("/lib/64/libm.so.2", O_RDONLY)             = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF1F0A70, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF1E0000
memcntl(0xFFFFFD7FFEEE0000, 58680, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libgcc_s.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libgcc_s.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libgcc_s.so.1", "/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libgcc_s.so.1", 1023) = 63
open("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libgcc_s.so.1", O_RDONLY) = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF1E0920, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF1D0000
memcntl(0xFFFFFD7FF31C0000, 26504, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/lib/libc.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libc.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/amd64/libc.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/lib/libc.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libc.so.1", 0xFFFFFD7FFFDFEA50)   = 0
resolvepath("/lib/64/libc.so.1", "/lib/amd64/libc.so.1", 1023) = 20
open("/lib/64/libc.so.1", O_RDONLY)             = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF1D09F0, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF020000
memcntl(0xFFFFFD7FFF030000, 448488, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF010000
stat("/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/libpthread.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/libpthread.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/librt.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/librt.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/libm.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/libm.so.2", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/lib/libumem.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/x86_64-sun-solaris2.11/lib/amd64/libumem.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/libumem.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/libumem.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/lib/64/libumem.so.1", 0xFFFFFD7FFFDFEA50) = 0
resolvepath("/lib/64/libumem.so.1", "/lib/amd64/libumem.so.1", 1023) = 23
open("/lib/64/libumem.so.1", O_RDONLY)          = 3
mmapobj(3, MMOBJ_INTERPRET, 0xFFFFFD7FFF1D0BE8, 0xFFFFFD7FFFDFE5AC, 0x00000000) = 0
close(3)                                        = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF000000
memcntl(0xFFFFFD7FFEBE0000, 423320, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat("/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/libc.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/libc.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/libnsl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/libnsl.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3/libsocket.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
stat("/opt/local/gcc47/lib/libsocket.so.1", 0xFFFFFD7FFFDFEA50) Err#2 ENOENT
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFFFFFD7FFEFF0000
getcontext(0xFFFFFD7FFFDFEDB0)
getrlimit(RLIMIT_STACK, 0xFFFFFD7FFFDFF110)     = 0
getpid()                                        = 14201 [14197]
lwp_private(0, 0, 0xFFFFFD7FFEFF2A40)           = 0x00000000
setustack(0xFFFFFD7FFEFF2AE8)
sysconfig(_CONFIG_STACK_PROT)                   = 3
sysconfig(_CONFIG_PAGESIZE)                     = 4096
sigfillset(0xFFFFFD7FFF1BFF20)                  = 0
sysi86(SI86FPSTART, 0xFFFFFD7FFFDFF63C, 0x0000133F, 0x00001F80) = 0x00000001
open("/usr/lib/locale/en_AU.UTF-8/LC_MESSAGES/SUNW_OST_SGS.mo", O_RDONLY) Err#2 ENOENT
sysconfig(_CONFIG_NPROC_ONLN)                   = 24
issetugid()                                     = 0
open("/usr/lib/locale/en_AU.UTF-8/LC_MESSAGES/SUNW_OST_OSLIB.mo", O_RDONLY) Err#2 ENOENT
issetugid()                                     = 0
brk(0x034FD000)                                 = 0
brk(0x0350D000)                                 = 0
brk(0x0351D000)                                 = 0
brk(0x0352D000)                                 = 0
brk(0x0353D000)                                 = 0
brk(0x0354D000)                                 = 0
brk(0x0355D000)                                 = 0
brk(0x0356D000)                                 = 0
brk(0x0357D000)                                 = 0
brk(0x0358D000)                                 = 0
brk(0x0359D000)                                 = 0
open("/opt/local/lib/charset.alias", O_RDONLY|O_NOFOLLOW) = 3
fcntl(3, F_GETFD, 0xFFFFFF237648F4C0)           = 0
fstat(3, 0xFFFFFD7FFFDF7960)                    = 0
fstat(3, 0xFFFFFD7FFFDF7890)                    = 0
ioctl(3, TCGETA, 0xFFFFFD7FFFDF7910)            Err#25 ENOTTY
read(3, " #   T h i s   f i l e  ".., 1024)     = 621
read(3, 0x035926D4, 1024)                       = 0
lseek(3, 0, SEEK_CUR)                           = 621
close(3)                                        = 0
open("/usr/lib/locale//en_AU.UTF-8/LC_CTYPE/LCL_DATA", O_RDONLY) = 3
fstat(3, 0xFFFFFD7FFFDF79A0)                    = 0
brk(0x035B5000)                                 = 0
lseek(3, 0, SEEK_CUR)                           = 0
lseek(3, 0, SEEK_SET)                           = 0
fstat(3, 0xFFFFFD7FFFDF7820)                    = 0
brk(0x035C5000)                                 = 0
fstat(3, 0xFFFFFD7FFFDF7750)                    = 0
ioctl(3, TCGETA, 0xFFFFFD7FFFDF77D0)            Err#25 ENOTTY
read(3, " R u n e M a g 1 U T F -".., 4096)     = 4096
read(3, "01E0\0\0 S01\0\0 S01\0\0".., 4096)     = 4096
read(3, "BF04\0\0BF04\0\002E0\0\0".., 4096)     = 4096
read(3, "\r1E\0\002E0\0\00E1E\0\0".., 4096)     = 4096
read(3, "\0\0\080 ! N\0\0 " N\0\0".., 4096)     = 4096
read(3, "9A Q\0\09A Q\0\0\0\0\080".., 4096)     = 4096
read(3, "82 U\0\0\0E0\08083 U\0\0".., 4096)     = 4096
read(3, "\0\0\08003 Z\0\004 Z\0\0".., 4096)     = 4096
read(3, " M _\0\0 M _\0\0\0\0\080".., 4096)     = 4096
read(3, "07 c\0\0\0E0\080\b c\0\0".., 4096)     = 4096
read(3, "\0\0\080 * g\0\0 - g\0\0".., 4096)     = 4096
read(3, "E6 l\0\0E7 l\0\0\0\0\080".., 4096)     = 4096
read(3, "EE r\0\0\0E0\080EF r\0\0".., 4096)     = 4096
read(3, "\0\0\080 m y\0\0 m y\0\0".., 4096)     = 4096
read(3, "B6 ~\0\0B6 ~\0\0\0\0\080".., 4096)     = 4096
read(3, " R83\0\0\0E0\080 S83\0\0".., 4096)     = 4096
read(3, "\0\0\080B28A\0\0B28A\0\0".., 4096)     = 4096
read(3, " J8F\0\0 ^8F\0\0\0\0\080".., 4096)     = 4096
read(3, " \95\0\0\0E0\080 ]95\0\0".., 4096)     = 4096
read(3, "\0\0\0809A9A\0\09A9A\0\0".., 4096)     = 4096
read(3, "\b01\0\0\b01\0\0\t01\0\0".., 4096)     = 4096
read(3, " ~1E\0\07F1E\0\0801E\0\0".., 4096)     = 4096
read(3, "8F01\0\0 [02\0\0 [02\0\0".., 4096)     = 4096
read(3, "8FA6\0\08FA6\0\08EA6\0\0".., 4096)     = 696
brk(0x035F3000)                                 = 0
lseek(3, 0, SEEK_CUR)                           = 94904
close(3)                                        = 0
open("/usr/lib/locale//en_AU.UTF-8/LC_NUMERIC/LCL_DATA", O_RDONLY) = 3
fstat(3, 0xFFFFFD7FFFDF7DF0)                    = 0
read(3, " .\n ,\n 3\n", 6)                      = 6
close(3)                                        = 0
open("/usr/lib/locale//en_AU.UTF-8/LC_TIME/LCL_DATA", O_RDONLY) = 3
fstat(3, 0xFFFFFD7FFFDF7E00)                    = 0
read(3, " J a n\n F e b\n M a r\n".., 306)      = 306
close(3)                                        = 0
open("/usr/lib/locale//en_AU.UTF-8/LC_COLLATE/LCL_DATA", O_RDONLY) = 3
fstat(3, 0xFFFFFD7FFFDF7E60)                    = 0
mmap(0x00000000, 75408, PROT_READ, MAP_PRIVATE, 3, 0) = 0xFFFFFD7FFEFDC000
close(3)                                        = 0
open("/usr/lib/locale//en_AU.UTF-8/LC_MONETARY/LCL_DATA", O_RDONLY) = 3
fstat(3, 0xFFFFFD7FFFDF7DF0)                    = 0
read(3, " A U D  \n $\n .\n ,\n 3".., 44)       = 44
close(3)                                        = 0
open("/usr/lib/locale//en_AU.UTF-8/LC_MESSAGES/LCL_DATA", O_RDONLY) = 3
fstat(3, 0xFFFFFD7FFFDF7E00)                    = 0
read(3, " ^ ( ( [ y Y ] ( [ e E ]".., 45)       = 45
close(3)                                        = 0
brk(0x03607000)                                 = 0
pipe([3,4], 0)                                  = 0
fcntl(3, F_SETFD, 0x00000001)                   = 0
fcntl(4, F_SETFD, 0x00000001)                   = 0
fcntl(3, F_GETFL)                               = 2
fcntl(3, F_SETFL, FWRITE|FNONBLOCK)             = 0
fcntl(4, F_GETFL)                               = 2
fcntl(4, F_SETFL, FWRITE|FNONBLOCK)             = 0
stat(".", 0xFFFFFD7FFFDF74A0)                   = 0
getcwd("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin", 1024) = 0
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin/wkhtmltopdf", 0xFFFFFD7FFFDF7890) = 0
lstat("/home", 0xFFFFFD7FFFDF75C0)              = 0
lstat("/home/admin", 0xFFFFFD7FFFDF75C0)        = 0
lstat("/home/admin/newstuff", 0xFFFFFD7FFFDF75C0) = 0
lstat("/home/admin/newstuff/wkhtmltopdf", 0xFFFFFD7FFFDF75C0) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build", 0xFFFFFD7FFFDF75C0) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local", 0xFFFFFD7FFFDF75C0) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app", 0xFFFFFD7FFFDF75C0) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin", 0xFFFFFD7FFFDF75C0) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin/wkhtmltopdf", 0xFFFFFD7FFFDF75C0) = 0
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin/qt.conf", 0xFFFFFD7FFFDF79D0) Err#2 ENOENT
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/plugins", 0xFFFFFD7FFFDF7DD0) = 0
lstat("/home", 0xFFFFFD7FFFDF7C50)              = 0
lstat("/home/admin", 0xFFFFFD7FFFDF7C50)        = 0
lstat("/home/admin/newstuff", 0xFFFFFD7FFFDF7C50) = 0
lstat("/home/admin/newstuff/wkhtmltopdf", 0xFFFFFD7FFFDF7C50) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build", 0xFFFFFD7FFFDF7C50) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local", 0xFFFFFD7FFFDF7C50) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt", 0xFFFFFD7FFFDF7C50) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt/plugins", 0xFFFFFD7FFFDF7C50) = 0
lstat("/home", 0xFFFFFD7FFFDF7C00)              = 0
lstat("/home/admin", 0xFFFFFD7FFFDF7C00)        = 0
lstat("/home/admin/newstuff", 0xFFFFFD7FFFDF7C00) = 0
lstat("/home/admin/newstuff/wkhtmltopdf", 0xFFFFFD7FFFDF7C00) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build", 0xFFFFFD7FFFDF7C00) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local", 0xFFFFFD7FFFDF7C00) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app", 0xFFFFFD7FFFDF7C00) = 0
lstat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin", 0xFFFFFD7FFFDF7C00) = 0
stat("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin", 0xFFFFFD7FFFDF7D80) = 0
pipe([5,6], 0)                                  = 0
fcntl(5, F_SETFD, 0x00000001)                   = 0
fcntl(6, F_SETFD, 0x00000001)                   = 0
fcntl(5, F_GETFL)                               = 2
fcntl(5, F_SETFL, FWRITE|FNONBLOCK)             = 0
fcntl(6, F_GETFL)                               = 2
fcntl(6, F_SETFL, FWRITE|FNONBLOCK)             = 0
schedctl()                                      = 0xFFFFFD7FFEFD1000
sigaction(SIGCLD, 0x00000000, 0xFFFFFD7FFFDF7F50) = 0
sigaction(SIGCLD, 0xFFFFFD7FFFDF7EB0, 0x034C1E20) = 0
time()                                          = 1403343296
access("/opt/local/etc/fontconfig/fonts.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/fonts.conf", 0xFFFFFD7FFFDF66B0) = 0
open("/opt/local/etc/fontconfig/fonts.conf", O_RDONLY|O_LARGEFILE) = 7
read(7, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(7, " = " x d g " > f o n t s".., 1024)     = 1024
brk(0x03617000)                                 = 0
read(7, " e t c / f o n t c o n f".., 1024)     = 1024
access("/opt/local/etc/fontconfig/conf.d", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d", 0xFFFFFD7FFFDF5220) = 0
open("/opt/local/etc/fontconfig/conf.d", O_RDONLY|O_NDELAY|O_LARGEFILE) = 8
fcntl(8, F_SETFD, 0x00000001)                   = 0
fstat(8, 0xFFFFFD7FFFDF51C0)                    = 0
getdents(8, 0xFFFFFD7FFEFF4000, 8192)           = 760
getdents(8, 0xFFFFFD7FFEFF4000, 8192)           = 0
access("/opt/local/etc/fontconfig/conf.d/10-scale-bitmap-fonts.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/10-scale-bitmap-fonts.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/10-scale-bitmap-fonts.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, "   < d o u b l e > 6 4 <".., 1024)     = 928
read(9, 0x03605850, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/20-unhint-small-vera.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/20-unhint-small-vera.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/20-unhint-small-vera.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, " "   i g n o r e - b l a".., 1024)     = 235
read(9, 0x03605850, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/30-metric-aliases.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/30-metric-aliases.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/30-metric-aliases.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, " b e r a t i o n   S a n".., 1024)     = 1024
read(9, " < / f a m i l y >\n\t  ".., 1024)     = 1024
read(9, " d e f a u l t >\n\t < /".., 1024)     = 1024
read(9, "   s p e c i f i c s   -".., 1024)     = 1024
read(9, " d i n g = " s a m e " >".., 1024)     = 234
read(9, 0x035BAFC4, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/30-pkgsrc-aliases.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/30-pkgsrc-aliases.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/30-pkgsrc-aliases.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 268
time()                                          = 1403343296
read(9, 0x0360555C, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/30-urw-aliases.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/30-urw-aliases.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/30-urw-aliases.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, " u e " >\n\t         < s".., 1024)     = 174
read(9, 0x03605850, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/40-nonlatin.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/40-nonlatin.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/40-nonlatin.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, " f a m i l y >\n\t\t < d".., 1024)     = 1024
read(9, "\n\t < a l i a s >\n\t\t".., 1024)     = 1024
read(9, " m i l y > s a n s - s e".., 1024)     = 1024
read(9, " s e r i f < / f a m i l".., 1024)     = 1024
read(9, " t > < f a m i l y > c u".., 1024)     = 62
read(9, 0x03612410, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/42-luxi-mono.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/42-luxi-mono.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/42-luxi-mono.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 389
time()                                          = 1403343296
read(9, 0x036055D5, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/45-latin.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/45-latin.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/45-latin.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, " < / f a m i l y > < / d".., 1024)     = 1024
read(9, " d e f a u l t >\n\t < /".., 1024)     = 1024
read(9, " > < / d e f a u l t >\n".., 1024)     = 876
read(9, 0x035BB63E, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/49-sansserif.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/49-sansserif.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/49-sansserif.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 545
time()                                          = 1403343296
read(9, 0x03605671, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/50-user.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/50-user.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/50-user.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 673
time()                                          = 1403343296
access("/home/admin/.config/fontconfig/conf.d", R_OK) Err#2 ENOENT
access("/home/admin/.config/fontconfig/conf.d", R_OK) Err#2 ENOENT
access("/home/admin/.config/fontconfig/fonts.conf", R_OK) Err#2 ENOENT
access("/home/admin/.config/fontconfig/fonts.conf", R_OK) Err#2 ENOENT
access("/home/admin/.fonts.conf.d", R_OK)       Err#2 ENOENT
access("/home/admin/.fonts.conf.d", R_OK)       Err#2 ENOENT
access("/home/admin/.fonts.conf", R_OK)         Err#2 ENOENT
access("/home/admin/.fonts.conf", R_OK)         Err#2 ENOENT
read(9, 0x036056F1, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/51-local.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/51-local.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/51-local.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 189
time()                                          = 1403343296
access("/opt/local/etc/fontconfig/local.conf", R_OK) Err#2 ENOENT
access("/opt/local/etc/fontconfig/local.conf", R_OK) Err#2 ENOENT
read(9, 0x0360550D, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/60-latin.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/60-latin.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/60-latin.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
brk(0x03627000)                                 = 0
read(9, " n c o n s o l a t a < /".., 1024)     = 677
read(9, 0x03605850, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/65-fonts-persian.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/65-fonts-persian.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/65-fonts-persian.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, " N T   S H A L L   T H E".., 1024)     = 1024
read(9, " e " >\n\t     < f a m i".., 1024)     = 1024
read(9, " c l a s s   - - >\n\t <".., 1024)     = 1024
read(9, " a r e < / f a m i l y >".., 1024)     = 1024
read(9, " h a v e   - - >\n\n\t <".., 1024)     = 1024
read(9, " b l a n k s = " t r u e".., 1024)     = 1024
read(9, " / d o u b l e >\n\t\t\t".., 1024)     = 1024
read(9, " < f a m i l y > K o o d".., 1024)     = 1024
read(9, " >\n\t\t < t e s t   n a".., 1024)     = 902
read(9, 0x03619950, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/65-nonlatin.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/65-nonlatin.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/65-nonlatin.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, " / f a m i l y >   < ! -".., 1024)     = 1024
read(9, " m i l y > B a e k m u k".., 1024)     = 1024
read(9, " f a m i l y > B P G   U".., 1024)     = 1024
read(9, " - - >\n\t\t\t < ! - -  ".., 1024)     = 1024
read(9, " U n D o t u m < / f a m".., 1024)     = 1024
read(9, " i l y >\n\t\t\t < f a m".., 1024)     = 1024
read(9, "\t < f a m i l y > H a s".., 1024)     = 791
read(9, 0x03612727, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/69-unifont.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/69-unifont.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/69-unifont.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 672
time()                                          = 1403343296
read(9, 0x036056F0, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/80-delicious.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/80-delicious.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/80-delicious.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 422
time()                                          = 1403343296
read(9, 0x036055F6, 1024)                       = 0
close(9)                                        = 0
access("/opt/local/etc/fontconfig/conf.d/90-synthetic.conf", R_OK) = 0
stat("/opt/local/etc/fontconfig/conf.d/90-synthetic.conf", 0xFFFFFD7FFFDF4000) = 0
open("/opt/local/etc/fontconfig/conf.d/90-synthetic.conf", O_RDONLY|O_LARGEFILE) = 9
read(9, " < ? x m l   v e r s i o".., 1024)     = 1024
time()                                          = 1403343296
read(9, "\n\n\t < m a t c h   t a".., 1024)     = 667
read(9, 0x03605850, 1024)                       = 0
close(9)                                        = 0
close(8)                                        = 0
access("/opt/local/etc/fontconfig/conf.d", R_OK) = 0
read(7, " G U L   J U N G S E O N".., 1024)     = 1024
read(7, " A R A G R A P H   S E P".., 1024)     = 1024
read(7, " >\n\t\t\t < i n t > 0 x".., 1024)     = 499
read(7, 0x035BC29C, 1024)                       = 0
close(7)                                        = 0
stat("/opt/local/lib/X11/fonts", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/lib/X11/fonts", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//7a15f384a70a75909d5906142e8550bf-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//7a15f384a70a75909d5906142e8550bf-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
time()                                          = 1403343296
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
read(7, "04FC02FC04\0\0\090\0\0\0".., 144)      = 144
close(7)                                        = 0
stat("/opt/local/share/fonts/X11", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//588c1531609d5de4b5699f0b48f9a4dc-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//588c1531609d5de4b5699f0b48f9a4dc-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
read(7, "04FC02FC04\0\0\0A801\0\0".., 424)      = 424
close(7)                                        = 0
stat("/opt/local/share/fonts/urw", 0xFFFFFD7FFFDF7830) Err#2 ENOENT
stat("/opt/local/share/fonts/urw", 0xFFFFFD7FFFDF7870) Err#2 ENOENT
stat("/opt/local/share/ghostscript/fonts", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/ghostscript/fonts", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//09db6eb1b3831a9a3302245e268bd4d4-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
mmap(0x00000000, 19216, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEFC0000
fstat(7, 0xFFFFFD7FFFDF7640)                    = 0
close(7)                                        = 0
stat("/home/admin/.local/share/fonts", 0xFFFFFD7FFFDF7830) Err#2 ENOENT
stat("/home/admin/.local/share/fonts", 0xFFFFFD7FFFDF7870) Err#2 ENOENT
stat("/home/admin/.fonts", 0xFFFFFD7FFFDF7830)  Err#2 ENOENT
stat("/home/admin/.fonts", 0xFFFFFD7FFFDF7870)  Err#2 ENOENT
stat("/opt/local/lib/X11/fonts/TTF", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/lib/X11/fonts/TTF", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//3f973d4dcb57f1aa00daaaed2ac5521b-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//3f973d4dcb57f1aa00daaaed2ac5521b-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
mmap(0x00000000, 14296, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEFB0000
fstat(7, 0xFFFFFD7FFFDF7640)                    = 0
close(7)                                        = 0
stat("/opt/local/share/fonts/X11/100dpi", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/100dpi", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//3ac367c7b4bf29ed379acaaecfe92121-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//3ac367c7b4bf29ed379acaaecfe92121-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
mmap(0x00000000, 473432, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEE6B000
fstat(7, 0xFFFFFD7FFFDF7640)                    = 0
close(7)                                        = 0
brk(0x03637000)                                 = 0
stat("/opt/local/share/fonts/X11/75dpi", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/75dpi", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//3ab661b31af47123787ae7ec50758ea0-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//3ab661b31af47123787ae7ec50758ea0-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
mmap(0x00000000, 472560, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEDF6000
fstat(7, 0xFFFFFD7FFFDF7640)                    = 0
close(7)                                        = 0
stat("/opt/local/share/fonts/X11/TTF", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/TTF", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//7a61addecbef3a26028cc26203e01818-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//7a61addecbef3a26028cc26203e01818-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
mmap(0x00000000, 16976, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEFA0000
fstat(7, 0xFFFFFD7FFFDF7640)                    = 0
close(7)                                        = 0
stat("/opt/local/share/fonts/X11/Type1", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/Type1", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//23c4591fb1e28ac577a71e2d79a72788-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//23c4591fb1e28ac577a71e2d79a72788-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
mmap(0x00000000, 31968, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEF90000
fstat(7, 0xFFFFFD7FFFDF7640)                    = 0
close(7)                                        = 0
stat("/opt/local/share/fonts/X11/cyrillic", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/cyrillic", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//d585b5def665fcdfb368c93d779ef9d9-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//d585b5def665fcdfb368c93d779ef9d9-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
read(7, "04FC02FC04\0\0\0 p\0\0\0".., 112)      = 112
close(7)                                        = 0
stat("/opt/local/share/fonts/X11/encodings", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/encodings", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//89c1f956604093de23fd220a3417a603-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//89c1f956604093de23fd220a3417a603-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
read(7, "04FC02FC04\0\0\0A8\0\0\0".., 168)      = 168
close(7)                                        = 0
stat("/opt/local/share/fonts/X11/misc", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/misc", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//8daef1189dadba4f7786af091583ac36-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//8daef1189dadba4f7786af091583ac36-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
mmap(0x00000000, 93872, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEF78000
fstat(7, 0xFFFFFD7FFFDF7640)                    = 0
close(7)                                        = 0
stat("/opt/local/share/fonts/X11/encodings/large", 0xFFFFFD7FFFDF7830) = 0
open("/opt/local/share/fonts/X11/encodings/large", O_RDONLY|O_LARGEFILE) = 7
fstatvfs(7, 0xFFFFFD7FFFDF7640)                 = 0
close(7)                                        = 0
open("/var/cache/fontconfig//5af544f59fb8b0c2b645abc88891fd31-le64.cache-4", O_RDONLY|O_LARGEFILE) Err#2 ENOENT
open("/home/admin/.cache/fontconfig//5af544f59fb8b0c2b645abc88891fd31-le64.cache-4", O_RDONLY|O_LARGEFILE) = 7
fstat(7, 0xFFFFFD7FFFDF77B0)                    = 0
fstatvfs(7, 0xFFFFFD7FFFDF7620)                 = 0
read(7, "04FC02FC04\0\0\0 x\0\0\0".., 120)      = 120
close(7)                                        = 0
mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, 4294967295, 0) = 0xFFFFFD7FFEDE0000
lstat("/home/admin/.config/Trolltech.conf", 0xFFFFFD7FFFDF7450) Err#2 ENOENT
open("/home/admin/.config/Trolltech.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) Err#2 ENOENT
stat("/home/admin/.config/Trolltech.conf", 0xFFFFFD7FFFDF74D0) Err#2 ENOENT
time()                                          = 1403343296
open("/var/run/tzsync", O_RDONLY)               = 7
mmap(0x00000000, 4, PROT_READ, MAP_SHARED, 7, 0) = 0xFFFFFD7FFEF70000
close(7)                                        = 0
open("/usr/share/lib/zoneinfo/UTC", O_RDONLY)   = 7
fstat(7, 0xFFFFFD7FFFDF7330)                    = 0
read(7, " T Z i f\0\0\0\0\0\0\0\0".., 56)       = 56
close(7)                                        = 0
lstat("/etc/xdg/Trolltech.conf", 0xFFFFFD7FFFDF7450) Err#2 ENOENT
open("/etc/xdg/Trolltech.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) Err#2 ENOENT
stat("/etc/xdg/Trolltech.conf", 0xFFFFFD7FFFDF74D0) Err#2 ENOENT
time()                                          = 1403343296
stat("test.html", 0xFFFFFD7FFFDF7B70)           = 0
stat(".", 0xFFFFFD7FFFDF7600)                   = 0
getcwd("/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/app/bin", 1024) = 0
brk(0x03647000)                                 = 0
mmap(0x00000000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFEDD0000
mmap(0x00000000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFEDC0000
priocntlsys(1, 0xFFFFFD7FFFDF7870, 3, 0xFFFFFD7FFFDF79C0, 0) = 14201
priocntlsys(1, 0xFFFFFD7FFFDF77D0, 1, 0xFFFFFD7FFFDF78F0, 0) = 4
priocntlsys(1, 0xFFFFFD7FFFDF7780, 0, 0xFFFFFD7FFF1B5F34, 0) = 4
priocntlsys(1, 0xFFFFFD7FFFDF7780, 5, 0xFFFFFD7FFFDF78A0, 0) = 0
priocntlsys(1, 0xFFFFFD7FFFDF78B0, 11, 0xFFFFFD7FFFDF79F0, 0) = 0
mmap(0x00000000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFECEF000
mmap(0x00000000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFECD0000
sigaction(SIGCANCEL, 0xFFFFFD7FFFDF7590, 0x00000000) = 0
mmap(0x00000000, 2088960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFE851000
mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, 4294967295, 0) = 0xFFFFFD7FFE840000
uucopy(0xFFFFFD7FFFDF7550, 0xFFFFFD7FFEA4EFE8, 24) = 0
lwp_create(0xFFFFFD7FFFDF7660, LWP_SUSPENDED, 0xFFFFFD7FFFDF79CC) = 2
/2:     lwp_create()    (returning as new lwp ...)      = 0
/1:     lwp_continue(2)                                 = 0
/2:     setustack(0xFFFFFD7FFE8402E8)
/1:     mmap(0x00000000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFECC0000
/2:     schedctl()                                      = 0xFFFFFD7FFEFD1010
/1:     mmap(0x00000000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFE73F000
/1:         Incurred fault #6, FLTBOUNDS  %pc = 0x022740ED
/1:           siginfo: SIGSEGV SEGV_MAPERR addr=0xFFFFFD807EDBFEB8
/1:         Received signal #11, SIGSEGV [default]
/1:           siginfo: SIGSEGV SEGV_MAPERR addr=0xFFFFFD807EDBFEB8

Configure arguments for Qt were:

./configure -opensource -confirm-license -fast -static -graphicssystem raster -webkit -exceptions -xmlpatterns -no-accessibility -no-stl -no-qt3support -no-phonon -no-phonon-backend -no-opengl -no-declarative -no-scripttools -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-mmx -no-3dnow -no-sse -no-sse2 -no-multimedia -nomake demos -nomake docs -nomake tests -nomake translations -nomake examples -xrender -largefile -iconv -openssl -rpath -no-dbus -no-nis -no-cups -no-pch -no-gtkstyle -no-nas-sound -no-sm -no-xshape -no-xcursor -no-xfixes -no-xrandr -no-mitshm -no-xinput -no-xkb -no-glib -D ENABLE_VIDEO=0 -no-openvg -no-xsync -no-audio-backend -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon -qt-zlib -qt-libpng -qt-libjpeg -platform solaris-g++-64 -I/opt/local/include -I/usr/include -I/opt/local/include/libdrm -I/opt/local/include/freetype2 -L/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 -L/opt/local/gcc47/lib -L/opt/local/lib -L/usr/lib/amd64 --prefix=/home/admin/newstuff/wkhtmltopdf/static-build/posix-local/qt
@davefinster

Actually, this one has been resolved. I was able to resolve the seg fault by using the final hunk in the patch here:
File: src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h
http://tech.hq.norma.perm.ru/files/phantomjs.solaris-x64.diff

--- phantomjs-1.9.0/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h.orig    2013-05-01 20:47:28.200913921 +0400
+++ phantomjs-1.9.0/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h 2013-05-01 20:24:52.361670716 +0400
@@ -445,6 +445,7 @@
 /* OS(SOLARIS) - Solaris */
 #if defined(sun) || defined(__sun)
 #define WTF_OS_SOLARIS 1
+#define USE_SYSTEM_MALLOC 1
 #endif

Applying this I've been able to get a build fully working on SmartOS 64-bit. The build process isn't hands off as qmake seems to generate some erroneous files, but the binary works.

@ashkulz ashkulz changed the title from Segmentation Fault on SmartOS to get build on SmartOS working Jun 22, 2014
@ashkulz ashkulz changed the title from get build on SmartOS working to get build on Joyent SmartOS working Jun 22, 2014
@ashkulz ashkulz changed the title from get build on Joyent SmartOS working to get build on SmartOS working Jun 22, 2014
@ashkulz
Member
ashkulz commented Jun 22, 2014

@davefinster: would it be possible for you to document the complete instructions to get the build working? I'd be happy to include any patches and/or documentation changes.

@davefinster

Happy to - just documenting them now on a clean zone so I capture every one of my steps.

The build at the moment does fail if left on its own. On the first fail you have to patch one of the Makefiles and on the second time you have to manually edit a .la file. After that its smooth.

I'll spawn a thread on the mailing list and drop an entry here for reference.

@ashkulz
Member
ashkulz commented Jun 22, 2014

Just post the complete makefile and what changes you have to do -- it can probably be fixed in the qmake scripts beforehand. If possible, I'll try to see if the changes are generic enough to be pushed upstream.

@davefinster

Alright, complete steps from zone creation to having a working wkhtmltopdf can be found here:

https://gist.github.com/davefinster/4e89acb08f5610e007b9

Although its shown in that gist, the patches can be downloaded from here:
http://pkgsrc.seymourwhyte.com.au/patches.tar.gz

I realise that it is very much a manual process. I don't know enough about qmake and how it builds its Makefiles to make the adjustments prior to Makefile generation, hence the build failures.

FYI, admin is a default user on a SmartOS zone. Root exists, but its use is discouraged in favour of sudo'ing from admin.

@davefinster

There does appear to be something off about the resulting binary. Although it is fully functional on the original zone, moving the files inside the 'bin' folder onto another zone, even with the exact same packages installed results in a Seg Fault.

[admin@wkbuild642014q1test ~/wkhtmltopdf/static-build/posix-local/app/bin]$ ./wkhtmltopdf http://www.google.com google.pdf
Loading pages (1/6)
Segmentation Fault (core dumped)                             ] 10%

That is further than the original Seg Fault, so they aren't related.

I was able to track down the cause of this one. Turns out that the memory usage is rather aggressive. I get this from prstat:

google.com

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
56092 admin    1099M   38M cpu15   59    0   0:00:00 0.0% wkhtmltopdf/4

news.com.au

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 56168 admin    1353M  225M cpu9     6    0   0:00:03 0.7% wkhtmltopdf/8

The zone needs to have at least 1.5GB of swap space (set in the 'max_swap' attribute in the hypervisor)

When compared with the wkhtmltopdf 0.12.0 version that I managed to build ages ago (before the move to Github even) I get this:

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 34953 admin     332M  246M cpu6    46    0   0:00:07 1.2% wkhtmltopdf/10

Its worth noting that that version is running on a 32-bit instance and I believe had the javascript-jit disabled. I didn't disable it explicitly in my latest build on 64-bit.

@davefinster

Fixed the memory consumption by adding -no-javascript-jit to the original configure command

news.com.au:

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 18776 admin     333M  250M cpu9     2    0   0:00:04 0.7% wkhtmltopdf/8

Have updated the gist with the updated configure arguments

@davefinster

And finally, when you copy the static build to a 'base64' zone (which is a bare bones, minimalist installation), you will need:

sudo pkgin in fontconfig libXrender urw-fonts

plus any additional fonts you might want to support.

@ashkulz ashkulz added this to the 0.12.2 milestone Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment