Debian Bug report logs - #620948
php5-sybase: php5 segmentation fault when trying to convert money value from MS-SQL-SERVER

version graph

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

Reported by: Thomas BIBARD <thomas@dimipro.fr>

Date: Tue, 5 Apr 2011 09:12:02 UTC

Severity: important

Found in version php5/5.3.3-7+squeeze1

Fixed in versions php5/5.4.4-7, 5.4.4-14

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#620948; Package php5-sybase. (Tue, 05 Apr 2011 09:12:04 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas BIBARD <thomas@dimipro.fr>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 05 Apr 2011 09:12:08 GMT) (full text, mbox, link).


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

From: Thomas BIBARD <thomas@dimipro.fr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-sybase: php5 segmentation fault when trying to convert money value from MS-SQL-SERVER
Date: Tue, 05 Apr 2011 10:48:33 +0200
Package: php5-sybase
Version: 5.3.3-7+squeeze1
Severity: important

In order to test my php5 applications on Debian Squeeze, I upgraded from
Debian Lenny to Squeeze on a test machine.
Tests on Debian Squeeze have shown me that php5 causes segmentation
fault when a script try to query MS-SQL-SERVER.
I use php5-sybase (freetds-bin, freetds-common) for connect to
MS-SQL-SERVER.

Actually the bug occurs when I query a row which contains a money type
column. If there isn't a money type column in the row,
the script doesnt't return segmentation fault. I have seen this when I
activated log on freetds, and freetds seem to shutdown on:
dblib.c:2141:dbconvert((nil), SYBMONEY, 0x2cfd858, 8, SYBFLT8,
0x7fffb52df1a8, 0)

I can see that a similar BUG exist on PHP: #52546
http://bugs.php.net/52546,
but I don't know whether this patch was integrated on the current
release of php5-sybase.

On Debian Lenny with the excatly same configuration, I have no problem.

A tsql session which query a row containing a money type value works
fine
(Prix and Montant are money columns, yes I'm french :) )
$ tsql -S gestion -U Toto -P Toto
locale is "fr_FR@euro"
locale charset is "ISO-8859-15"
1> use Test;
2> SELECT * FROM ArticleStock WHERE Article=100 AND Site=3;
3> go
Article Site    Stock   Prix    Montant DateCreation    DateSaisie
100     3       0       242.76  0.00    2007-10-24 16:53:51 2008-07-10
17:20:04
(1 row affected)

I can't solve the problem for the moment and I have to stay on Debian
Lenny.
I can send, if necessary, two full log samples of freetds (one from
Lenny and the other from Squeeze) of the same query test.

My configuration of freetds:
/etc/freetds/freetds.conf:
[global]
# TDS protocol version
;       tds version = 4.2
# Whether to write a TDSDUMP file for diagnostic
# purposes
# (setting this to /tmp is insecure on a
# multi-user system)
;       dump file = /tmp/freetds.log
;       debug flags = 0xffff
# Command and connection timeouts
;       timeout = 10
;       connect timeout = 10
text size = 64512
[gestion]
host = 192.168.2.2
port = 11111
tds version = 7.0
;dump file = /tmp/freetds.log

/etc/freetds/locales.conf:
[default]
 date format = %Y-%m-%d %%H:%M:%S

MS-SQL-SERVER Version: SQL EXPRESS 2005 9.0.3042
php5-sybase version: 5.3.3-7+squeeze1
freetds-bin: 0.82-7 
freetds-common: 0.82-7
libsybdb5: 0.82-7
php5-common: 5.3.3-7+squeeze1

Regards 

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

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-sybase depends on:
ii  libapache2-mod-php5 [ph 5.3.3-7+squeeze1 server-side, HTML-embedded scripti
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libsybdb5               0.82-7           libraries for connecting to MS SQL
ii  php5-cli [phpapi-200906 5.3.3-7+squeeze1 command-line interpreter for the p
ii  php5-common             5.3.3-7+squeeze1 Common files for packages built fr

php5-sybase recommends no packages.

php5-sybase suggests no packages.

-- no debconf information




Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 04 Jul 2014 13:03:20 GMT) (full text, mbox, link).


Notification sent to Thomas BIBARD <thomas@dimipro.fr>:
Bug acknowledged by developer. (Fri, 04 Jul 2014 13:03:20 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: 614904-done@bugs.debian.org, 620015-done@bugs.debian.org, 704764-done@bugs.debian.org, 628054-done@bugs.debian.org, 620948-done@bugs.debian.org, 620423-done@bugs.debian.org, 620015-done@bugs.debian.org
Subject: Re: Closing bugs filled against php5 in oldstable
Date: Fri, 04 Jul 2014 15:00:44 +0200
Version: 5.4.4-14

One more batch...

On Fri, Jul 4, 2014, at 14:09, Ondřej Surý wrote:
> Version: 5.4.4-14
> 
> Hey all,
> 
> I am closing the bugs that were filled against php5 5.3 in Debian
> oldstable
> (well and earlier)...
> 
> Feel free to reopen the bug in you can reproduce it with php5 from
> current
> stable Debian release.
> 
> Cheers,
> -- 
> Ondřej Surý <ondrej@sury.org>
> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Marked as fixed in versions php5/5.4.4-7. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Wed, 09 Jul 2014 08:51:05 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 07 Aug 2014 07:31:39 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 03:38:40 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.