Hello. I've confirmed this problem on my gentoo linux box and using Xampp on windows..
============= apache log ============================================= [Mon May 28 20:38:47 2007] [notice] child pid 16577 exit signal Aborted (6) *** glibc detected *** /usr/sbin/apache2: free(): invalid next size (fast): 0x082b4d28 *** ======= Backtrace: ========= /lib/libc.so.6[0xb7b2b980] /lib/libc.so.6(__libc_free+0x89)[0xb7b2cfe9] /usr/lib/apache2/modules/libphp5.so(shutdown_memory_manager+0x48)[0xb77a0ef8] /usr/lib/apache2/modules/libphp5.so(php_request_shutdown+0x478)[0xb7776ab8] /usr/lib/apache2/modules/libphp5.so[0xb7839a18] /usr/sbin/apache2(ap_invoke_handler+0x182)[0x806b992] /usr/sbin/apache2(ap_process_request+0x15e)[0x806779e] /usr/sbin/apache2(apr_vformatter+0xab0)[0x80611f8] /usr/sbin/apache2(ap_process_connection+0x99)[0x80755b9] /usr/sbin/apache2[0x8068bc1] /usr/sbin/apache2[0x8068f56] /usr/sbin/apache2(ap_mpm_run+0x67e)[0x806964e] /usr/sbin/apache2(main+0x7df)[0x80701af] /lib/libc.so.6(__libc_start_main+0xd8)[0xb7add838] /usr/sbin/apache2(apr_bucket_mmap_make+0x69)[0x8060aa1] ======= Memory map: ======== 08048000-080a0000 r-xp 00000000 03:07 1310985 /usr/sbin/apache2 080a0000-080a3000 rw-p 00058000 03:07 1310985 /usr/sbin/apache2 080a3000-08349000 rw-p 080a3000 00:00 0 [heap] b6d00000-b6d21000 rw-p b6d00000 00:00 0 ============= ======================================================= My code snippets 1) lib_marc\trunk\pages\Page.php|12 col 14| protected $pageContentObjects = array(); 2) lib_marc\trunk\pages\Page.php|19 col 13| $this->pageContentObjects[] = $pageContent; [ 3) lib_marc\trunk\pages\Page.php|55 col 73| $p = A::merge_ignore_null_array( U::collect('urlParameters', $this->pageContentObjects) ); ] 4) lib_marc\trunk\pages\XHTMLPage.php|21 col 21| foreach( $this->pageContentObjects as $pc){ 1) this is the declaration 2) another object is added. when commenting this line out there is no problem at all. [3) doesn't matter] 4) This is foreach loop is causing the trouble even if the loop has an empty body ( foreach (...) {} ) But I can run vardump on it and it shows the item having been added by 2) So how can this foreach loop make PHP causing a stack violation? Any ideas? You can get the full source code here: wget http://mawercer.de/marcweber/da.zip (I'll remove the link again in some days) I'm using PDO and mysql. The database configuration options can be found in config.php Everything should be done automatically. (It does create a class location cache to autoload them and it creates a file containing database metainformation to execute type safe data queries.(MPDO.php) If you like it keep and use it and drop me a mail telling so ;) Main entry point is index.php of course. You need to click on link "Kunden" or use http://localhost/<...>/index.php?page=Kunden to get this error. I did use PHP 5.2.2 and mod_php (apache) I didn't try cgi. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php