Re: Segmentation fault on an Intel based Mac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 21-Mar-07, at 00:23 , Sander Temme wrote:


On Mar 20, 2007, at 9:04 PM, Andre-John Mas wrote:

Hi,

I have just downloaded Apache 2.2.4, compiled it, installed it
and the tried running it. What I get when I call:

./apachectl start

is:

./apachectl: line 102: 12799 Segmentation fault      $HTTPD -k $ARGV

and if I call:

./httpd

directly, then I get:

Bus Error

Could you run

ulimit -c unlimited

before you start the server? It should dump core in /cores. Then, run

gdb httpd -core `ls -t /cores | head -1`

and when gdb has finished loading, execute the bt command (bt == backtrace). Send us the output of the bt command (#0 all the way through the line that says 'in main ()').

Followed the above instructions starting httpd with as 'httpd -k start' and
then ran gdb with the core (there was only one in the /cores folder):

ghostwalker:/Library/Apache2/bin root# gdb httpd -core /cores/core.3584
GNU gdb 6.1-20040303 (Apple version gdb-437) (Fri Jan 13 18:45:48 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ....... done

Core was generated by `./httpd'.
Core file contained no thread-specific data

(gdb) bt
#0  0x00000000 in _mh_dylib_header ()
(gdb)

./configure --enable-layout=ServLog --enable-mods-shared=all -- enable-dav --enable-cache --enable-shared --disable-static -- disable-unique-id --enable-ipv6 --with-included-apr

I think it's --with-layout=Something. Anyway, I don't think we have a layout called ServLog in config.layout. What are you trying to achieve there?

It was so the install path of Apache was in /Library/Apache2:

#   Classical Apache path layout.
<Layout ServLog>
    prefix:        /Library/Apache2
    exec_prefix:   ${prefix}
    bindir:        ${exec_prefix}/bin
    sbindir:       ${exec_prefix}/bin
    libdir:        ${exec_prefix}/lib
    libexecdir:    ${exec_prefix}/modules
    mandir:        ${prefix}/man
    sysconfdir:    ${prefix}/conf
    datadir:       ${prefix}
    installbuilddir: ${datadir}/build
    errordir:      ${datadir}/error
    iconsdir:      ${datadir}/icons
    htdocsdir:     ${datadir}/htdocs
    manualdir:     ${datadir}/manual
    cgidir:        ${datadir}/cgi-bin
    includedir:    ${prefix}/include
    localstatedir: ${prefix}
    runtimedir:    ${localstatedir}/logs
    logfiledir:    ${localstatedir}/logs
    proxycachedir: ${localstatedir}/proxy
</Layout>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux