php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46883 ext/standard/tests/streams/bug46024.phpt hangs
Submitted: 2008-12-16 16:58 UTC Modified: 2008-12-18 16:06 UTC
From: long at ku dot edu Assigned: lbarnaud (profile)
Status: Closed Package: Streams related
PHP Version: 5.2.8 OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: long at ku dot edu
New email:
PHP Version: OS:

 

 [2008-12-16 16:58 UTC] long at ku dot edu
Description:
------------
When running 'make test' it is repeatedly freezing on ext/standard/tests/streams/bug46024.phpt.  ps shows that no CPU time is being used.

Reproduce code:
---------------
Using solaris 8 with cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15 configure using:

#! /bin/sh
#
# Created by configure

CFLAGS='-O' \
CC='cc' \
'./configure' \
'--enable-discard-path' \
'--with-openssl=shared' \
'--with-zlib=shared' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-dba=shared' \
'--enable-dbase' \
'--enable-exif' \
'--enable-ftp' \
'--with-gd=shared' \
'--enable-gd-native-ttf' \
'--enable-gd-jis-conv' \
'--with-gettext=shared' \
'--with-kerberos' \
'--with-imap-ssl' \
'--with-ldap' \
'--enable-mbstring' \
'--with-mysql' \
'--with-oci8' \
'--enable-shmop' \
'--enable-sockets' \
'--with-sqlite' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-freetype-dir' \
'--with-jpeg-dir' \
'--with-mysqli' \
'--with-pdo-mysql' \
'--with-pdo-oci' \
'--enable-cgi' \
'--disable-libxml' \
'--disable-dom' \
'--disable-simplexml' \
'--disable-xmlreader' \
'--disable-xmlwriter' \
'--with-libexpat-dir' \
'--enable-zip' \
'--with-iconv=/usr/local' \
"$@"

then make and make test



Expected result:
----------------
I expect the make test to complete its run.


Actual result:
--------------
I get something like this:

...
PASS Bug MOPB-29 (wrong length calculation for S) [ext/standard/tests/serialize/unserializeS.phpt]
PASS Bug #44818 (php://memory writeable when opened read only) [ext/standard/tests/streams/bug44818.phpt]
TEST 5082/5818 [ext/standard/tests/streams/bug46024.phpt]

and it has been that way for over 12 hours now.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-17 16:29 UTC] long at ku dot edu
gdb doesn't want to seem to work with it so I just used dbx to get a backtrace:

(/apps/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) where
  [1] _read(0x5, 0x1796f20, 0x2000, 0x1641658, 0x215e4, 0x9acbc0), at 0xfed1ecc0
=>[2] php_stdiop_read(stream = 0x17939a8, buf = 0x1796f20 "", count = 8192U), line 337 in "plain_wrapper.c"
  [3] php_stream_fill_read_buffer(stream = 0x17939a8, size = 1U), line 556 in "streams.c"
  [4] _php_stream_read(stream = 0x17939a8, buf = 0x1794730 "ZZx]nDnD\x", size = 1U), line 600 in "streams.c"
  [5] zif_fread(ht = 2, return_value = 0x17932f0, return_value_ptr = (nil), this_ptr = (nil), return_value_used = 0), line 1873 in "file.c"
  [6] zend_do_fcall_common_helper_SPEC(execute_data = 0xffbeec48), line 200 in "zend_vm_execute.h"
  [7] ZEND_DO_FCALL_SPEC_CONST_HANDLER(execute_data = 0xffbeec48), line 1729 in "zend_vm_execute.h"
  [8] execute(op_array = 0x17926a0), line 92 in "zend_vm_execute.h"
  [9] zend_execute_scripts(type = 8, retval = (nil), file_count = 3, ...), line 1134 in "zend.c"
  [10] php_execute_script(primary_file = 0xffbef368), line 2023 in "main.c"
  [11] main(argc = 74, argv = 0xffbef3fc), line 1133 in "php_cli.c"
(/apps/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx)
 [2008-12-18 15:02 UTC] jani@php.net
Arnaud, this test is a bit odd. Why is it reading from writable pipe?
ie. shouldn't this:

fread($pipes[0], 1);

be this:

fread($pipes[1], 1);

??
 [2008-12-18 16:06 UTC] lbarnaud@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed, thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 17:01:27 2025 UTC