Category Archives: arm

Segmentation Fault error on Apache Httpd

While trying to configure an SSL enabled Apache HTTPD Server in ARM Linux, (Kernel 3.2.0) I am getting the below error. The same build is working fine in a Kernel 3.2.5+. How do I sort this out? Do I have to go for Kernel 3.2.5+?

[mpm_event:notice] [pid 1465:tid 1074360320] AH00489: Apache/2.4.3 (Unix) OpenSSL/1.0.0g configured -- resuming normal operations

[core:notice] [pid 1465:tid 1074360320] AH00094: Command line: '/usr/local/apache2/bin/httpd'

[core:notice] [pid 1465:tid 1074360320] AH00052: child pid 4093 exit signal Segmentation fault (11)

[core:notice] [pid 1465:tid 1074360320] AH00052: child pid 4094 exit signal Segmentation fault (11)

[core:notice] [pid 1465:tid 1074360320] AH00052: child pid 4095 exit signal Segmentation fault (11)

[core:notice] [pid 1465:tid 1074360320] AH00052: child pid 4178 exit signal Segmentation fault (11)

[mpm_event:notice] [pid 1465:tid 1074360320] AH00494: SIGHUP received.  Attempting to restart

AH00557: httpd: apr_sockaddr_info_get() failed for beaglebone

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message

[mpm_event:notice] [pid 1465:tid 1074360320] AH00489: Apache/2.4.3 (Unix) OpenSSL/1.0.0g configured -- resuming normal operations

[core:notice] [pid 1465:tid 1074360320] AH00094: Command line: '/usr/local/apache2/bin/httpd'

[core:notice] [pid 1465:tid 1074360320] AH00052: child pid 4390 exit signal Segmentation fault (11)

Can’t get Mono to work with Apache

I'm trying to display .Net websites with my Home Server using Apache and Mono. I've been trying for a week but always ended up in the folder hierarchy. After trying a little bit I finally got Apache to show atleast this error site:

Application Exception System.Xml.XmlException Document element did not appear. Line 1, position 1.

Description: HTTP 400.Error processing request. Details: Non-web exception. Exception origin (name of application or object): System.Xml. Exception stack trace:

    at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, Boolean fweb) [0x00000] in <filename unknown>:0 

So, what's wrong with my Apache/Mono?

Btw. I'm running the server on Arch Linux on a Banana Pi (Allwinner A20 ARM CPU)

apache2 cross-build failed for arm

On cross-building apache2 2.4.12 I get the following Error during complitation:

    ptxdist/platform/build-target/httpd-2.4.12/modules/mappers  -prefer-non-pic -static -c exports.c && touch exports.lo
    exports.c:4117:55: error: 'apr_hash_this_key' undeclared here (not in a function)
    exports.c:4121:59: error: 'apr_hash_this_key_len' undeclared here (not in a function)
    exports.c:4125:55: error: 'apr_hash_this_val' undeclared here (not in a function)
    exports.c:4568:62: error: 'apr_sockaddr_is_wildcard' undeclared here (not in a function)
    exports.c:5307:55: error: 'apr_shm_create_ex' undeclared here (not in a function)
    exports.c:5323:55: error: 'apr_shm_attach_ex' undeclared here (not in a function)

It seems that there is a dirty hack that generate httpd-2.4.12/server/exports.c during compile time from file make_exports.awk

How do I adjust this make_exports.awk file to get a working cross-build for arm?