php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1201 PDF module segfaults the server
Submitted: 1999-03-04 13:07 UTC Modified: 1999-11-19 16:24 UTC
From: garman at earthling dot net Assigned:
Status: Closed Package: Other
PHP Version: 3.0.7 OS: FreeBSD 2.2.8-RELEASE
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: garman at earthling dot net
New email:
PHP Version: OS:

 

 [1999-03-04 13:07 UTC] garman at earthling dot net
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-15 10:01 UTC] joey at cvs dot php dot net
Is this bug still valid?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC