PHP 4.0 Bug #6176 Updated: apache+php+pdflib crash with pdf_end_page($pdf)

From: Date: Mon, 04 Sep 2000 14:53:55 +0000
Subject: PHP 4.0 Bug #6176 Updated: apache+php+pdflib crash with pdf_end_page($pdf)
Groups: php.dev 
Request: Send a blank email to php-dev+get-31932@lists.php.net to get a copy of this message
ID: 6176 Updated by: derick Reported By: panu.kalliokoski@giro.fi Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: User reports: Unfortunately, yes. I've also been unsuccessful in solving the causes of the crash here. It seems that our project has to abandon pdflib for the time being... do you know why pdflib upkeepers do not ship php bindings themselves? Panu Previous Comments: [2000-09-02 18:06:11] sniper@php.net There have been some modifications in CVS concerning pdflib. Please try it and report back if problem still exists. --Jani --------------------------------------------------------------------------- [2000-08-23 09:27:20] sniper@php.net What version of pdflib do you use? --Jani --------------------------------------------------------------------------- [2000-08-15 12:44:49] panu.kalliokoski@giro.fi The bug is quite hard to reproduce. We have a script that crashes every time, which uses database, session variables and other such stuff, so it is of no use to you. Then we built another script which issues the same pdflib calls, and this script crashes _part of the time_. Thus I suppose the crash is somehow dependent on php's internal state; how, I don't know. And the cgi version of php does not crash on either of the scripts. Here is the backtrace: (note that the innermost frame has been many different things on distinct runs, so that would suggest the execution jumps to a random location) Program received signal SIGSEGV, Segmentation fault. 0x400f0883 in fwrite () from /lib/libc.so.6 (gdb) bt #0 0x400f0883 in fwrite () from /lib/libc.so.6 #1 0x4032b9c6 in PDF_setrgbcolor_fill (p=0x817214c, red=4.56706555e-34, green=9.8511282e-43, blue=2.8047595) at p_color.c:135 #2 0x40338161 in pdf_open_TIFF_data (p=0x817214c, imageslot=1077139815, filename=0x5 <Address 0x5 out of bounds>, stringparam=0x4032c93a "[201AnU

« previous php.dev (#31932) next »