[PHP-BUG] Bug #65940 [NEW]: zend_dtrace.d failed to resolve INP_IPV4

2013-10-22 Thread devzone dot my at gmail dot com
From: devzone dot my at gmail dot com
Operating system: FreeBSD 10.0-BETA1
PHP version:  5.5.5
Package:  *General Issues
Bug Type: Bug
Bug description:zend_dtrace.d failed to resolve INP_IPV4

Description:

ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.0/

# make showconfig -C /usr/ports/lang/php55 | grep DTRACE
 DTRACE=on: Enable DTrace support

---

CFLAGS="-O2 -pipe -fno-strict-aliasing" dtrace -h -C -s
/usr/ports/lang/php55/work/php-5.5.5/Zend/zend_dtrace.d -o
Zend/zend_dtrace_gen.h.bak && sed -e 's,PHP_,DTRACE_,g'
Zend/zend_dtrace_gen.h.bak > Zend/zend_dtrace_gen.h

dtrace: failed to compile script
/usr/ports/lang/php55/work/php-5.5.5/Zend/zend_dtrace.d:
"/usr/lib/dtrace/regs_x86.d", line 30: failed to resolve INP_IPV4:
Unknown variable name

*** [Zend/zend_dtrace_gen.h] Error code 1

make[2]: stopped in /usr/ports/lang/php55/work/php-5.5.5
1 error


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65940&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65940&r=trysnapshot54
Try a snapshot (PHP 5.5):   
https://bugs.php.net/fix.php?id=65940&r=trysnapshot55
Try a snapshot (trunk): 
https://bugs.php.net/fix.php?id=65940&r=trysnapshottrunk
Fixed in SVN:   https://bugs.php.net/fix.php?id=65940&r=fixed
Fixed in release:   https://bugs.php.net/fix.php?id=65940&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65940&r=needtrace
Need Reproduce Script:  https://bugs.php.net/fix.php?id=65940&r=needscript
Try newer version:  https://bugs.php.net/fix.php?id=65940&r=oldversion
Not developer issue:https://bugs.php.net/fix.php?id=65940&r=support
Expected behavior:  https://bugs.php.net/fix.php?id=65940&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=65940&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=65940&r=submittedtwice
register_globals:   https://bugs.php.net/fix.php?id=65940&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65940&r=php4
Daylight Savings:   https://bugs.php.net/fix.php?id=65940&r=dst
IIS Stability:  https://bugs.php.net/fix.php?id=65940&r=isapi
Install GNU Sed:https://bugs.php.net/fix.php?id=65940&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65940&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65940&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65940&r=mysqlcfg



Bug #65940 [Fbk->Opn]: zend_dtrace.d failed to resolve INP_IPV4

2013-10-22 Thread devzone dot my at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=65940&edit=1

 ID: 65940
 User updated by:devzone dot my at gmail dot com
 Reported by:devzone dot my at gmail dot com
 Summary:zend_dtrace.d failed to resolve INP_IPV4
-Status: Feedback
+Status: Open
 Type:   Bug
 Package:*General Issues
 Operating System:   FreeBSD 10.0-BETA1
 PHP Version:5.5.5
 Block user comment: N
 Private report: N

 New Comment:

Found problem, php incorrect dtrace unload error message

$  kldload dtraceall
$ echo"dtraceall_load=YES" >> /boot/loader.conf


Previous Comments:

[2013-10-21 22:30:40] s...@php.net

Some brainstorm thoughts:

- Does it work with older FreeBSD releases?

- Did 
http://git.php.net/?p=php-src.git;a=commit;h=3c5e22921202bf5451774b23e2a25fb73029fc68
 affect anything?

- Do you need anything special for FreeBSD in the PHP_INIT_DTRACE macro in 
acinclude.m4?

- Check with PHP 5.5.1.  Some DTrace fixes have been merged since then, but 
they were not expected to impact FreeBSD.

I, personally, can only test DTrace on Solaris and Oracle Linux.


[2013-10-21 16:57:23] devzone dot my at gmail dot com

Description:

ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.0/

# make showconfig -C /usr/ports/lang/php55 | grep DTRACE
 DTRACE=on: Enable DTrace support

---

CFLAGS="-O2 -pipe -fno-strict-aliasing" dtrace -h -C -s 
/usr/ports/lang/php55/work/php-5.5.5/Zend/zend_dtrace.d -o 
Zend/zend_dtrace_gen.h.bak && sed -e 's,PHP_,DTRACE_,g' 
Zend/zend_dtrace_gen.h.bak > Zend/zend_dtrace_gen.h

dtrace: failed to compile script 
/usr/ports/lang/php55/work/php-5.5.5/Zend/zend_dtrace.d: 
"/usr/lib/dtrace/regs_x86.d", line 30: failed to resolve INP_IPV4: Unknown 
variable name

*** [Zend/zend_dtrace_gen.h] Error code 1

make[2]: stopped in /usr/ports/lang/php55/work/php-5.5.5
1 error







-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65940&edit=1


[PHP-BUG] Bug #65433 [NEW]: Static analyzer errors

2013-08-09 Thread devzone dot my at gmail dot com
From: devzone dot my at gmail dot com
Operating system: all
PHP version:  Irrelevant
Package:  *General Issues
Bug Type: Bug
Bug description:Static analyzer errors

