#21651 [Fbk-Opn]: pdf_open_memory_image Segmentation Fault (11)

2003-01-16 Thread erweb
 ID:   21651
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: PDF related
 Operating System: Linux RedHat
 PHP Version:  4.3.0
 New Comment:

yes the url is:
http://areaclienti.mine.nu/2820.png

try it!
for the GDB trace i am workin on it... 
actually i'm not finding the core file...


Previous Comments:


[2003-01-15 14:53:49] [EMAIL PROTECTED]

And please,please, provide that GDB backtrace too.




[2003-01-15 12:20:04] [EMAIL PROTECTED]

Could you provide the image (url) that your are using?



[2003-01-15 05:28:01] [EMAIL PROTECTED]

Here it is:
'./configure' '--with-apxs' '--with-gd'
'--with-freetype-dir=/usr/local/lib/' '--with-pgsql'
'--enable-gd-native-ttf' '--with-jpeg-dir=/usr/lib/'
'--with-png-dir=/usr/lib/' '--with-zlib-dir=/usr/lib/' '--with-mysql'
'--with-config-file-path=/etc/' '--with-pdflib=/usr/local/'
'--enable-ftp' 

Then:
as i have done a few debug (homemade debug) sessions i noticed that the
line where output stopped was 
$img = pdf_open_memory_image($pdf_doc, $tmp_image);

This is why i stopped the code there...
For the code snippet: i can't really provide it... this is part of a
real big class!

TKS
Simone



[2003-01-15 03:52:51] [EMAIL PROTECTED]

And provide a FULL and SHORT example script which can be used to
reproduce this too. And your configure line for PHP would be nice to
know also.




[2003-01-15 03:49:11] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to Open. Thank you for helping
us make PHP better.





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21651

-- 
Edit this bug report at http://bugs.php.net/?id=21651edit=1




#21651 [NEW]: pdf_open_memory_image Segmentation Fault (11)

2003-01-15 Thread erweb
From: [EMAIL PROTECTED]
Operating system: Linux RedHat
PHP version:  4.3.0
PHP Bug Type: PDF related
Bug description:  pdf_open_memory_image Segmentation Fault (11)

Well... as i work with PDF the following code causes 
a segmentation fault:

$tmp_image =
ImageCreate($size[0]*$this-actual_img_dpi/$this-default_img_dpi,
$size[1]*$this-actual_img_dpi/$this-default_img_dpi);
imagecopyresampled ($tmp_image, $im, 0, 0, 0,
0,$size[0]*$this-actual_img_dpi/$this-default_img_dpi,
$size[1]*$this-actual_img_dpi/$this-default_img_dpi, $size[0],
$size[1]);

$img = pdf_open_memory_image($pdf_doc, $tmp_image);

-- 
Edit bug report at http://bugs.php.net/?id=21651edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21651r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21651r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21651r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21651r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21651r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21651r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21651r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21651r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21651r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21651r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21651r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21651r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21651r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21651r=gnused




#21651 [Fbk-Opn]: pdf_open_memory_image Segmentation Fault (11)

2003-01-15 Thread erweb
 ID:   21651
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: PDF related
 Operating System: Linux RedHat
 PHP Version:  4.3.0
 New Comment:

Here it is:
'./configure' '--with-apxs' '--with-gd'
'--with-freetype-dir=/usr/local/lib/' '--with-pgsql'
'--enable-gd-native-ttf' '--with-jpeg-dir=/usr/lib/'
'--with-png-dir=/usr/lib/' '--with-zlib-dir=/usr/lib/' '--with-mysql'
'--with-config-file-path=/etc/' '--with-pdflib=/usr/local/'
'--enable-ftp' 

Then:
as i have done a few debug (homemade debug) sessions i noticed that the
line where output stopped was 
$img = pdf_open_memory_image($pdf_doc, $tmp_image);

This is why i stopped the code there...
For the code snippet: i can't really provide it... this is part of a
real big class!

TKS
Simone


Previous Comments:


[2003-01-15 03:52:51] [EMAIL PROTECTED]

And provide a FULL and SHORT example script which can be used to
reproduce this too. And your configure line for PHP would be nice to
know also.




[2003-01-15 03:49:11] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to Open. Thank you for helping
us make PHP better.





[2003-01-15 02:51:17] [EMAIL PROTECTED]

Well... as i work with PDF the following code causes 
a segmentation fault:

$tmp_image =
ImageCreate($size[0]*$this-actual_img_dpi/$this-default_img_dpi,
$size[1]*$this-actual_img_dpi/$this-default_img_dpi);
imagecopyresampled ($tmp_image, $im, 0, 0, 0,
0,$size[0]*$this-actual_img_dpi/$this-default_img_dpi,
$size[1]*$this-actual_img_dpi/$this-default_img_dpi, $size[0],
$size[1]);

$img = pdf_open_memory_image($pdf_doc, $tmp_image);





-- 
Edit this bug report at http://bugs.php.net/?id=21651edit=1