Apache crash at startup with Webagent 12.51CR07 and 12.52SP1CR04

Document ID : KB000006863
Last Modified Date : 14/02/2018
Show Technical Document Details

Occasionally (only sometimes with no real pattern) Apache fails to start when the Web Agent is enabled.

If the Web Agent is not enabled, the Apache Web Server is always able to start without a problem.

When Apache crashes it creates a core dump.

We can see the above stack trace :

Thread 1 (Thread 0x7f0b35f64700 (LWP 1714510)):

#0 0x0000003324832925 in raise () from /lib64/libc.so.6

#1 0x0000003324834105 in abort () from /lib64/libc.so.6

#2 0x00000039724bea5d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6

#3 0x00000039724bcbe6 in ?? () from /usr/lib64/libstdc++.so.6

#4 0x00000039724bcc13 in std::terminate() () from /usr/lib64/libstdc++.so.6

#5 0x00000039724bcd0e in __cxa_throw () from /usr/lib64/libstdc++.so.6

#6 0x0000003972461e87 in std::__throw_length_error(char const*) () from /usr/lib64/libstdc++.so.6

#7 0x000000397249e09a in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long) () from /usr/lib64/libstdc++.so.6

#8 0x00007f0b30e81c10 in checkdir(char const*, char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) () from /app/JR1/r1251wa/webagent/bin/libSmXlate.so

#9 0x00007f0b30e81d74 in GetXlateRoot(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) () from /app/JR1/r1251wa/webagent/bin/libSmXlate.so

#10 0x00007f0b30e82340 in InitializeLocales() () from /app/JR1/r1251wa/webagent/bin/libSmXlate.so

#11 0x00007f0b30e83526 in __static_initialization_and_destruction_0 () from /app/JR1/r1251wa/webagent/bin/libSmXlate.so

#12 0x00007f0b30e83615 in global constructors keyed to g_root () from /app/JR1/r1251wa/webagent/bin/libSmXlate.so

#13 0x00007f0b30e90a96 in __do_global_ctors_aux () from /app/JR1/r1251wa/webagent/bin/libSmXlate.so

#14 0x00007f0b30e73083 in _init () from /app/JR1/r1251wa/webagent/bin/libSmXlate.so

#15 0x0000003300000000 in ?? ()

#16 0x000000332440e555 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2

#17 0x0000003324412cb5 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2

#18 0x000000332440e1b6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2

#19 0x00000033244124fa in _dl_open () from /lib64/ld-linux-x86-64.so.2

#20 0x0000003324c00f66 in dlopen_doit () from /lib64/libdl.so.2

#21 0x000000332440e1b6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2

#22 0x0000003324c0129c in _dlerror_run () from /lib64/libdl.so.2

#23 0x0000003324c00ee1 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2

#24 0x00007f0b35f9033e in apr_dso_load () from /opt/apache24/lib/libapr-1.so.0

#25 0x000000000046a57c in dso_load ()

#26 0x000000000046a8d2 in load_module ()

#27 0x0000000000454215 in invoke_cmd ()

#28 0x0000000000455f97 in execute_now ()

#29 0x0000000000454edf in ap_build_config_sub ()

#30 0x0000000000455723 in ap_build_config ()

#31 0x000000000045646a in ap_process_resource_config ()

#32 0x0000000000457ca8 in ap_read_config ()

#33 0x00000000004293f0 in main ()

(gdb) -------END APPLY ALL THREADS-------

Apache agent 12.51CR07 or below on linux Apache agent 12.52SP1CR04 or below linux

There was a missing check in the code when trying to determine the path to the .properties file that contains the messages. 

The function checkdir() had no check for the length of the string, and when the lenght is zero, the code tries to access memory outside the array bounds.



Upgrade your Web Agent to 12.51CR08 or 12.52SP1CR05


Additional Information:

Release note for 12.51SP1CR08



Apache Web Server Fails to Start

Apache Web Server fails to start and determine the path to the .properties file when Web Agent is enabled.

SALESFORCE Case Number:00093050

Rally Issue: DE74795


Release note for 12.52SP1CR05




0009305 DE109479  Apache webserver fails to start and determine the path to the .properties file when web agent is enabled.