php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60209 PHP CLI core dumps with ibm_db2-1.9.2 module
Submitted: 2011-11-03 12:51 UTC Modified: 2011-11-03 20:48 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: rgfer at comcast dot net Assigned:
Status: Closed Package: ibm_db2 (PECL)
PHP Version: 5.3.8 OS: AIX 6.1 TL7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rgfer at comcast dot net
New email:
PHP Version: OS:

 

 [2011-11-03 12:51 UTC] rgfer at comcast dot net
Description:
------------
Configured as: 

./configure \
  --with-ibm-db2=/db2aix/db2inst1/sqllib \
  --prefix=/opt/freeware \
  --with-freetype-dir=/opt/freeware \
  --with-apxs2=/usr/IBM/HTTPServer/bin/apxs \
  --with-config-file-path=/usr/IBM/HTTPServer/conf \
  --with-mysql=mysqlnd \
  --with-ldap=/opt/freeware \
  --enable-soap \
  --with-openssl=/opt/freeware \
  --enable-ftp \
  --with-zlib=/opt/freeware \
  --with-gd=/opt/freeware \
  --enable-pdo \
  --with-pdo-mysql=mysqlnd \
  --with-pdo-sqlite \
  --with-sqlite \
  --with-xpm-dir=/opt/freeware \
  --with-jpeg-dir=/opt/freeware \
  --with-png-dir=/opt/freeware \
  --with-curl=/opt/freeware \
  --with-libxml-dir=/opt/freeware \
  --without-iconv  \
  --disable-phar

Using CC=xlC  (IBM vacpp compiler.  Produces core dump when running php -v 
from the command line.

Illegal instruction (illegal opcode) in . at 0x0 ($t1)
warning: Unable to access address 0x0 from core
(dbx) where
.() at 0x0
zm_startup_ibm_db2(type = 1, module_number = 36, tsrm_ls = 0x200844b8), line 542 
in "ibm_db2.c"
zend_startup_module_ex(module = 0x20082808, tsrm_ls = 0x200844b8), line 1614 in "
zend_API.c"
unnamed block in zend_hash_apply(ht = 0x200656c8, apply_func = 0x20057318, tsrm_l
s = 0x200844b8), line 674 in "zend_hash.c"
zend_hash_apply(ht = 0x200656c8, apply_func = 0x20057318, tsrm_ls = 0x200844b8), 
line 674 in "zend_hash.c"
zend_startup_modules(tsrm_ls = 0x200844b8), line 1663 in "zend_API.c"
php_module_startup(sf = 0x20053518, additional_modules = (nil), num_additional_mo
dules = 0), line 2042 in "main.c"
php_cli_startup(sapi_module = 0x20053518), line 398 in "php_cli.c"
php_cli.main(argc = 2, argv = 0x2ff228e4), line 770 in "php_cli.c"
(dbx) quit


Test script:
---------------
php -v

Expected result:
----------------
# php -v
PHP 5.3.8 (cli) (built: Nov  3 2011 06:50:35) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies


Actual result:
--------------
# php -v               
Illegal instruction(coredump)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-03 14:29 UTC] rgfer at comcast dot net
Some additional info on DB/2 :
$ db2level
DB21085I  Instance "db2inst1" uses "64" bits and DB2 code release "SQL09074" 
with level identifier "08050107".
Informational tokens are "DB2 v9.7.0.4", "s110330", "IP23236", and Fix Pack 
"4".
Product is installed at "/opt/IBM/db2/V9.7".
 [2011-11-03 20:48 UTC] rgfer at comcast dot net
-Status: Open +Status: Closed
 [2011-11-03 20:48 UTC] rgfer at comcast dot net
I discovered the problem.  Configure was messing up my BUILD_CLI variable.  Changed:

BUILD_CLI="echo '\#! .'    .....  lots of other stuff   ... to

BUILD_CLI="echo ' '    .....  lots of other stuff

and now my CLI is building properly.  I am using GNU make and surprised this hasn't been reported before ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 17:01:29 2024 UTC