freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Youza Youzovic" <youza AT post.cz>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] Segfault apache + php + freetds
- Date: Fri, 22 Jul 2005 08:54:16 +0200 (CEST)
Hello
I have problem, use freetds to connect sybase server. Httpd
process crashed: child pid 5176 exit signal Segmentation fault
(11)
system: Fedora Core 4
php: php-4.3.11-2.6 (recompiled RPM from Fedora Core 3)
freetds: freetds-0.63
httpd: httpd-2.0.54-10 ( RPM fedora Core 4)
compile option:
PHP:
./configure' '--build=i686-redhat-linux-gnu'
'--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec'
'--localstatedir=/var' '--sharedstatedir=/usr/com'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--cache-file=../config.cache' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2'
'--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr'
'--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm'
'--with-gettext' '--with-ncurses=shared' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl'
'--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr'
'--with-dom=shared,/usr' '--with-dom-xslt=/usr'
'--with-dom-exslt=/usr' '--with-xmlrpc=shared'
'--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid'
'--enable-wddx' '--with-pear=/usr/share/pear'
'--with-imap=shared' '--with-imap-ssl' '--with-kerberos'
'--with-ldap=shared' '--with-mysql=shared,/usr'
'--with-pgsql=shared' '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack'
'--with-unixODBC=shared,/usr' '--enable-memory-limit'
'--enable-shmop' '--enable-calendar' '--enable-dbx'
'--enable-dio' '--enable-mbstring=shared'
'--enable-mbstr-enc-trans' '--enable-mbregex'
'--with-mime-magic=/usr/share/file/magic.mime' '--with-pic'
'--with-t1lib' '--with-sybase-ct=/usr'
'--with-apxs2=/usr/sbin/apxs'
freetds:
./configure --build=i686-redhat-linux-gnu
--host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu
--program-prefix= --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --with-tdsver=4.2 --prefix=/usr
--with-unixodbc=/usr/local --sysconfdir=/etc --enable-msdblib
--enable-sybase-compat --with-dbmfix
Server procesing more virtual hosts:
grep -c VirtualHost httpd.conf --> 3290
/etc/freetds.conf
[TEST1]
host = 192.168.111.209
port = 5000
tds version = 4.2
the PHP script produce segmentation fault:
<?
$DB_SERVER = "TEST1";
$DB_LOGIN = "tes3000S";
$DB_PASSWORD = "test3000s";
$conn = sybase_connect($DB_SERVER, $DB_LOGIN, $DB_PASSWORD) or
die ("cannot connect"); echo "Success6";
exit;
?>
backtrace core: ( cut loading libs and symbol), the bt command
show only:
#0 0x004e39cf in tds_put_buf (tds=Cannot access memory at
address 0x9 ) at write.c:201
201 return tds_put_byte(tds, cpsize);
where is problem ?
thanx
Youza
--
Revoluční vysokorychlostní INTERNET jen za nízký měsíční paušál
399 Kč. Navíc aktivace ZDARMA! Více na
http://www.revolucniinternet.cz
- [freetds] Segfault apache + php + freetds, Youza Youzovic, 07/22/2005
Archive powered by MHonArc 2.6.24.