Re: [PHP] [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentationfault (11)

2006-12-01 Thread Jan Schröter

Chris wrote:


If nobody provides information then try the -internals list, they'll 
probably be able to help a bit more.




Thanks a lot! I've done so, because it's very urgent.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault (11)

2006-11-30 Thread Jan Schröter

Hi all! I'm having trouble with my server(s) for some weeks now and did not find
any solution for now. My System is Opensuse 10.1 (32 bit) with Apache 2.2.3 and
PHP 4.4.5-dev as apache module (latest stable CVS, but wasn't the solution).

Im having abrupt segmentation faults in my Apache errorlog. Most frequently the
problem seems to appear while accessing the start page of an actual Joomla
installation, but i've had the error with an Worpress too. So it cannot be
isolated to some php Scripts. Sadly i am not able to reproduce this error - when
it appears it will not go until an apache restart, but then everything works
fine for some time (maybe hours or even days).

Here is a gdb backtrace of the request which died with a segmentation fault.
Hopefully someon can help me with this. If you need any further details, tell
me, and please also tell me how to obtain this information ;-).

#0  0xb7fa91a4 in do_lookup_x () from /lib/ld-linux.so.2
#1  0xb7fa9587 in _dl_lookup_symbol_x () from /lib/ld-linux.so.2
#2  0xb7fad24d in _dl_fixup () from /lib/ld-linux.so.2
#3  0xb7fb2630 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#4  0xb70f6029 in internal_getent () from /lib/libnss_files.so.2
#5  0xb70f6332 in _nss_files_gethostbyaddr_r () from /lib/libnss_files.so.2
#6  0xb7ddec22 in gethostbyaddr_r@@GLIBC_2.1.2 () from /lib/libc.so.6
#7  0xb7ddea32 in gethostbyaddr () from /lib/libc.so.6
#8  0xb79157fe in zif_gethostbyaddr (ht=1, return_value=0x8741224, this_ptr=0x0,
return_value_used=1)
at /usr/src/packages/BUILD/php4-4.4.4/ext/standard/dns.c:125
#9  0xb79b86ab in execute (op_array=0x856ff84) at
/usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1675
#10 0xb79b42c7 in execute (op_array=0x856b3cc) at
/usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1719
#11 0xb79a221e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
/usr/src/packages/BUILD/php4-4.4.4/Zend/zend.
#12 0xb7975215 in php_execute_script (primary_file=0xbfaee9d4) at
/usr/src/packages/BUILD/php4-4.4.4/main/main.c:1752
#13 0xb79bc600 in php_handler (r=0x8596e68) at
/usr/src/packages/BUILD/php4-4.4.4/sapi/apache2handler/sapi_apache2.c:581
#14 0x080796f9 in ap_run_handler ()
#15 0x08079e43 in ap_invoke_handler ()
#16 0x0809c1e0 in ap_process_request ()
#17 0x08098d62 in ap_process_http_connection ()
#18 0x08081b2b in ap_run_process_connection ()
#19 0x08081f38 in ap_process_connection ()
#20 0x080be32f in child_main ()
#21 0x080be511 in make_child ()
#22 0x080be762 in perform_idle_server_maintenance ()
#23 0x080bec8c in ap_mpm_run ()
#24 0x08062f06 in main ()

kind regards
Jan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problems with exec()

2006-11-30 Thread Jan Schröter
Think he's not getting an general error - just didn't read the manual concerning 
the return value of exec.


kind regards
jan

Juanjo Pascual wrote:

What is the safe_mode value in your php.ini?

To run exec the value of your safe_mode has to be OFF.


[EMAIL PROTECTED] escribió:

Try

exec('/path/to/copy', $return);
print_r($return);

read the manual : http://nl3.php.net/manual/en/function.exec.php

Description
string exec ( string command [, array output [, int return_var]] )

gr,
Thijs

On Wed, 29 Nov 2006 23:22:13 -0700, Ray [EMAIL PROTECTED] wrote:
 

hello;
I am trying to write a script to do some auto configuration of my
webserver. Part of the process involves copying some configuration files
from other places on the server to a working directory where they can be
modified.
I am running freeBSD 6.0, Apache 2.2.3, php 5.1.5
I can't seem to get the exec() command to work.
I have an external shell script called 'copy' that takes care of getting
files. script is currently set to mode 777 when run from the shell it
works perfectly.

however, in the php script

echo exec('whoami');
exec('/path/to/copy');
the only return is
'www' (the username correctly returned from whoami) also files aren't
changed.
any suggestions, pointers, log files to check would be appreciated as I
have spent several hours on google, in manuals, etc. haven't tried the
ougi board, but that's about it  ;-)
tia
Ray

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



  




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php