Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18531 invoked by uid 1010); 16 Jun 2004 21:49:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18475 invoked from network); 16 Jun 2004 21:49:23 -0000 Received: from unknown (HELO secret.deadmime.org) (69.55.224.147) by pb1.pair.com with SMTP; 16 Jun 2004 21:49:23 -0000 Received: from secret.deadmime.org (secret.deadmime.org [69.55.224.147] (may be forged)) by secret.deadmime.org (8.12.11/8.12.11) with ESMTP id i5GLnMeE029269 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 16 Jun 2004 14:49:22 -0700 (PDT) (envelope-from dank@deadmime.org) Received: from localhost (dank@localhost) by secret.deadmime.org (8.12.11/8.12.11/Submit) with ESMTP id i5GLnMJt029266; Wed, 16 Jun 2004 14:49:22 -0700 (PDT) (envelope-from dank@deadmime.org) X-Authentication-Warning: secret.deadmime.org: dank owned process doing -bs Date: Wed, 16 Jun 2004 14:49:22 -0700 (PDT) To: OpenMacNews cc: php-internals In-Reply-To: Message-ID: <20040616144748.S26824@secret.deadmime.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, hits=0.0 required=7.5 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on secret.deadmime.org Subject: Re: [PHP-DEV] "Segmentation fault" w/ php5.0.0rc3 on macosx10.3.4 From: dank@deadmime.org (Dan Kalowsky) A good start would be to move away from a completely developer environment like you're using. I'd suggest either working with PHP5 or Apache2-dev, but not both at the same time. That should help you narrow things down a bit more. In reality, I'd narrow to Apache1 as well if you're trying to debug some bit of code in PHP. On Wed, 16 Jun 2004, OpenMacNews wrote: > hi all, > > i'd posted this on the phpgacl list, and a kind soul there suggested to try > here ... > > i'm looking for any/help help in starting to debug this. > > thx, > > richard > >>> Segfault, so I'm assuming its a PHP5 issue. I haven't actually tested >>> phpGACL on PHP5 yet, but in theory it should work, as PHP5 is backwards >>> compatible. >>> >>> I would try submitting this to the PHP5 lists, see if they can help >>> debug it. > >> hi, >> >> i'm trying to setup phpgacl-3.3.1 with *existing* instances of Smarty (cvs >> head) & ADODB422 on >> MacOSX 10.3.4. >> Apache/2.1.0-dev (cvs head) >> Perl v5.8.4 >> postgreSQL v7.4.2 >> php 5.0.0RC3 + Turck-mmcache (cvs head) >> >> everything works great pre-phpgacl ... >> >> i've made changes to phpgacl files, per "Advanced Setup", to ADODB_DIR, >> smarty_dir, etc. >> >> upon pgpgacl setup >> , i get: >> >> Configuration: >> driver = postgres7, >> host = testdomain.internal.com, >> user = authuser, >> database = auth_db, >> table prefix = gacl_ >> >> Testing database connection... >> Success! Connected to "postgres7" database on >> "testdomain.internal.com". >> >> >> Testing database type... >> Success! Compatible database type "postgres7" detected! >> Making sure database "auth_db" exists... >> Success! Good, database "auth_db" already exists! >> Success! Installation Successful!!! >> >> *IMPORTANT* >> Please make sure you create the /admin/templates_c >> directory, and give it write permissions for the user your web server runs >> as. >> >> Please read the manual, and example.php to familiarize yourself with >> phpGACL. >> >> Let's get started! >> >> after ensuring write permission are all ok, when i subsequently click on >> the "Let's get started" link --> >> >> >> I get a browser error of: >> >> Safari can't open the page >> "http://testdomain.internal.com/admin/phpgacl/admin/about.php" >> because it could not load data from this location. >> >> checking apache's error log, i find that one of my server thread dies >> with: >> >> [Wed Jun 16 11:55:26 2004] [notice] child pid 2663 exit signal >> Segmentation fault (11) >> >> not really informative for me ... any suggestion/help as to where to BEGIN >> to start debugging this? yes, i know, i've a lot of "variables" in my sety >> :S >> >> thanks, >> >> richard >> >> fwiw, apache/server-info shows: >> >> Server Version: Apache/2.1.0-dev (Unix) mod_perl/1.99_15-dev >> Perl/v5.8.4 DAV/2 PHP/5.0.0RC3 mod_auth_pgsql/2.0.2b1 >> Server Built: Jun 9 2004 18:37:10 >> API Version: 20040425:1 >> Hostname/port: testdomain.internal.com:80 >> Timeouts: connection: 300 keep-alive: 300 >> MPM Name: Worker >> MPM Information: Max Daemons: 1 Threaded: yes Forked: yes >> and php -i shows: >> >> PHP Version => 5.0.0RC3 >> >> System => Darwin testdomain.internal.com 7.4.0 Darwin Kernel Version >> 7.4.0: Wed May 12 16:58:24 PDT 2004; >> root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh >> Build Date => Jun 10 2004 00:44:23 >> Configure Command => './configure' '--disable-debug' '--prefix=/usr' >> '--with-layout=PHP' '--with-config-file-path=/etc/php5' >> '--sysconfdir=/etc/php5' '--enable-shared' '--disable-static' >> '--libdir=/System/Library/PHP' '--includedir=/usr/include' >> '--mandir=/usr/local/man' '--localstatedir=/var/php4' '--with-db4=/usr' >> '--with-pgsql=/usr/local/pgsql' '--without-mysql' '--enable-cli' >> '--with-pear=/System/Library/PHP' '--disable-cgi' >> '--with-apxs2=/usr/sbin/apxs' '--disable-dmalloc' >> '--with-tsrm-pthreads' '--enable-shmop' '--enable-sockets' >> '--enable-inline-optimization' '--enable-xml' '--enable-libxml' >> '--with-libxml-dir=/usr' '--with-java=/Library/Java/Home' >> '--with-openssl=/usr/local/ssl' '--with-openssl-dir=/usr/local/ssl' >> '--with-zlib' '--with-zlib-dir=/usr' '--with-imap=/usr/local/imap' >> '--enable-mailparse' '--with-imap-ssl=/usr/local/ssl' '--with-mcrypt' >> '--with-mhash' '--with-gmp=/usr/local' '--with-curl=/usr' >> '--with-gd=/usr/local/gd' '--with-png-dir=/usr/local' >> '--with-jpeg-dir=/usr/local' '--with-tiff-dir=/usr/local' >> '--enable-magic-quotes' '--enable-calendar' '--with-kerberos=/usr' >> '--with-freetype-dir=/usr/X11R6' '--with-xpm-dir=/usr/X11R6' >> '--enable-exif' '--enable-mbstring' '--enable-ftp' '--enable-bcmath' >> Server API => Command Line Interface >> Virtual Directory Support => enabled >> Configuration File (php.ini) Path => /etc/php5/php.ini >> PHP API => 20031224 >> PHP Extension => 20040412 >> Zend Extension => 220040412 >> Debug Build => no >> Thread Safety => enabled >> IPv6 Support => enabled >> Registered PHP Streams => php, file, http, ftp, compress.zlib, https, >> ftps >> Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls >> This program makes use of the Zend Scripting Language Engine: >> Zend Engine v2.0.0RC3, Copyright (c) 1998-2004 Zend Technologies >> with Turck MMCache v2.4.7-CVS, Copyright (c) 2002-2003 >> TurckSoft, St. Petersburg, by Dmitry Stogov >> > > >---------------------------------------------------------------< Dan Kalowsky "I thought you died alone, http://www.deadmime.org/~dank a long long time ago." dank-nom@aps-deadmime.org - "The Man Who Sold the World" kalowsky@php.net David Bowie