Forum How do I...?

*** Mercury runtime: caught segmentation violation ***

Anonymous
having installed fontconfig and microsoft fonts....I get the following error

*** Mercury runtime: caught segmentation violation ***

any ideas ?

thx in advance, Jim Fuller
mikeday
Hi Jim,

Can you please tell us which Linux distribution you are running on?

Thanks,

Michael
bananaaus
Hi Mike,

I'm having the same problem with my solaris installation of version 6 rev.7 running Prince through the command line.

$ /usr/local/bin/prince --verbose --baseurl='http://gc-course-info-acc.detir.qld.gov.au/' --log='/opt/coolstack/apache2/vhosts/gc-course-info-acc.detir.qld.gov.au/prince_log.txt' "/opt/coolstack/apache2/vhosts/gc-course-info-acc.detir.qld.gov.au/html/HLT51607_3331.pdf.html" "/opt/coolstack/apache2/vhosts/gc-course-info-acc.detir.qld.gov.au/pdf/HLT51607_3331.pdf"

prince: /opt/coolstack/apache2/vhosts/gc-course-info-acc.detir.qld.gov.au/prince_log.txt: error: can't append to file: Permission denied
prince: loading HTML input: /opt/coolstack/apache2/vhosts/gc-course-info-acc.detir.qld.gov.au/html/HLT51607_3331.pdf.html
prince: loading style sheet: http://gc-course-info-acc.detir.qld.gov.au/css/pdf.css
prince: loading image: http://gc-course-info-acc.detir.qld.gov.au/img/pdf_only/header.jpg
prince: loading image: http://gc-course-info-acc.detir.qld.gov.au/img/pdf_only/footer.jpg
prince: loading image: http://gc-course-info-acc.detir.qld.gov.au/img/pdf_only/GCIT_details2.jpg
prince: used font: Times New Roman, Bold
prince: used font: Times New Roman, Regular

*** Mercury runtime: caught segmentation violation ***
cause: address not mapped to object
PC at signal: -20243120 (fecb1d50)
address involved: 0
This may have been caused by a stack overflow, due to unbounded recursion.
exiting from signal handler


Running Prince through PHP is fine though...
mikeday
Okay, this is bad. To fix the problem, we need to narrow down what is causing it. Here are some things we can try:

- re-run the command without the --log argument, then if it still crashes with a segfault we know that logging is not to blame.

- re-run the command with the --no-network argument, then if it still crashes we know that HTTP support for images is not to blame.

- make a copy of the input document and simplify it, commenting out references to style sheets and so on, to make it as simple as possible while still triggering the problem.

Ideally, you can then email me a document so that we can reproduce this problem on our own Solaris installation, which will make it much easier for us to track down and fix.
bananaaus
Thanks for the swift reply.

I've re-run the command without --log argument and it still gives me segfault error.

I've also re-run the command with --no-network argument. Segfault error (below).

$ /usr/local/bin/prince --no-network --baseurl='http://gc-course-info-acc.detir.qld.gov.au/' "/opt/coolstack/apache2/vhosts/gc-course-info-acc.detir.qld.gov.au/html/HLT51607_3331.pdf.html" "/opt/coolstack/apache2/vhosts/gc-course-info-acc.detir.qld.gov.au/pdf/HLT51607_3331.pdf"
prince: http://gc-course-info-acc.detir.qld.gov.au/css/pdf.css: warning: not loading HTTP resource due to --no-network flag
prince: http://gc-course-info-acc.detir.qld.gov.au/img/pdf_only/header.jpg: warning: not loading HTTP resource due to --no-network flag
prince: http://gc-course-info-acc.detir.qld.gov.au/img/pdf_only/footer.jpg: warning: not loading HTTP resource due to --no-network flag
prince: http://gc-course-info-acc.detir.qld.gov.au/img/pdf_only/GCIT_details2.jpg: warning: not loading HTTP resource due to --no-network flag

*** Mercury runtime: caught segmentation violation ***
cause: address not mapped to object
PC at signal: -20243120 (fecb1d50)
address involved: 0
This may have been caused by a stack overflow, due to unbounded recursion.
exiting from signal handler


I've also deleted the reference to the stylesheet but the same error.

I've sent you the file.

Thanks for your help.