Re: PHP 4.0 Bug #6176 Updated: apache+php+pdflib crash with pdf_end_page($pdf)
| From: | Uwe Steinmann | Date: | Tue, 05 Sep 2000 06:57:33 +0000 |
| Subject: | Re: PHP 4.0 Bug #6176 Updated: apache+php+pdflib crash with pdf_end_page($pdf) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-32091@lists.php.net to get a copy of this message | ||
On Mon, Sep 04, 2000 at 02:53:55PM -0000, Bug Database wrote:
> 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?
Because I started the pdflib support in php at a time when the maintainer
of pdflib didn't think of php at all. There is a good chance that sooner or
later php will be an official supported plattform of pdflib.
>
> 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
The color values seem to be nonsens.
> #2 0x40338161 in pdf_open_TIFF_data (p=0x817214c, imageslot=1077139815,
> filename=0x5 <Address 0x5 out of bounds>,
> stringparam=0x4032c93a "[201AnU
Why is the pointer to the filename out of bounds?
Uwe
--
Uwe.Steinmann@fernuni-hagen.de
Tel: +2331 987 4528 Fax: +2331 987 375