|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-11 11:18 UTC] tcurdt at dff dot st
[2002-05-26 13:32 UTC] derick@php.net
[2002-05-27 01:19 UTC] tcurdt at dff dot st
[2002-06-27 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 10:00:01 2025 UTC |
It's very strange sybase_pconnect works just fine but sybase_connect lets the child segfault (11) and die. I have done a strace and it looks like the connect works and data is transmitted. But at the end (doesn't matter if call sybase_close or not) the child dies. Here is the strace: [pid 23318] open("/opt/sybase/interfaces", O_RDONLY) = 5 [pid 23318] lseek(5, 0, SEEK_SET) = 0 [pid 23318] read(5, "orga-shops\n query tcp eth"..., 512) = 96 [pid 23318] open("/opt/sybase/locales/us_english/iso_1/libinsck.loc", O_RDONLY) = 8 [pid 23318] read(8, "\n; comment character is a semico"..., 512) = 512 [pid 23318] read(8, "kslash is the escape symbol.\n[la"..., 512) = 512 [pid 23318] close(8) = 0 [pid 23318] pipe([8, 9]) = 0 [pid 23318] fcntl64(8, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 [pid 23318] fcntl64(9, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 [pid 23318] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 10 [pid 23318] setsockopt(10, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 [pid 23318] setsockopt(10, SOL_SOCKET, SO_LINGER, [0], 8) = 0 [pid 23318] fcntl64(10, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 [pid 23318] connect(10, {sin_family=AF_INET, sin_port=htons(2635), sin_addr=inet_addr("217.6.225.82")}}, 16) = -1 EINPROGRESS (Operation now in progress) [pid 23318] select(11, [8], [10], [8], {60, 0}) = 1 (out [10], left {60, 0}) [pid 23318] connect(10, {sin_family=AF_INET, sin_port=htons(2635), sin_addr=inet_addr("217.6.225.82")}}, 16) = 0 [pid 23318] select(9, [8], [], [8], {0, 0}) = 0 (Timeout) [pid 23318] close(5) = 0 [pid 23318] getpid() = 23318 [pid 23318] send(10, "\2\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512, 0) = 512 [pid 23318] send(10, "\2\1\0]\0\0\0\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 93, 0) = 93 [pid 23318] recv(10, "\4\1\0K\0\0\0\0", 8, 0) = 8 [pid 23318] recv(10, "\255\"\0\5\5\0\0\0\30Adaptive Server Anywher"..., 67, 0) = 67 [pid 23318] send(10, "\17\1\0!\0\0\0\0!\24\0\0\0\0SELECT * from dumm"..., 33, 0) = 33 [pid 23318] recv(10, "\4\1\0,\0\0\0\0", 8, 0) = 8 [pid 23318] recv(10, "\356\23\0\1\0\tdummy_col\20\7\0\0\0008\0\321\0\0\0\0\375"..., 36, 0) = 36 [pid 23318] send(10, "\17\1\0\n\0\0\0\0q\0", 10, 0) = 10 [pid 23318] recv(10, "\4\1\0\21\0\0\0\0", 8, 0) = 8 [pid 23318] recv(10, "\375\0\0\0\0\0\0\0\0", 9, 0) = 9 [pid 23318] --- SIGSEGV (Segmentation fault) --- <... select resumed> ) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) --- Here is my configure string: ./configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--with-sybase-ct=/opt/sybase' '--with-mysql=/usr' '--with-gd=yes' '--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--with-tiff-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-ldap=yes' '--with-zlib=yes' '--with-bz2' '--with-gmp' '--with-xml' '--with-ttf' '--with-t1lib' '--with-mcal=/usr' '--with-imap=yes' '--with-sablot' '--with-ftp' '--with-ndbm' '--with-gdbm' '--with-mcrypt' '--with-gettext' '--with-mm' '--with-gd=yes' '--with-iodbc' '--enable-versioning' '--enable-yp' '--enable-bcmath' '--enable-trans-sid' '--enable-inline-optimization' '--enable-track-vars' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--enable-calendar' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-exif' '--enable-ftp' '--enable-memory-limit' '--enable-wddx' '--enable-filepro' '--enable-dbase' '--enable-ctype' '--disable-debug' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-sigchild' '--with-openssl' '--with-imap-ssl' '--with-gd=yes' '--with-apxs=/usr/sbin/apxs' '--with-pgsql=/usr' '--with-snmp' 'i386-suse-linux'