Description:

Version: 5.5.1 (Release)

**sapi**
[sapi/cgi/fastcgi.c:887]: (error) Uninitialized variable: hdr
[sapi/cli/php_cli.c:1289]: (error) Common realloc mistake: 'ini_entries'
nulled 
but not freed upon failure
[sapi/cli/php_cli.c:1299]: (error) Common realloc mistake: 'ini_entries'
nulled 
but not freed upon failure
[sapi/cli/php_cli.c:1305]: (error) Common realloc mistake: 'ini_entries'
nulled 
but not freed upon failure
[sapi/cli/php_cli.c:1345]: (error) Common realloc mistake: 'ini_entries'
nulled 
but not freed upon failure
[sapi/cgi/cgi_main.c:1547]: (error) Possible null pointer dereference: str
[sapi/fpm/fpm/fastcgi.c:513]: (error) Uninitialized variable: hdr
[sapi/fpm/fpm/fpm_sockets.c:80]: (error) Common realloc mistake:
'env_value' 
nulled but not freed upon failure
[sapi/isapi/stresstest/stresstest.cpp:589]: (error) Memory leak:
environment
[sapi/tux/php_tux.c:143]: (error) Common realloc mistake: 'vec' nulled but
not 
freed upon failure
 
**main**
[main/php_ini.c:675]: (error) Common realloc mistake:
'php_ini_scanned_files' 
nulled but not freed upon failure

**win32**
[win32/readdir.c:48]: (error) Memory leak: filespec

**TSRM**
[TSRM/TSRM.c:229]: (error) Common realloc mistake: 'resource_types_table'
nulled 
but not freed upon failure
[TSRM/TSRM.c:617]: (error) Uninitialized variable: mutexp

**ext**
[ereg/regex/regcomp.c:205]: (error) Uninitialized variable: c
[gd/libgd/gd_topal.c:1464]: (error) Uninitialized variable: shift_temp
[intl/calendar/calendar_methods.cpp:566]: (error) Uninitialized variable: 
variant
[intl/resourcebundle/resourcebundle_class.c:177]: (error) Uninitialized 
variable: rb
[intl/resourcebundle/resourcebundle_class.c:181]: (error) Uninitialized 
variable: rb
[mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c:257]: (error) Buffer
is 
accessed out of bounds.
[mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c:493]: (error)
Resource 
leak: fp
[mbstring/libmbfl/mbfl/mbfilter.c:1180]: (error) Uninitialized variable: 
needle_u8
[mbstring/oniguruma/enc/euc_jp.c:204]: (error) Uninitialized variable: r
[mbstring/oniguruma/enc/sjis.c:238]: (error) Uninitialized variable: r
[mbstring/oniguruma/regenc.c:852]: (error) Common realloc mistake: 'list'
nulled 
but not freed upon failure
[mbstring/ucgendat/ucgendat.c:484]: (error) Common realloc mistake:
'pdecomps' 
nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:546]: (error) Common realloc mistake: 'title'

nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:593]: (error) Common realloc mistake: 'upper'

nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:640]: (error) Common realloc mistake: 'lower'

nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:675]: (error) Common realloc mistake: 'ccl'
nulled 
but not freed upon failure
[mbstring/ucgendat/ucgendat.c:756]: (error) Common realloc mistake: 'nums'

nulled but not freed upon failure
[mbstring/ucgendat/ucgendat.c:794]: (error) Common realloc mistake:
'ncodes' 
nulled but not freed upon failure
[mbstring/oniguruma/regexec.c:2230]: (error) Uninitialized variable: len
[mbstring/oniguruma/regexec.c:2269]: (error) Uninitialized variable: len
[opcache/zend_accelerator_blacklist.c:133]: (error) Memory leak: regexp
[oci8/oci8.c:2817]: (error) Memory leak: session_pool
[opcache/zend_accelerator_blacklist.c:243]: (error) Resource leak: fp
[opcache/zend_accelerator_util_funcs.c:479]: (error) Uninitialized
variable: 
new_ce
[opcache/zend_accelerator_util_funcs.c:488]: (error) Uninitialized
variable: 
new_prototype
[opcache/zend_accelerator_util_funcs.c:590]: (error) Uninitialized
variable: 
new_ce
[odbc/php_odbc.c:2458]: (error) Uninitialized variable: rc
[snmp/snmp.c:1510]: (error) Uninitialized variable: a3
[snmp/snmp.c:1510]: (error) Uninitialized variable: a4
[snmp/snmp.c:1510]: (error) Uninitialized variable: a5
[snmp/snmp.c:1510]: (error) Uninitialized variable: a6
[snmp/snmp.c:1510]: (error) Uninitialized variable: a7
[standard/crypt_sha256.c:401]: (error) Possible null pointer dereference: 
copied_salt
[standard/crypt_sha512.c:435]: (error) Possible null pointer dereference: 
copied_salt
[sybase_ct/php_sybase_ct.c:792]: (error) Dereferencing 'sybase_ptr' after
it is 
deallocated / released
[sybase_ct/php_sybase_ct.c:796]: (error) Memory pointed to by 'sybase_ptr'
is 
freed twice.

 

Test script:
---
cppcheck php-5.5.1 -j4 2> err.txt


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65433&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65433&r=trysnapshot54
Try a snapshot (PHP 5.3):