From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.1 PHP Bug Type: Sybase-ct (ctlib) related Bug description: sybase_pconnect work, sybase_connect segfaults
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' -- Edit bug report at http://bugs.php.net/?id=15424&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15424&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15424&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15424&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15424&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15424&r=support Expected behavior: http://bugs.php.net/fix.php?id=15424&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15424&r=notenoughinfo -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php