I have migrated a user module mod_example from 1.3 to 2.4. But when I try to start the apache it is giving a segmentation fault and creating a core.
Following is the stacktrace while debug:
t@1 (l@1) signal SEGV (no mapping at the fault address) in strlen at 0xfefcceb8
0xfefcceb8: strlen+0x0018: ldub [%o2], %o1
Current function is apr_pstrdup
77 len = strlen(s) + 1;
(dbx) where
current thread: t@1
[1] strlen(0x1, 0xed568, 0x1, 0xed558, 0x1, 0x0), at 0xfefcceb8
=>[2] apr_pstrdup(a = 0xb8190, s = 0x1 "<bad address 0x00000001>"), line 77 in "apr_strings.c"
[3] ap_add_module_commands(m = 0xfebc80d8, p = <value unavailable>), line 546 in "config.c"
[4] ap_add_module(m = 0xfebc80d8, p = 0xb8190, sym_name = <value unavailable>), at 0x5db30
[5] ap_add_loaded_module(mod = 0xfebc80d8, p = 0xb8190, short_name = 0xed510 "example_module"), line 713 in "config.c"
[6] load_module(cmd = 0xffbfec90, dummy = <value unavailable>, modname = 0xed510 "example_module", filename = <value unavailable>), line 302 in "mod_so.c"
This is happening while loading a user module that I created:
LoadModule example_module modules/mod_example.so
Please provide your valuable insight into it so that I can go forward.