Bug #20678 [Com]: segmentation fault (without PHP, things work fine)
| From: | giw42161 at uooos dot com | Date: | Thu, 23 Jun 2022 06:20:52 +0000 |
| Subject: | Bug #20678 [Com]: segmentation fault (without PHP, things work fine) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-241785@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=20678&edit=1
ID: 20678
Comment by: giw42161 at uooos dot com
Reported by: henka at isp dot org dot za
Summary: segmentation fault (without PHP, things work fine)
Status: Not a bug
Type: Bug
Package: Apache related
Operating System: linux 2.4.19
PHP Version: 4.2.3
Block user comment: N
Private report: N
New Comment:
(https://centurylawfirm.in/)gist.github.com
(https://centurylawfirm.in/blog/divorce-lawyer-in-delhi-2/)gist.github.com
(https://centurylawfirm.in/blog/debt-recovery-tribunal-drt/)gist.github.com
(https://centurylawfirm.in/blog/get-bail-in-india/)gist.github.com
(https://centurylawfirm.in/blog/best-lawyer-for-criminal-case/)gist.github.com
(https://centurylawfirm.in/blog/high-court-cases/)gist.github.com
(https://centurylawfirm.in/blog/cheque-bounce-case/)gist.github.com
(https://centurylawfirm.in/blog/how-to-take-mutual-divorce/)gist.github.com
Previous Comments:
------------------------------------------------------------------------
[2002-11-27 17:52:09] michael dot mauch at gmx dot de
Yes, but some libraries are sometimes linked against libpthread, and if you load such a library into
an Apache without libpthread, it dies sometimes.
See <http://bugs.php.net/bug.php?id=10643>,
<http://bugs.php.net/bug.php?id=8298> and
<http://www.php.net/manual/en/ref.oci8.php>
(the last one seems to imply that it's not only a bug in glibc-2.1.3, but also happens
elsewhere).
------------------------------------------------------------------------
[2002-11-27 17:22:17] iliaa@php.net
Apache 1 & PHP do not need to be linked against a threading library. Apache 1 operates on a
pre-fork model, meaning that it forks child processes rather then making threads.
------------------------------------------------------------------------
[2002-11-27 17:05:03] michael dot mauch at gmx dot de
Try configuring your Apache with the pthread library:
LDFLAGS="-lpthread" ./configure ...
(or if your platform doesn't have a pthread library: use "ldd libphp4.so" and
"ldd httpd" and make sure that both of them are linked to the same thread library).
------------------------------------------------------------------------
[2002-11-27 16:45:15] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
The crash appears to occur deep inside the Apache code (last 9 steps). You may get more meaningful
data if you compile Apache with debug symbols, but given the provided backtrace the crash does not
appear to be the fault of PHP.
------------------------------------------------------------------------
[2002-11-27 10:33:29] henka at isp dot org dot za
Sample script:
<?php
print "hello world!";
?>
apache-1.3.27 configured with:
./configure --enable-module=unique_id --enable-module=rewrite --enable-module=usertrack
--enable-module=so
PHP-4.2.3 configured with:
./configure --with-pgsql --with-interbase --with-mysql=/usr/local/mysql/ --with-apxs=/www/bin/apxs
--with-openssl --enable-debug
gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x4020f466 in ?? ()
(gdb) bt
#0 0x4020f466 in ?? ()
#1 0x4020b4e2 in ?? ()
#2 0x401f92a3 in ?? ()
#3 0x401d1181 in ?? ()
#4 0x401f9993 in ?? ()
#5 0x4020d4c7 in ?? ()
#6 0x40207a30 in ?? ()
#7 0x402089c8 in ?? ()
#8 0x40208a52 in ?? ()
#9 0x808dd69 in ap_invoke_handler (r=0x81bafdc) at http_config.c:538
#10 0x80a38cf in process_request_internal (r=0x81bafdc) at http_request.c:1312
#11 0x80a3d36 in ap_internal_redirect (new_uri=0x81bafb4 "/index.php",
r=0x81ba354) at http_request.c:1440
#12 0x8074336 in handle_dir (r=0x81ba354) at mod_dir.c:174
#13 0x808dd69 in ap_invoke_handler (r=0x81ba354) at http_config.c:538
#14 0x80a38cf in process_request_internal (r=0x81ba354) at http_request.c:1312
#15 0x80a393a in ap_process_request (r=0x81ba354) at http_request.c:1328
#16 0x809a150 in child_main (child_num_arg=0) at http_main.c:4629
#17 0x809a315 in make_child (s=0x816acdc, slot=0, now=1038414204)
at http_main.c:4744
#18 0x809a496 in startup_children (number_to_start=1) at http_main.c:4826
#19 0x809ab2d in standalone_main (argc=4, argv=0xbffff8d4) at http_main.c:5134
#20 0x809b39c in main (argc=4, argv=0xbffff8d4) at http_main.c:5482
#21 0x400892e7 in __libc_start_main () from /lib/libc.so.6
/www/logs/error_log:
...[notice] child pid 18177 exit signal Segmentation fault (11)
-----------------
If you'd like me to try different configs, etc, let me know.
Regards
Henry
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=20678&edit=1