php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16605 Apache Seg Fault when accessing image fields
Submitted: 2002-04-14 18:20 UTC Modified: 2002-10-19 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: dev at dystopium dot com Assigned:
Status: No Feedback Package: Sybase-ct (ctlib) related
PHP Version: 4.1.2 OS: FreeBSD 4.4 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: dev at dystopium dot com
New email:
PHP Version: OS:

 

 [2002-04-14 18:20 UTC] dev at dystopium dot com
When using FreeDTS to connect to SQL Server 2000, 'image' fields cause apache to seg fault.

From PHP I can insert the binary data, however.

After consulting with the freedts developers, I have tried using the set textsize command, which has not fixed the issue.  Other tools using the same libaries can connect and select / retrieve this field, so the issue appers to be with PHP.

PHP Compile line:

./configure  --with-apache=../apache_1.3.24 --with-pdflib=/usr/local --with-xml --disable-debug --enable-track-vars --enable-shared=pdflib --with-zlib --enable-ersioning --with-sybase=/usr/local


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-15 12:42 UTC] sander@php.net
To properly diagnose this bug, 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".


 [2002-04-15 17:23 UTC] dev at dystopium dot com
Apache Error log shows:

Unknown(0) : Warning - String is not zero-terminated (0x47494638396110001000b30900ffffff269a2920882208760900ff0000d70000740000630000170000000000000000000000000000000000000000000021f904010000090) (source: zend_execute_API.c:274)
[Mon Apr 15 12:57:21 2002]  Script:  '/home/devel/public_html/viewimage.php'
---------------------------------------
zend_execute_API.c(274) : Block 0x0830C500 status:
zend_variables.c(44) : Actual location (location was relayed)
Beginning:      OK (allocated on php_sybase_db.c:673, 139 bytes)
      End:      Overflown (magic=0x30633200 instead of 0x2A8FCC84)
                At least 4 bytes overflown
---------------------------------------

GDB Backtrace:


Program received signal SIGSEGV, Segmentation fault.
0x282552da in tds_convert_binary () from /usr/local/lib/libsybdb.so.1


PHP Config:

 './configure' '--with-apache=../apache_1.3.24' '--with-pdflib=/usr/local' '--with-xml' '--enable-debug' '--enable-track-vars' '--enable-shared=pdflib' '--with-zlib' '--enable-versioning' '--with-sybase=/usr/local'
 [2002-10-03 22:45 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

If the problem still occures, please include a backtrace in your report.
 [2002-10-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC