Debian Bug report logs - #594613
php5-odbc: segmentation fault with odbc_result which returns a null on 64bit result because of the patch #565387

version graph

Package: php5-odbc; Maintainer for php5-odbc is (unknown);

Reported by: "Mayrand, Patrick" <Patrick.Mayrand@fadq.qc.ca>

Date: Fri, 27 Aug 2010 18:00:01 UTC

Severity: important

Found in version php5/5.2.6.dfsg.1-1+lenny9

Fixed in version 5.3.3-7

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#594613; Package php5-odbc. (Fri, 27 Aug 2010 18:00:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Mayrand, Patrick" <Patrick.Mayrand@fadq.qc.ca>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 27 Aug 2010 18:00:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Mayrand, Patrick" <Patrick.Mayrand@fadq.qc.ca>
To: "'submit@bugs.debian.org'" <submit@bugs.debian.org>
Subject: php5-odbc: segmentation fault with odbc_result which returns a null on 64bit result because of the patch #565387
Date: Fri, 27 Aug 2010 13:48:40 -0400
[Message part 1 (text/plain, inline)]
Subject: php5-odbc: segmentation fault with odbc_result which returns a null on 64bit result because of the patch #565387
Package: php5-odbc
Version: 5.2.6.dfsg.1-1+lenny9
Severity: important

Hi,

With this code:

<?
$reqSQL="select a.clinum, b.adrnum from dev.ga01p a left join dev.ga02p b on
a.clinum = b.clinum and b.adrnum = 4 where a.clinum = 7229";


$IDconnect=odbc_connect("test", "test", "test");

$test = odbc_exec($IDconnect,$reqSQL);
                 if ($test){
              echo "Query Executed";
                }else {
              echo "Query failed " .odbc_error();
            }

while(odbc_fetch_row($test)){
        $returnvalue = odbc_result($test, 2);
        echo 'test' . $returnvalue;
}
?>


odbc_result($test, 2) return a null. The script make a segmentation fault in apache and with php5 in command line. The script stop on the odbc_result.

If i get the source of php5 (apt-get source php5), i remove the patch odbc-64bits-len.patch and i build the package, i have no error and the script return my$

regards

-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_CA, LC_CTYPE=fr_CA (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-odbc depends on:
ii  libapache2-mod-php 5.2.6.dfsg.1-1+lenny9 server-side, HTML-embedded scripti
ii  libc6              2.7-18lenny4          GNU C Library: Shared libraries
ii  php5-cli [phpapi-2 5.2.6.dfsg.1-1+lenny9 command-line interpreter for the p
ii  php5-common        5.2.6.dfsg.1-1+lenny9 Common files for packages built fr
ii  unixodbc           2.2.11-16             ODBC tools libraries

php5-odbc recommends no packages.

php5-odbc suggests no packages.

[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#594613; Package php5-odbc. (Tue, 16 Nov 2010 16:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Gohr <gohr@cosmocode.de>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 16 Nov 2010 16:27:03 GMT) (full text, mbox, link).


Message #10 received at 594613@bugs.debian.org (full text, mbox, reply):

From: Andreas Gohr <gohr@cosmocode.de>
To: 594613@bugs.debian.org
Subject: Re: php5-odbc: segmentation fault with odbc_result which returns a null on 64bit result because of the patch #565387
Date: Tue, 16 Nov 2010 17:11:21 +0100
I can confirm this bug and the solution of recompiling without
odbc-64bits-len.patch.




Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Wed, 27 Apr 2011 08:34:48 GMT) (full text, mbox, link).


Notification sent to "Mayrand, Patrick" <Patrick.Mayrand@fadq.qc.ca>:
Bug acknowledged by developer. (Wed, 27 Apr 2011 08:34:49 GMT) (full text, mbox, link).


Message #15 received at 594613-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 465081-done@bugs.debian.org, 537794-done@bugs.debian.org, 553048-done@bugs.debian.org, 574610-done@bugs.debian.org, 584885-done@bugs.debian.org, 584957-done@bugs.debian.org, 594613-done@bugs.debian.org, 493045-done@bugs.debian.org, 549492-done@bugs.debian.org, 450581-done@bugs.debian.org, 502174-done@bugs.debian.org, 543177-done@bugs.debian.org, 547134-done@bugs.debian.org, 552089-done@bugs.debian.org, 556523-done@bugs.debian.org, 559273-done@bugs.debian.org, 576147-done@bugs.debian.org, 578754-done@bugs.debian.org, 601602-done@bugs.debian.org, 609355-done@bugs.debian.org, 419649-done@bugs.debian.org, 442063-done@bugs.debian.org, 500567-done@bugs.debian.org, 513429-done@bugs.debian.org, 528600-done@bugs.debian.org, 597650-done@bugs.debian.org, 603641-done@bugs.debian.org, 405067-done@bugs.debian.org, 430397-done@bugs.debian.org, 440775-done@bugs.debian.org, 591759-done@bugs.debian.org, 565387-done@bugs.debian.org, 507762-done@bugs.debian.org, 529278-done@bugs.debian.org, 556459-done@bugs.debian.org
Subject: Closing segfaults (and some other minor bugs) for version older than squeeze (5.3.3)
Date: Wed, 27 Apr 2011 10:28:24 +0200
Version: 5.3.3-7

Hi,

since lenny is oldstable it will not get any updates now (except
security)[1], I am closing all segfault bugs filled against php5 in
lenny. (This is kind of saying that we don't care much about php5 in
lenny anymore).

If you believe the bug is still there, please provide evidence[2] and
a (preferably complete) test case with up-to-date squeeze (and/or
testing or unstable) version of php5 and reopen the bug.

O.
1. http://wiki.debian.org/PHP#Notes_on_PHP_and_security
2. Install php5-dbg and provide backtrace:
http://bugs.php.net/bugs-generating-backtrace.php
-- 
Ondřej Surý <ondrej@sury.org>




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 26 May 2011 07:32:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:13:45 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.