Bug #1201: PDF module segfaults the server

From: Date: Thu, 04 Mar 1999 18:07:58 +0000
Subject: Bug #1201: PDF module segfaults the server
Groups: php.dev 
Request: Send a blank email to php-dev+get-4474@lists.php.net to get a copy of this message
From: garman@earthling.net Operating system: FreeBSD 2.2.8-RELEASE PHP version: 3.0.7 PHP Bug Type: Other Bug description: PDF module segfaults the server When using a simple php script to create a pdf file, such as the ones posted on the mailing lists, the server segfaults in the pdf_get_info() function. <? $u = uniqid ("hi"); print "$u\n"; flush(); $a = fopen ("/tmp/$u.pdf", "w"); if (!$a) { print "couldn't open file!"; } else { print "hiasdifjaosidfj"; } flush(); $info = pdf_get_info(); print "two"; flush(); ..... the second print statement ("two") never gets printed. When attached to the process in gdb, the server segfaults at the following line: info->error_handler = pdf_default_error_handler; (line 114 p_basic.c) I couldn't really get any further with gdb, I don't understand why it would be segfaulting there. The sample C applications that come with pdflib work fine, and i've removed the appropriate line from pdf_close as outlined in the php documentation. The web server is apache 1.3.4 with mod_ssl-2.2.3-1.3.4. The configure line for php is: ./configure --with-apache=../apache_1.3.4 --with-gd=/usr/local --with-mysql --with-imap=/usr/local/imap --with-pdflib=/usr/local --enable-debug=no thanks, jason -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4474) next »