URGENT: Apache HTTP Migration from 1.3 to 2.4 UNIX Solaris

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

 



Dear All,

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.
Installed binaries:
Apache 2.4.34
apr-1.6.5
apr-util-1.6.1
pcre-8.40
expat-2.1.0

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"
  [7] invoke_cmd(cmd = 0x8fce4, parms = 0xffbfec90, mconfig = 0xffbfeb94, args = <value unavailable>), line 938 in "config.c"
  [8] execute_now(cmd_line = <value unavailable>, args = <value unavailable>, parms = <value unavailable>, p = <value unavailable>, ptemp = 0xffbfec90, sub_tree = 0xe35a3, parent = 0xe3d28) (inlined), at 0x5e2c4
  [9] ap_build_config_sub(p = <value unavailable>, temp_pool = <value unavailable>, l = <value unavailable>, parms = 0xed5a8, current = 0xebef8, curr_parent = (nil), conftree = 0xa9624), line 1167 in "config.c"

Following is the pstack of core:

quartz: /usr/local/apache2/logs > pstack core
core 'core' of 29092:   /usr/local/apache2/bin/httpd -k start
 fefcceb8 strlen   (b8190, 1, b8190, ed5a8, ebef8, 0) + 18
 0005ca54 ap_add_module_commands (febd8078, a95d8, b8190, ed568, ed598, febd8164) + 6c
 0005db30 ap_add_module (64, b8190, ed510, dc208, febc75a5, febd8078) + 154
 0005dd18 ap_add_loaded_module (febd8078, b8190, ed510, 7, 41503234, febd8078) + 10
 0006f31c load_module (ffbfec60, 8fad8, ed510, febd8078, e09c8, 0) + 2b4
 0005c8c0 invoke_cmd (8fce4, ffbfec60, ffbfeb64, e35a3, e3d28, ed510) + 924
 0005e2c4 ap_build_config_sub (e35a3, e3d28, ddbe8, ffbfec60, ffbfebd4, ffbfebd8) + 200
 0005e90c ap_build_config (ffbfec60, b8190, e3488, a9624, 0, ffbfec60) + c0
 0005f000 ap_process_resource_config (e01a8, e63b0, a9624, b8190, e3488, 0) + 78
 000600b0 ap_read_config (0, e3488, 830b8, a9624, e01a8, 0) + 24c
 00081fac main     (b8190, a9400, a9400, a8c00, a9400, b6218) + 624
 000382fc _start   (0, 0, 0, 0, 0, 0) + 5c

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.

Thanks & Regards
Ankit Singhal

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


[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