Apachectl Line 78 Bus Error
1 #1 2011-07-04 20:41:31 Markus00000 Member Registered: 2011-03-27 Posts: 302 [SOLVED] Cannot start httpd: Segmentation fault in apachectl I get this error when starting httpd:$ sudo apachectl segmentation fault /etc/rc.d/httpd start :: Starting Apache Web Server [BUSY] /usr/sbin/apachectl: line 84: 5805 the apache2 configtest failed ubuntu Segmentation fault $HTTPD -k $ARGV [FAIL]System (32-bit) is up to date. In a 64-bit installation using testing segmentation fault core dumped action start failed the apache error log may have more information repositories and identical (although not the same) config files, I don't get this error./usr/sbin/apachectl starting from line 79:ERROR=0 if [ "x$ARGV" = "x" ] ; then ARGV="-h" fi httpd segmentation fault case $ARGV in ##### THIS IS LINE 84 ##### start|stop|restart|graceful|graceful-stop) $HTTPD -k $ARGV ERROR=$? ;; startssl|sslstart|start-SSL) echo The startssl option is no longer supported. echo Please edit httpd.conf to include the SSL configuration settings echo and then use "apachectl start". ERROR=2 ;; configtest) $HTTPD -t ERROR=$? ;; status) $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' ;; fullstatus) $LYNX $STATUSURL ;; *) $HTTPD $ARGV ERROR=$? esac exit $ERRORCan anyone tell me what is going on here? Last edited by Markus00000 (2011-10-26 11:25:21) Offline #2 2011-07-04 22:21:47 karol Archivist Registered: 2009-05-06 Posts: 25,433 Re: [SOLVED] Cannot start httpd: Segmentation fault in apachectl https://bugs.archlinux.org/task/25008 Offline #3 2011-07-05 06:59:51 Markus00000 Member Registered: 2011-03-27 Posts: 302 Re: [SOLVED] Cannot start httpd: Segmentation fault in apachectl Exactly my issue. Thanks a lot, karol! Offline Pages: 1 Index »Networking, Server, and Protection »[SOLVED] Cannot start httpd: Segmentation fault in apachectl Board footer Jump to Newbie Corner Installation Kernel & Hardware Applications & Desktop Environments Laptop Issues Networking, Server, and Protection Multimedia and Games System Administration Other Architectures Announcements, Package & Security Advisories Arch Discussion Forum & Wiki discussion Pacman & Package Upgrade Issues [testing] Repo Forum Creating & Modifying Packages AUR Issues, Discussion & PKGBUILD Requests GNU/Linux Discussion Community Contributions Programming & Scripting Other Languages Artwork and Screenshots Atom topic feed Powered by FluxBB
20:24 UTC From: stevenf at panic dot com Assigned: Status: Not a bug Package: Apache2 related PHP Version: 5.3.0 OS: Mac OS X Server 10.5.7 Private report: No CVE-ID: View Add Comment Developer Edit [2009-07-06 17:37 UTC] stevenf at panic dot com Description: ------------ After compiling and installing PHP 5.3.0, Apache reports a bus error when I try to restart it: sporty:php-5.3.0 stevenf$ sudo /usr/local/apache2/bin/apachectl graceful /usr/local/apache2/bin/apachectl: line 78: 25030 Bus error $HTTPD -k $ARGV The problem goes away if I roll back to PHP 5.2.10. I have submitted the results of https://bbs.archlinux.org/viewtopic.php?id=122074 make test. Note that this is a PowerPC machine -- this has caused some PHP problems in the past. Uname info: Darwin sporty.panic.com 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:54:29 PDT 2009; root:xnu-1228.12.14~1/RELEASE_PPC Power Macintosh Config string: ./configure --with-openssl --with-apxs2=/usr/local/apache2/bin/apxs - -with-mysql- sock=/var/mysql --with-mysql=/usr --with-xmlrpc --enable-mbstring -- without-sqlite -- enable-sockets --with-curl --with-gd --with-jpeg-dir=/usr/local/lib -- with-png- dir=/usr/local/lib Apache info: Apache/2.2.10 (Unix) DAV/2 PHP/5.2.10 https://bugs.php.net/48822 mod_ssl/2.2.10 OpenSSL/0.9.7l Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2009-07-07 11:35 UTC] jani@php.net 1. Do you load any extensions in the php.ini used? Especially some 3rd party zend exts? 2. Remove /lib suffix from any configure option values. It's never needed 3. Backtrace..? [2009-07-07 16:52 UTC] stevenf at panic dot com 1. No, the php.ini only sets a few variables. 2. Good to know, thanks! 3. Can you point me to some instructions on how to get the backtrace in this situation? Would I have to, for example, run httpd within gdb? Further information: PHP 5.3.0 + Apache 2 works on one of our three Xserves, and produces this same bus error on the other two. CPU architecture does not seem to be a factor, as I earlier thought. I am still in the process of trying to figure out what might be different between the environments of the working and non-working machines. [2009-07-07 17:19 UTC] jani@php.net Is date.timezone set in your php.ini? What MPM is used in Apache? [2009-07-07 17:34 UTC] stevenf at panic dot com 1. Yes, we have this line in php.ini: date.timezon
enter a title. You can not post a blank message. Please type your message and try again. This discussion https://discussions.apple.com/thread/1174149?tstart=0 is locked jsartre Level 1 (0 points) Q: Apache crashing at start Hi,I am trying to start apache from System Preferences --> Sharing. Apache never starts https://issues.shibboleth.net/jira/browse/SSPCPP-307 and I get a crash report.Here it is:Oct 11 15:21:11 Yuss crashdump[290]: httpd crashedOct 11 15:21:11 Yuss crashdump[290]: crash report written to: /Library/Logs/CrashReporter/httpd.crash.logProcessing config directory: /private/etc/httpd/users/*.conf segmentation fault Processing config file: /private/etc/httpd/users/Pagico.conf[Thu Oct 11 15:22:10 2007] [warn] module mod_php5.c is already added, skipping Processing config file: /private/etc/httpd/users/josephsartre.conf/usr/sbin/apachectl: line 193: 310 Bus error $HTTPD/usr/sbin/apachectl start: httpd could not be startedOct 11 15:22:11 Yuss crashdump[311]: httpd crashedOct 11 15:22:12 Yuss crashdump[311]: crash report written to: /Library/Logs/CrashReporter/httpd.crash.logIf you need the httpd.crash.log I will apachectl line 78 post it.Thanks for your help. Black Macbook, Mac OS X (10.4.10) Posted on Oct 11, 2007 7:28 AM I have this question too by BDAqua,Solvedanswer BDAqua Level 10 (123,720 points) A: greart, thanks too, see if one of these help with php...http://developer.apple.com/internet/opensource/php.htmlhttp://www.phpmac.com/articles.php?view=225 Posted on Oct 12, 2007 10:00 AM See the answer in context Close Q: Apache crashing at start All replies Helpful answers by jsartre, jsartre Oct 11, 2007 7:28 AM in response to jsartre Level 1 (0 points) Oct 11, 2007 7:28 AM in response to jsartre Here is the crash report:===== jeudi 11 octobre 2007 15 h 21 Europe/London =====********Host Name: YussDate/Time: 2007-10-11 15:22:10.706 +0100OS Version: 10.4.10 (Build 8R2218)Report Version: 4Command: httpdPath: /usr/sbin/httpdParent: sh [309]Version: ??? (???)PID: 310Thread: 0Exception: EXCBADACCESS (0x0001)Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000004Thread 0 Crashed:0 libphp4.so 0x0112c7b6 zendhash_add_orupdate + 3661 libphp4.so 0x01131ce5 zendregister_inientries + 822 mysql 0x000f3c56 zmstartupmysql + 333 libphp5.so 0x023d509c zendstartup_moduleex + 4034 libphp5.so 0x023db706 zendhashapply +
Type: Bug Status: Closed Priority: Minor Resolution: Won't Fix Affects Version/s: 2.3 Fix Version/s: None Component/s: Logging Labels: None Environment: FreeBSD kottke.kinetic.more.net 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #0: Mon Jul 12 19:23:19 UTC 2010 Apache/2.2.16 (FreeBSD) worker MPM shibboleth-sp-2.3.1, log4shib 1.0.4 Operating System: BSD CPU Type: x86_64 C/C++ Compiler: GCC 4.x Web Server: Multiple Description After the third or fourth apache graceful, new apache processes start failing with signal 10, bus error. Downgrading log4shib from 1.0.4 to 1.0.2 fixes the problem. Here is a backtrace: #0 0x0000000805b0cbcf in __cxa_allocate_exception () from /usr/lib/libstdc++.so.6 #1 0x00000008053e9244 in log4shib::RollingFileAppender::rollOver () from /usr/local/lib/liblog4shib.so.1 #2 0x0000000000000018 in ?? () #3 0x00007ffffffed910 in ?? () #4 0x00007ffffffedea8 in ?? () #5 0x00007ffffffedea0 in ?? () #6 0x000000081478e9a0 in ?? () #7 0x00000008147d1da8 in ?? () #8 0x00007ffffffed970 in ?? () #9 0x00007ffffffed910 in ?? () #10 0x00000008053e7832 in std::_Rb_tree