php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5599 Bus error (default) at [php_if_pg_close:461
Submitted: 2000-07-15 00:43 UTC Modified: 2000-07-22 00:43 UTC
From: sudo at nsg dot sgi dot com Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.1pl2 OS: irix 6.5.8m
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sudo at nsg dot sgi dot com
New email:
PHP Version: OS:

 

 [2000-07-15 00:43 UTC] sudo at nsg dot sgi dot com
I am using PHP4.9.1p12, PostgreSQL 7.0, apache 1.3.12 on SGI O2(Irix 6.5.8m MIPS 7.3 cc).

I encounter sigbus error at php_if_pg_close().
By invorking apache with single thread (-X) and
dbx debugger, I saw the following info regarding to this error .

mikan 5# dbx /usr/local/apache/bin/httpd -X
dbx version 7.3 MR 55458_Apr30_MR Apr 30 1999 13:44:41
Executable /usr/local/apache/bin/httpd
(dbx) run -X
Process 31196 (httpd) stopped on signal SIGBUS: Bus error (default) at [php_if_pg_close:461 +0x8,0x40c3dd0]
 461  zend_list_delete(Z_LVAL_PP(pgsql_link));
(dbx) (dbx) where
>  0 php_if_pg_close(ht = 0, return_value = 0x100ed648, this_ptr = (nil), return_value_used = 0) ["/usr1/sudo/local/php-4.0.1pl2/ext/pgsql/pgsql.c":461, 0x40c3dd0]
   1 execute(op_array = 0x100b1ca0) ["/usr1/sudo/local/php-4.0.1pl2/Zend/zend_execute.c":1558, 0x40584b4]
   2 php_execute_script(primary_file = 0x7fff2bb0) ["/usr1/sudo/local/php-4.0.1pl2/main/main.c":1157, 0x407dc00]
   3 apache_php_module_main(r = 0x100e1778, fd = 22, display_source_mode = 0) ["/usr1/sudo/local/php-4.0.1pl2/sapi/apache/sapi_apache.c":93, 0x406fff4]
   4 send_php(r = 0x100e1778, display_source_mode = 0, filename = 0x100e22c8 = "/usr/local/apache/htdocs/show_all.php") ["/usr1/sudo/local/php-4.0.1pl2/sapi/apache/mod_php4.c":515, 0x406f5e4]
   5 send_parsed_php(r = 0x100e1778) ["/usr1/sudo/local/php-4.0.1pl2/sapi/apache/mod_php4.c":527, 0x406f66c]
   6 ap_invoke_handler(0x100e1778, 0x41854b0, 0x100e2658, 0x100f17f0, 0x7fff1fb8, 0x7, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_config.c":508, 0x100283e0]
   7 process_request_internal(0x100e1778, 0x41854b0, 0x1, 0x100f17f0, 0x7fff1fb8, 0x7, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_request.c":1215, 0x10022934]
   8 ap_process_request(0x100e1778, 0x41854b0, 0x1, 0x100f17f0, 0x7fff1fb8, 0x7, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_request.c":1231, 0x10022c4c]
   9 child_main(0x1008aff0, 0x41854b0, 0x1, 0x100f17f0, 0x7fff1fb8, 0x7, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_main.c":4177, 0x1002e670]
   10 make_child(0x0, 0x0, 0x1, 0x100f17f0, 0x7fff1fb8, 0x7, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_main.c":4281, 0x1002e78c]
   11 startup_children(0x5, 0x0, 0x1, 0x100f17f0, 0x7fff1fb8, 0x0, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_main.c":4363, 0x1002e960]
   12 standalone_main(0x22, 0x41854b0, 0x1, 0x100f17f0, 0x7fff1fb8, 0x7, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_main.c":4651, 0x1002f3ac]
   13 main(0x2, 0x7fff2f24, 0x1, 0x100f17f0, 0x7fff1fb8, 0x7, 0x0, 0x5) ["/usr1/sudo/local/apache_1.3.12/src/main/http_main.c":4978, 0x1002f910]
   14 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M4/csu/crt1text.s":177, 0x10008fc8]
(dbx) list 450,470
   450                  case 1:
   451                          if (zend_get_parameters_ex(1, &pgsql_link)==FAILURE) {
   452                                  RETURN_FALSE;
   453                          }
   454                          break;
   455                  default:
   456                          WRONG_PARAM_COUNT;
   457                          break;
   458          }
   459          
   460          ZEND_FETCH_RESOURCE2(pgsql, PGconn *, pgsql_link, id, "PostgreSQL link", le_link, le_plink);
 * 461          zend_list_delete(Z_LVAL_PP(pgsql_link));
   462          RETURN_TRUE;
   463  }
   464  /* }}} */
   465  
>  466  
   467  #define PHP_PG_DBNAME 1
   468  #define PHP_PG_ERROR_MESSAGE 2
   469  #define PHP_PG_OPTIONS 3
   470  #define PHP_PG_PORT 4
(dbx) print pgsql_link
0x41bdf7c 

What is the cause of this problem?
Are there any workaround this?
Any suggestions are wellcome.

Thanks,
#PS I disabled #define inline in 'php_config.h'.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-14 22:15 UTC] jah at cvs dot php dot net
Already fixed in cvs. Fetch the latest version from
http://cvs.php.net/viewcvs.cgi/~checkout~/php4/ext/pgsql/pgsql.c?rev=1.64
and recompile. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 09:01:28 2024 UTC