Mailing List Archive

apachectl not starting (std::length_error)
Hi all,
I am getting below error when starting apache webserver using apachectl

./apachectl -k start
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::assign
./apachectl: line 79: 95216 Aborted (core dumped) $HTTPD "$@"

Does anyone have any idea what's causing this issue
Re: apachectl not starting (std::length_error) [ In reply to ]
Probably something on line 79 in the apachectl file

On Thu, Nov 11, 2021 at 4:52 PM Prasanth Kodakandla <
prasanth.kodakandla@gmail.com> wrote:

> Hi all,
> I am getting below error when starting apache webserver using apachectl
>
> ./apachectl -k start
> terminate called after throwing an instance of 'std::length_error'
> what(): basic_string::assign
> ./apachectl: line 79: 95216 Aborted (core dumped) $HTTPD "$@"
>
> Does anyone have any idea what's causing this issue
>
Re: apachectl not starting (std::length_error) [ In reply to ]
This is what i see in apacgectl

74 if [ "x$ARGV" = "x" ] ; then
75 ARGV="-h"
76 fi
77
78 case $ARGV in
79 start|stop|restart|graceful|graceful-stop)
80 $HTTPD -k $ARGV
81 ERROR=$?
82 ;;
83 startssl|sslstart|start-SSL)
84 echo The startssl option is no longer supported.
85 echo Please edit httpd.conf to include the SSL configuration settings
86 echo and then use "apachectl start".
87 ERROR=2
88 ;;


On Thu, Nov 11, 2021 at 6:01 PM Nick Folino <nick@folino.us> wrote:

> Probably something on line 79 in the apachectl file
>
> On Thu, Nov 11, 2021 at 4:52 PM Prasanth Kodakandla <
> prasanth.kodakandla@gmail.com> wrote:
>
>> Hi all,
>> I am getting below error when starting apache webserver using apachectl
>>
>> ./apachectl -k start
>> terminate called after throwing an instance of 'std::length_error'
>> what(): basic_string::assign
>> ./apachectl: line 79: 95216 Aborted (core dumped) $HTTPD "$@"
>>
>> Does anyone have any idea what's causing this issue
>>
>
Re: apachectl not starting (std::length_error) [ In reply to ]
You'll need to provide a lot more information about your setup. OS?
Apache version, configuration, modules...

On Thu, Nov 11, 2021 at 7:05 PM Prasanth Kodakandla <
prasanth.kodakandla@gmail.com> wrote:

> This is what i see in apacgectl
>
> 74 if [ "x$ARGV" = "x" ] ; then
> 75 ARGV="-h"
> 76 fi
> 77
> 78 case $ARGV in
> 79 start|stop|restart|graceful|graceful-stop)
> 80 $HTTPD -k $ARGV
> 81 ERROR=$?
> 82 ;;
> 83 startssl|sslstart|start-SSL)
> 84 echo The startssl option is no longer supported.
> 85 echo Please edit httpd.conf to include the SSL configuration settings
> 86 echo and then use "apachectl start".
> 87 ERROR=2
> 88 ;;
>
>
> On Thu, Nov 11, 2021 at 6:01 PM Nick Folino <nick@folino.us> wrote:
>
>> Probably something on line 79 in the apachectl file
>>
>> On Thu, Nov 11, 2021 at 4:52 PM Prasanth Kodakandla <
>> prasanth.kodakandla@gmail.com> wrote:
>>
>>> Hi all,
>>> I am getting below error when starting apache webserver using apachectl
>>>
>>> ./apachectl -k start
>>> terminate called after throwing an instance of 'std::length_error'
>>> what(): basic_string::assign
>>> ./apachectl: line 79: 95216 Aborted (core dumped) $HTTPD "$@"
>>>
>>> Does anyone have any idea what's causing this issue
>>>
>>
Re: apachectl not starting (std::length_error) [ In reply to ]
OS RHEL 7.X
Apache version 2.4.52
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_event_module (static)
sm_module (shared)
authn_file_module (shared)
authn_core_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_core_module (shared)
access_compat_module (shared)
auth_basic_module (shared)
reqtimeout_module (shared)
filter_module (shared)
mime_module (shared)
log_config_module (shared)
env_module (shared)
headers_module (shared)
setenvif_module (shared)
version_module (shared)
unixd_module (shared)
status_module (shared)
autoindex_module (shared)
dir_module (shared)
alias_module (shared)
watchdog_module (shared)
slotmem_shm_module (shared)
proxy_module (shared)
lbmethod_bybusyness_module (shared)
lbmethod_byrequests_module (shared)
lbmethod_bytraffic_module (shared)
lbmethod_heartbeat_module (shared)
proxy_ajp_module (shared)
proxy_balancer_module (shared)
proxy_connect_module (shared)
proxy_express_module (shared)
proxy_fcgi_module (shared)
proxy_fdpass_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_scgi_module (shared)
proxy_wstunnel_module (shared)
rewrite_module (shared)
oneagent_module (shared)


Let me know if you need any other info


On Thu, Nov 11, 2021 at 6:09 PM Nick Folino <nick@folino.us> wrote:

> You'll need to provide a lot more information about your setup. OS?
> Apache version, configuration, modules...
>
> On Thu, Nov 11, 2021 at 7:05 PM Prasanth Kodakandla <
> prasanth.kodakandla@gmail.com> wrote:
>
>> This is what i see in apacgectl
>>
>> 74 if [ "x$ARGV" = "x" ] ; then
>> 75 ARGV="-h"
>> 76 fi
>> 77
>> 78 case $ARGV in
>> 79 start|stop|restart|graceful|graceful-stop)
>> 80 $HTTPD -k $ARGV
>> 81 ERROR=$?
>> 82 ;;
>> 83 startssl|sslstart|start-SSL)
>> 84 echo The startssl option is no longer supported.
>> 85 echo Please edit httpd.conf to include the SSL configuration settings
>> 86 echo and then use "apachectl start".
>> 87 ERROR=2
>> 88 ;;
>>
>>
>> On Thu, Nov 11, 2021 at 6:01 PM Nick Folino <nick@folino.us> wrote:
>>
>>> Probably something on line 79 in the apachectl file
>>>
>>> On Thu, Nov 11, 2021 at 4:52 PM Prasanth Kodakandla <
>>> prasanth.kodakandla@gmail.com> wrote:
>>>
>>>> Hi all,
>>>> I am getting below error when starting apache webserver using apachectl
>>>>
>>>> ./apachectl -k start
>>>> terminate called after throwing an instance of 'std::length_error'
>>>> what(): basic_string::assign
>>>> ./apachectl: line 79: 95216 Aborted (core dumped) $HTTPD "$@"
>>>>
>>>> Does anyone have any idea what's causing this issue
>>>>
>>>
Re: apachectl not starting (std::length_error) [ In reply to ]
> oneagent_module (shared)

99% chance it's this. The error is a libstdc++ thing and none of
Apaches modules use C++.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org