You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Anton Osennikov <an...@perm.ru> on 2015/09/03 11:19:56 UTC

Internal error and signal Aborted with Apache 2.4

Hello!

I'm running a dozen of Tcl applications inside Apache with mod_rivet for 
several years.

Recently I've upgraded. Now

Debian is release 8 jessie
Apache is Apache/2.4.10 (Debian)
Tcl is ActiveTcl 8.6.4
Rivet is SVN Rivet/2.3.0

Every application is running in it's own virtual host and it's own child 
interpreter. Theese child interpreters are created by my custom init script

RivetServerConf ChildInitScript "source /etc/apache2/rivet-childinit.tcl"

# RivetServerConf SeparateVirtualInterps no


I'm running apache with LogLevel debug.

Now two kind of error messages appear in apache's error.log.

First:

[Thu Sep 03 13:44:47.316904 2015] [:debug] [pid 6558] 
mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet: 
Running prefork bridge finalize method
[Thu Sep 03 13:44:47.316923 2015] [:debug] [pid 6558] 
mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18 
vhosts)

Theese messages are repeated about every 20 seconds. I belive pefromance 
is degraded now since apache child processes die often after processing 
zero requests. Child processes are supposed to keep persistent database 
connections in my applications.

Am I wrong about perfomance degradation?

Second message kind appears only if I enable single one of my dozen of 
applications:

Tcl_AppendStringsToObj called with shared object
[Thu Sep 03 13:46:12.423202 2015] [core:notice] [pid 30351] AH00051: 
child pid 6017 exit signal Aborted (6), possible coredump in /tmp

This message goes away if I disable virtual host for this one 
application. When this special application is enabled "signal Aborted" 
hits this application AND other applications too. Confirmed it looking 
and PIDs of apache children processing application requests.

I've tried to identify special application features that cause the 
errors, but without success :( Of course, this application runs without 
problems with older versions of Apache, Tcl and Rivet.

How to find the reason for "signal Aborted"? Please, help!

-- 
Best regards, Anton.


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Massimo Manghi <ma...@unipr.it>.
Hi Anton

On 09/05/2015 10:43 AM, Anton Osennikov wrote:
> Hi Massimo!
>
> Messages repeated too often due to non-default value of MaxSpareServers.
> For instance, setting MaxSpareServers as high as MaxRequestWorkers
> totally eliminated "Running prefork bridge finalize method.." messages,
> as expected.
>

you probably don't need to set MaxSpareServers to MaxRequestWorkers if 
the latter is large or you will have too many idle processes when the 
workload is low. But nice guess anyway

  -- Massimo

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Anton Osennikov <an...@perm.ru>.
Hi Massimo!

04.09.2015 2:10, Massimo Manghi пишет:

>> Running prefork bridge finalize method
>> [Thu Sep 03 13:44:47.316923 2015] [:debug] [pid 6558]
>> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
>> vhosts)
>>
>
> This is red herring. The message severity is wrong, it's just a warning
> meant to debug the module status but they shouldn't repeat very often

Messages repeated too often due to non-default value of MaxSpareServers. 
For instance, setting MaxSpareServers as high as MaxRequestWorkers 
totally eliminated "Running prefork bridge finalize method.." messages, 
as expected.

-- 
Best regards, Anton.


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Massimo Manghi <ma...@unipr.it>.
Great! It seems to me that destructors make sense if they are public 
because you can have private methods in a class but not private classes. 
So I think there are reason for Arnulf for pondering about that.

As a side annotation. Since you are testing the code in trunk I would 
like to ask you if you tested mod_rivet also with the worker MPM.

regards

  -- Massimo


On 09/05/2015 03:42 PM, Anton Osennikov wrote:
> Hi Massimo
>
> 05.09.2015 18:07, Massimo Manghi пишет:
>
>> Arnulf Wiedemann who is the person behind Itcl. He might be interested
>> to know how you package nemoweb managed to let the Itcl naming scheme
>> stumble...
>
> It's a bit funny.. Several destructors was defined with option
> "protected", without any practical reason for this.
>
> Inside master interpreter attempt to delete object of such class causes
> regular error message. But inside slave interpreter it causes signal
> Aborted.
>
> Demo:
>
> $ cat itcl4-protected-destructor.tcl
> puts "Itcl protected destructor effects.."
> puts "Tcl [info patchlevel]"
> interp create slave
> slave eval {
>    puts "Itcl [package require Itcl]"
>    itcl::class A {protected destructor {}}
>    A ::b
>    puts "-- itcl::delete object --"
>    catch {itcl::delete object ::b} res
>    puts $res
>    A ::c
> }
> puts "-- namespace delete :: --"
> namespace delete ::
>
> $ tclsh itcl4-protected-destructor.tcl
> Itcl protected destructor effects..
> Tcl 8.6.4
> Itcl 4.0.3
> -- itcl::delete object --
> bad option "destructor": should be one of...
>    b cget -option
>    b configure ?-option? ?value -option value...?
>    b isa className
> -- namespace delete :: --
> Tcl_AppendStringsToObj called with shared object
> Aborted
>
>> If you can figure this out you may open a ticket on that with core.tcl.tk
> OK.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Anton Osennikov <an...@perm.ru>.
Hi Massimo

05.09.2015 18:07, Massimo Manghi пишет:

> Arnulf Wiedemann who is the person behind Itcl. He might be interested
> to know how you package nemoweb managed to let the Itcl naming scheme
> stumble...

It's a bit funny.. Several destructors was defined with option 
"protected", without any practical reason for this.

Inside master interpreter attempt to delete object of such class causes 
regular error message. But inside slave interpreter it causes signal 
Aborted.

Demo:

$ cat itcl4-protected-destructor.tcl
puts "Itcl protected destructor effects.."
puts "Tcl [info patchlevel]"
interp create slave
slave eval {
   puts "Itcl [package require Itcl]"
   itcl::class A {protected destructor {}}
   A ::b
   puts "-- itcl::delete object --"
   catch {itcl::delete object ::b} res
   puts $res
   A ::c
}
puts "-- namespace delete :: --"
namespace delete ::

$ tclsh itcl4-protected-destructor.tcl
Itcl protected destructor effects..
Tcl 8.6.4
Itcl 4.0.3
-- itcl::delete object --
bad option "destructor": should be one of...
   b cget -option
   b configure ?-option? ?value -option value...?
   b isa className
-- namespace delete :: --
Tcl_AppendStringsToObj called with shared object
Aborted

> If you can figure this out you may open a ticket on that with core.tcl.tk
OK.

-- 
Best regards, Anton.


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Massimo Manghi <ma...@unipr.it>.
Hi Anton

On 09/05/2015 08:32 AM, Anton Osennikov wrote:
> Hi Massimo!
>
>  > 04.09.2015 19:38, Massimo Manghi пишет:
>  > #2 backtrace seems to hint to a problem with Itcl.
>
> You are absolutely right. Just load my app inside plain tclsh8.6, then
> delete and voila.
>
> # tclsh8.6
> % lappend auto_path /usr/local/lib/nemo
> /usr/local/lib /opt/ActiveTcl-8.6/lib/tcl8.6 /opt/ActiveTcl-8.6/lib
> /opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib
> /opt/ActiveTcl-8.6/lib/teapot/package/tcl/lib /usr/local/lib/nemo
> % package require nemoweb
> 2.6b1
> % namespace delete ::
> Tcl_AppendStringsToObj called with shared object
> Aborted
>
> Thank you!
>

Very good demostration. But I wonder why the error message wasn't caught 
and passed to the apache logging facility likewise to other Tcl errors.

I'm afraid your work isn't finished yet, the problem might be the 
symptom of a more serious bug with Itcl. On this list we used to have 
Arnulf Wiedemann who is the person behind Itcl. He might be interested 
to know how you package nemoweb managed to let the Itcl naming scheme 
stumble...
If you can figure this out you may open a ticket on that with core.tcl.tk

regards


  -- Massimo

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Anton Osennikov <an...@perm.ru>.
Hi Massimo!

 > 04.09.2015 19:38, Massimo Manghi пишет:
 > #2 backtrace seems to hint to a problem with Itcl.

You are absolutely right. Just load my app inside plain tclsh8.6, then 
delete and voila.

# tclsh8.6
% lappend auto_path /usr/local/lib/nemo
/usr/local/lib /opt/ActiveTcl-8.6/lib/tcl8.6 /opt/ActiveTcl-8.6/lib 
/opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib 
/opt/ActiveTcl-8.6/lib/teapot/package/tcl/lib /usr/local/lib/nemo
% package require nemoweb
2.6b1
% namespace delete ::
Tcl_AppendStringsToObj called with shared object
Aborted

Thank you!

-- 
Best regards, Anton.


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Massimo Manghi <mx...@apache.org>.
Hi Anton

I'm clueless about #1 because I don't see any mod_rivet function

#2 backtrace seems to hint to a problem with Itcl. There is problem 
reconstructing the internal name of a method (ItclMapMethodNameProc) and 
this in turn is triggered by a Tcl_DeleteCommandFromToken. Is this 
backtrace matched in the log file by the message about the shared Tcl 
object? If my hypothesis is correct I gather there is some package 
creating Itcl commands whose deletion is triggered when the interpreter 
is deleted by mod_rivet (Rivet_ProcessorCleanup) but the process fails 
for an internal error.

  -- Massimo

On 09/04/2015 12:37 PM, Anton Osennikov wrote:
>
> Here's #2:
>
> (gdb) bt
> #0  0x00007fa43ebef107 in __GI_raise (sig=sig@entry=6) at
> ../nptl/sysdeps/unix/sysv/linux/raise.c:56
> #1  0x00007fa43ebf04e8 in __GI_abort () at abort.c:89
> #2  0x00007fa43a25f11e in Tcl_PanicVA () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #3  0x00007fa43a25f1ad in Tcl_Panic () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #4  0x00007fa43a2716a6 in Tcl_AppendStringsToObjVA () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #5  0x00007fa43a27177d in Tcl_AppendStringsToObj () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #6  0x00007fa43713d2fa in ItclMapMethodNameProc () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #7  0x00007fa43a29c851 in TclOOObjectCmdCore () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #8  0x00007fa43a19da77 in TclNRRunCallbacks () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #9  0x00007fa43713c724 in ItclObjectCmd () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #10 0x00007fa437137cb8 in CallItclObjectCmd () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #11 0x00007fa43a19da77 in TclNRRunCallbacks () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #12 0x00007fa437137e38 in Itcl_EvalMemberCode () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #13 0x00007fa437138b24 in Itcl_InvokeMethodIfExists () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #14 0x00007fa43713a8bb in ItclDestructBase () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #15 0x00007fa43713a865 in ItclDestructBase () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #16 0x00007fa43713a941 in CallDestructBase () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #17 0x00007fa43a19da77 in TclNRRunCallbacks () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #18 0x00007fa43713acc4 in ObjectRenamedTrace () from
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> #19 0x00007fa43a19aeaf in CallCommandTraces () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #20 0x00007fa43a19b041 in Tcl_DeleteCommandFromToken () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #21 0x00007fa43a256a9d in TclTeardownNamespace () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #22 0x00007fa43a19c54c in DeleteInterpProc () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #23 0x00007fa43a19b0ae in Tcl_DeleteCommandFromToken () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #24 0x00007fa43a256a9d in TclTeardownNamespace () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #25 0x00007fa43a19c54c in DeleteInterpProc () from
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> #26 0x00007fa43a3ff3b5 in Rivet_ProcessorCleanup (data=0x7fa43fb690a0)
> at mod_rivet/mod_rivet.c:501
> #27 0x00007fa439426f88 in Rivet_MPM_Finalize (data=<optimized out>) at
> mod_rivet/rivet_prefork_mpm.c:52
> #28 0x00007fa43f19c9be in apr_pool_destroy () from
> /usr/lib/x86_64-linux-gnu/libapr-1.so.0
> #29 0x00007fa43bad120e in ?? () from
> /usr/lib/apache2/modules/mod_mpm_prefork.so
> #30 0x00007fa43bad1696 in ?? () from
> /usr/lib/apache2/modules/mod_mpm_prefork.so
> #31 0x00007fa43bad1a01 in ?? () from
> /usr/lib/apache2/modules/mod_mpm_prefork.so
> #32 0x00007fa43bad2667 in ?? () from
> /usr/lib/apache2/modules/mod_mpm_prefork.so
> #33 0x00007fa43faace7e in ap_run_mpm ()
> #34 0x00007fa43faa63c3 in main ()
> (gdb)
>
> Here is shared library info:
>
> (gdb) info sharedlibrary
> From                To                  Syms Read   Shared Object Library
>                                          No          linux-vdso.so.1
> 0x00007fa43f5df710  0x00007fa43f62e0c5  Yes (*)
> /lib/x86_64-linux-gnu/libpcre.so.3
> 0x00007fa43f3be7e0  0x00007fa43f3d3f7f  Yes (*)
> /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0
> 0x00007fa43f18ce90  0x00007fa43f1a87cf  Yes (*)
> /usr/lib/x86_64-linux-gnu/libapr-1.so.0
> 0x00007fa43ef689f0  0x00007fa43ef74731  Yes
> /lib/x86_64-linux-gnu/libpthread.so.0
> 0x00007fa43ebd94a0  0x00007fa43ed036a3  Yes /lib/x86_64-linux-gnu/libc.so.6
> 0x00007fa43e9b6620  0x00007fa43e9b7ce7  Yes (*)
> /lib/x86_64-linux-gnu/libuuid.so.1
> 0x00007fa43e7af350  0x00007fa43e7b206c  Yes
> /lib/x86_64-linux-gnu/librt.so.1
> 0x00007fa43e576cc0  0x00007fa43e57b8b4  Yes
> /lib/x86_64-linux-gnu/libcrypt.so.1
> 0x00007fa43e372ed0  0x00007fa43e37397e  Yes
> /lib/x86_64-linux-gnu/libdl.so.2
> 0x00007fa43e14cb90  0x00007fa43e164ff9  Yes (*)
> /lib/x86_64-linux-gnu/libexpat.so.1
> 0x00007fa43f84cae0  0x00007fa43f865170  Yes /lib64/ld-linux-x86-64.so.2
> 0x00007fa439c583b0  0x00007fa439c5cb4e  Yes
> /lib/x86_64-linux-gnu/libnss_compat.so.2
> 0x00007fa439a43160  0x00007fa439a4e693  Yes
> /lib/x86_64-linux-gnu/libnsl.so.1
> 0x00007fa4398361a0  0x00007fa43983c1bc  Yes
> /lib/x86_64-linux-gnu/libnss_nis.so.2
> 0x00007fa43962a2a0  0x00007fa439630803  Yes
> /lib/x86_64-linux-gnu/libnss_files.so.2
> 0x00007fa4385668c0  0x00007fa4385683bb  Yes
> /usr/local/lib/rivet/librivetlib.so
> 0x00007fa43df46cf0  0x00007fa43df47603  Yes (*)
> /usr/lib/apache2/modules/mod_access_compat.so
> 0x00007fa43dd42120  0x00007fa43dd430f3  Yes (*)
> /usr/lib/apache2/modules/mod_alias.so
> 0x00007fa43db3dfe0  0x00007fa43db3f05e  Yes (*)
> /usr/lib/apache2/modules/mod_auth_basic.so
> 0x00007fa43d939f70  0x00007fa43d93a712  Yes (*)
> /usr/lib/apache2/modules/mod_authn_core.so
> 0x00007fa43d736ae0  0x00007fa43d73703a  Yes (*)
> /usr/lib/apache2/modules/mod_authn_file.so
> 0x00007fa43d5305d0  0x00007fa43d53220a  Yes (*)
> /usr/lib/apache2/modules/mod_authz_core.so
> 0x00007fa43d32bfd0  0x00007fa43d32c83a  Yes (*)
> /usr/lib/apache2/modules/mod_authz_groupfile.so
> 0x00007fa43d128de0  0x00007fa43d1294fc  Yes (*)
> /usr/lib/apache2/modules/mod_authz_host.so
> 0x00007fa43cf25980  0x00007fa43cf25daa  Yes (*)
> /usr/lib/apache2/modules/mod_authz_user.so
> 0x00007fa43cd1d420  0x00007fa43cd2187a  Yes (*)
> /usr/lib/apache2/modules/mod_autoindex.so
> 0x00007fa43cb16270  0x00007fa43cb185b8  Yes (*)
> /usr/lib/apache2/modules/mod_cgi.so
> 0x00007fa43c90b9c0  0x00007fa43c90fd9a  Yes (*)
> /usr/lib/apache2/modules/mod_deflate.so
> 0x00007fa43c6f1220  0x00007fa43c702469  Yes (*)
> /lib/x86_64-linux-gnu/libz.so.1
> 0x00007fa43c4ebf10  0x00007fa43c4ec95f  Yes (*)
> /usr/lib/apache2/modules/mod_dir.so
> 0x00007fa43c2e8b30  0x00007fa43c2e8eab  Yes (*)
> /usr/lib/apache2/modules/mod_env.so
> 0x00007fa43c0e4160  0x00007fa43c0e5f12  Yes (*)
> /usr/lib/apache2/modules/mod_filter.so
> 0x00007fa43bede860  0x00007fa43bee037d  Yes (*)
> /usr/lib/apache2/modules/mod_headers.so
> 0x00007fa43bcd8700  0x00007fa43bcd9df1  Yes (*)
> /usr/lib/apache2/modules/mod_mime.so
> 0x00007fa43bad07f0  0x00007fa43bad2de0  Yes (*)
> /usr/lib/apache2/modules/mod_mpm_prefork.so
> 0x00007fa43b8c6ed0  0x00007fa43b8cb263  Yes (*)
> /usr/lib/apache2/modules/mod_negotiation.so
> 0x00007fa43b6c1f10  0x00007fa43b6c3035  Yes (*)
> /usr/lib/apache2/modules/mod_reqtimeout.so
> 0x00007fa43b4b3350  0x00007fa43b4bbf1a  Yes (*)
> /usr/lib/apache2/modules/mod_rewrite.so
> 0x00007fa43b2ad110  0x00007fa43b2ae002  Yes (*)
> /usr/lib/apache2/modules/mod_setenvif.so
> 0x00007fa43b0a5db0  0x00007fa43b0a8571  Yes (*)
> /usr/lib/apache2/modules/mod_socache_shmcb.so
> ---Type <return> to continue, or q <return> to quit---
> 0x00007fa43ae7aa40  0x00007fa43ae93839  Yes (*)
> /usr/lib/apache2/modules/mod_ssl.so
> 0x00007fa43ac22db0  0x00007fa43ac573ee  Yes (*)
> /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
> 0x00007fa43a886200  0x00007fa43a97bcdf  Yes (*)
> /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> 0x00007fa43a60f270  0x00007fa43a611147  Yes (*)
> /usr/lib/apache2/modules/mod_status.so
> 0x00007fa43a3fe9e0  0x00007fa43a408dfc  Yes
> /usr/lib/apache2/modules/mod_rivet.so
> 0x00007fa43a18c1f0  0x00007fa43a2b1fb8  Yes (*)
> /opt/ActiveTcl-8.6/lib/libtcl8.6.so
> 0x00007fa439e64580  0x00007fa439ecfd96  Yes /lib/x86_64-linux-gnu/libm.so.6
> 0x00007fa439426c70  0x00007fa439427061  Yes
> /usr/local/lib/rivet/mpm/rivet_prefork_mpm.so
> 0x00007fa437116250  0x00007fa43714b208  Yes (*)
> /opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
> 0x00007fa436ffde50  0x00007fa437007698  Yes (*)
> /opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib/Oratcl4.5/libOratcl4.5.so
>
> 0x00007fa434de6250  0x00007fa435739a88  Yes
> /opt/oracle/home1/lib/libclntsh.so
> 0x00007fa434631060  0x00007fa4346618a8  Yes (*)
> /opt/oracle/home1/lib/libnnz11.so
> 0x00007fa4343de630  0x00007fa4343de872  Yes (*)
> /lib/x86_64-linux-gnu/libaio.so.1
> 0x00007fa434213470  0x00007fa434217c98  Yes (*)
> /opt/oracle/home1/lib/libnque11.so
> 0x00007fa433bec570  0x00007fa433c00b68  Yes (*)
> /opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib/Trf2.1.4/libTrf2.1.4.so
>
> 0x00007fa433921300  0x00007fa433a39258  Yes (*)
> /opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib/tls1.6.5/libtls1.6.5.so
>
> (*): Shared library is missing debugging information.
> (gdb)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Anton Osennikov <an...@perm.ru>.
Hi Massimo!

04.09.2015 12:56, Massimo Manghi пишет:

> Are you loading some binary extensions in that application?

My first attempt was to eliminate all binary extensions. There was a 
few. I temporarily commented out all of them. Except for Itcl, which is 
a base. Apps cannot run without it.

I can make gdb backtraces now.

Backtraces aren't the same all the times.

* Here's #1:

# gdb /usr/sbin/apache2 /tmp/core.1
...
[New LWP 4726]
[New LWP 4725]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fa43ec992b3 in select () at ../sysdeps/unix/syscall-template.S:81
81      ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0  0x00007fa43ec992b3 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fa43a29a435 in NotifierThreadProc () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#2  0x00007fa43ef6b0a4 in start_thread (arg=0x7fa438060700) at 
pthread_create.c:309
#3  0x00007fa43eca004d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Here's #2:

(gdb) bt
#0  0x00007fa43ebef107 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fa43ebf04e8 in __GI_abort () at abort.c:89
#2  0x00007fa43a25f11e in Tcl_PanicVA () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#3  0x00007fa43a25f1ad in Tcl_Panic () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#4  0x00007fa43a2716a6 in Tcl_AppendStringsToObjVA () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#5  0x00007fa43a27177d in Tcl_AppendStringsToObj () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#6  0x00007fa43713d2fa in ItclMapMethodNameProc () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#7  0x00007fa43a29c851 in TclOOObjectCmdCore () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#8  0x00007fa43a19da77 in TclNRRunCallbacks () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#9  0x00007fa43713c724 in ItclObjectCmd () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#10 0x00007fa437137cb8 in CallItclObjectCmd () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#11 0x00007fa43a19da77 in TclNRRunCallbacks () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#12 0x00007fa437137e38 in Itcl_EvalMemberCode () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#13 0x00007fa437138b24 in Itcl_InvokeMethodIfExists () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#14 0x00007fa43713a8bb in ItclDestructBase () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#15 0x00007fa43713a865 in ItclDestructBase () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#16 0x00007fa43713a941 in CallDestructBase () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#17 0x00007fa43a19da77 in TclNRRunCallbacks () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#18 0x00007fa43713acc4 in ObjectRenamedTrace () from 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
#19 0x00007fa43a19aeaf in CallCommandTraces () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#20 0x00007fa43a19b041 in Tcl_DeleteCommandFromToken () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#21 0x00007fa43a256a9d in TclTeardownNamespace () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#22 0x00007fa43a19c54c in DeleteInterpProc () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#23 0x00007fa43a19b0ae in Tcl_DeleteCommandFromToken () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#24 0x00007fa43a256a9d in TclTeardownNamespace () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#25 0x00007fa43a19c54c in DeleteInterpProc () from 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
#26 0x00007fa43a3ff3b5 in Rivet_ProcessorCleanup (data=0x7fa43fb690a0) 
at mod_rivet/mod_rivet.c:501
#27 0x00007fa439426f88 in Rivet_MPM_Finalize (data=<optimized out>) at 
mod_rivet/rivet_prefork_mpm.c:52
#28 0x00007fa43f19c9be in apr_pool_destroy () from 
/usr/lib/x86_64-linux-gnu/libapr-1.so.0
#29 0x00007fa43bad120e in ?? () from 
/usr/lib/apache2/modules/mod_mpm_prefork.so
#30 0x00007fa43bad1696 in ?? () from 
/usr/lib/apache2/modules/mod_mpm_prefork.so
#31 0x00007fa43bad1a01 in ?? () from 
/usr/lib/apache2/modules/mod_mpm_prefork.so
#32 0x00007fa43bad2667 in ?? () from 
/usr/lib/apache2/modules/mod_mpm_prefork.so
#33 0x00007fa43faace7e in ap_run_mpm ()
#34 0x00007fa43faa63c3 in main ()
(gdb)

Here is shared library info:

(gdb) info sharedlibrary
 From                To                  Syms Read   Shared Object Library
                                         No          linux-vdso.so.1
0x00007fa43f5df710  0x00007fa43f62e0c5  Yes (*) 
/lib/x86_64-linux-gnu/libpcre.so.3
0x00007fa43f3be7e0  0x00007fa43f3d3f7f  Yes (*) 
/usr/lib/x86_64-linux-gnu/libaprutil-1.so.0
0x00007fa43f18ce90  0x00007fa43f1a87cf  Yes (*) 
/usr/lib/x86_64-linux-gnu/libapr-1.so.0
0x00007fa43ef689f0  0x00007fa43ef74731  Yes 
/lib/x86_64-linux-gnu/libpthread.so.0
0x00007fa43ebd94a0  0x00007fa43ed036a3  Yes 
/lib/x86_64-linux-gnu/libc.so.6
0x00007fa43e9b6620  0x00007fa43e9b7ce7  Yes (*) 
/lib/x86_64-linux-gnu/libuuid.so.1
0x00007fa43e7af350  0x00007fa43e7b206c  Yes 
/lib/x86_64-linux-gnu/librt.so.1
0x00007fa43e576cc0  0x00007fa43e57b8b4  Yes 
/lib/x86_64-linux-gnu/libcrypt.so.1
0x00007fa43e372ed0  0x00007fa43e37397e  Yes 
/lib/x86_64-linux-gnu/libdl.so.2
0x00007fa43e14cb90  0x00007fa43e164ff9  Yes (*) 
/lib/x86_64-linux-gnu/libexpat.so.1
0x00007fa43f84cae0  0x00007fa43f865170  Yes 
/lib64/ld-linux-x86-64.so.2
0x00007fa439c583b0  0x00007fa439c5cb4e  Yes 
/lib/x86_64-linux-gnu/libnss_compat.so.2
0x00007fa439a43160  0x00007fa439a4e693  Yes 
/lib/x86_64-linux-gnu/libnsl.so.1
0x00007fa4398361a0  0x00007fa43983c1bc  Yes 
/lib/x86_64-linux-gnu/libnss_nis.so.2
0x00007fa43962a2a0  0x00007fa439630803  Yes 
/lib/x86_64-linux-gnu/libnss_files.so.2
0x00007fa4385668c0  0x00007fa4385683bb  Yes 
/usr/local/lib/rivet/librivetlib.so
0x00007fa43df46cf0  0x00007fa43df47603  Yes (*) 
/usr/lib/apache2/modules/mod_access_compat.so
0x00007fa43dd42120  0x00007fa43dd430f3  Yes (*) 
/usr/lib/apache2/modules/mod_alias.so
0x00007fa43db3dfe0  0x00007fa43db3f05e  Yes (*) 
/usr/lib/apache2/modules/mod_auth_basic.so
0x00007fa43d939f70  0x00007fa43d93a712  Yes (*) 
/usr/lib/apache2/modules/mod_authn_core.so
0x00007fa43d736ae0  0x00007fa43d73703a  Yes (*) 
/usr/lib/apache2/modules/mod_authn_file.so
0x00007fa43d5305d0  0x00007fa43d53220a  Yes (*) 
/usr/lib/apache2/modules/mod_authz_core.so
0x00007fa43d32bfd0  0x00007fa43d32c83a  Yes (*) 
/usr/lib/apache2/modules/mod_authz_groupfile.so
0x00007fa43d128de0  0x00007fa43d1294fc  Yes (*) 
/usr/lib/apache2/modules/mod_authz_host.so
0x00007fa43cf25980  0x00007fa43cf25daa  Yes (*) 
/usr/lib/apache2/modules/mod_authz_user.so
0x00007fa43cd1d420  0x00007fa43cd2187a  Yes (*) 
/usr/lib/apache2/modules/mod_autoindex.so
0x00007fa43cb16270  0x00007fa43cb185b8  Yes (*) 
/usr/lib/apache2/modules/mod_cgi.so
0x00007fa43c90b9c0  0x00007fa43c90fd9a  Yes (*) 
/usr/lib/apache2/modules/mod_deflate.so
0x00007fa43c6f1220  0x00007fa43c702469  Yes (*) 
/lib/x86_64-linux-gnu/libz.so.1
0x00007fa43c4ebf10  0x00007fa43c4ec95f  Yes (*) 
/usr/lib/apache2/modules/mod_dir.so
0x00007fa43c2e8b30  0x00007fa43c2e8eab  Yes (*) 
/usr/lib/apache2/modules/mod_env.so
0x00007fa43c0e4160  0x00007fa43c0e5f12  Yes (*) 
/usr/lib/apache2/modules/mod_filter.so
0x00007fa43bede860  0x00007fa43bee037d  Yes (*) 
/usr/lib/apache2/modules/mod_headers.so
0x00007fa43bcd8700  0x00007fa43bcd9df1  Yes (*) 
/usr/lib/apache2/modules/mod_mime.so
0x00007fa43bad07f0  0x00007fa43bad2de0  Yes (*) 
/usr/lib/apache2/modules/mod_mpm_prefork.so
0x00007fa43b8c6ed0  0x00007fa43b8cb263  Yes (*) 
/usr/lib/apache2/modules/mod_negotiation.so
0x00007fa43b6c1f10  0x00007fa43b6c3035  Yes (*) 
/usr/lib/apache2/modules/mod_reqtimeout.so
0x00007fa43b4b3350  0x00007fa43b4bbf1a  Yes (*) 
/usr/lib/apache2/modules/mod_rewrite.so
0x00007fa43b2ad110  0x00007fa43b2ae002  Yes (*) 
/usr/lib/apache2/modules/mod_setenvif.so
0x00007fa43b0a5db0  0x00007fa43b0a8571  Yes (*) 
/usr/lib/apache2/modules/mod_socache_shmcb.so
---Type <return> to continue, or q <return> to quit---
0x00007fa43ae7aa40  0x00007fa43ae93839  Yes (*) 
/usr/lib/apache2/modules/mod_ssl.so
0x00007fa43ac22db0  0x00007fa43ac573ee  Yes (*) 
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
0x00007fa43a886200  0x00007fa43a97bcdf  Yes (*) 
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
0x00007fa43a60f270  0x00007fa43a611147  Yes (*) 
/usr/lib/apache2/modules/mod_status.so
0x00007fa43a3fe9e0  0x00007fa43a408dfc  Yes 
/usr/lib/apache2/modules/mod_rivet.so
0x00007fa43a18c1f0  0x00007fa43a2b1fb8  Yes (*) 
/opt/ActiveTcl-8.6/lib/libtcl8.6.so
0x00007fa439e64580  0x00007fa439ecfd96  Yes 
/lib/x86_64-linux-gnu/libm.so.6
0x00007fa439426c70  0x00007fa439427061  Yes 
/usr/local/lib/rivet/mpm/rivet_prefork_mpm.so
0x00007fa437116250  0x00007fa43714b208  Yes (*) 
/opt/ActiveTcl-8.6/lib/itcl4.0.3/libitcl4.0.3.so
0x00007fa436ffde50  0x00007fa437007698  Yes (*) 
/opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib/Oratcl4.5/libOratcl4.5.so
0x00007fa434de6250  0x00007fa435739a88  Yes 
/opt/oracle/home1/lib/libclntsh.so
0x00007fa434631060  0x00007fa4346618a8  Yes (*) 
/opt/oracle/home1/lib/libnnz11.so
0x00007fa4343de630  0x00007fa4343de872  Yes (*) 
/lib/x86_64-linux-gnu/libaio.so.1
0x00007fa434213470  0x00007fa434217c98  Yes (*) 
/opt/oracle/home1/lib/libnque11.so
0x00007fa433bec570  0x00007fa433c00b68  Yes (*) 
/opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib/Trf2.1.4/libTrf2.1.4.so
0x00007fa433921300  0x00007fa433a39258  Yes (*) 
/opt/ActiveTcl-8.6/lib/teapot/package/linux-glibc2.3-x86_64/lib/tls1.6.5/libtls1.6.5.so
(*): Shared library is missing debugging information.
(gdb)


-- 
Best regards, Anton.


>
>   -- Massimo
>
>
> On 09/04/2015 08:45 AM, Anton Osennikov wrote:
>>
>> Here's complete block of lines from error.log around last "signal
>> Aborted", for apache child pid 4789. "create interpreter" and "run
>> interpreter" lines are from my custom rivet-childinit.tcl. They are
>> about creating and running slave interpreters for apps in virtual hosts.
>> 'nemoweb' application causes the problem.
>>
>> 2015-09-04 11:28:38 create interpreter 'nemoweb' [4789]
>> 2015-09-04 11:28:39 run interpreter 'appsvc' [4680]
>> 2015-09-04 11:28:44 run interpreter 'nemoweb' [4789]
>> 2015-09-04 11:28:46 create interpreter 'cabinet/rodnsvyaz' [5060]
>> [Fri Sep 04 11:28:46.660949 2015] [:debug] [pid 4660]
>> mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet:
>> Running prefork bridge finalize method
>> [Fri Sep 04 11:28:46.660974 2015] [:debug] [pid 4660]
>> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
>> vhosts)
>> 2015-09-04 11:28:47 create interpreter 'appsvc' [5068]
>> 2015-09-04 11:28:47 run interpreter 'appsvc' [5068]
>> 2015-09-04 11:28:47 run interpreter 'cabinet/rodnsvyaz' [5060]
>> [Fri Sep 04 11:28:49.663374 2015] [:debug] [pid 4835]
>> mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet:
>> Running prefork bridge finalize method
>> [Fri Sep 04 11:28:49.663396 2015] [:debug] [pid 4835]
>> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
>> vhosts)
>> 2015-09-04 11:28:50 run interpreter 'appsvc' [4680]
>> 2015-09-04 11:28:53 create interpreter 'appsvc' [4792]
>> 2015-09-04 11:28:53 run interpreter 'appsvc' [4792]
>> 2015-09-04 11:28:56 run interpreter 'appsvc' [4763]
>> [Fri Sep 04 11:28:57.673112 2015] [:debug] [pid 4789]
>> mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet:
>> Running prefork bridge finalize method
>> [Fri Sep 04 11:28:57.673138 2015] [:debug] [pid 4789]
>> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
>> vhosts)
>> Tcl_AppendStringsToObj called with shared object
>> 2015-09-04 11:28:58 create interpreter 'appsvc' [5058]
>> 2015-09-04 11:28:58 run interpreter 'appsvc' [5058]
>> 2015-09-04 11:28:59 run interpreter 'cabinet/rodnsvyaz' [4680]
>> 2015-09-04 11:28:59 run interpreter 'cabinet/rodnsvyaz' [5060]
>> [Fri Sep 04 11:28:59.674532 2015] [core:notice] [pid 1330] AH00051:
>> child pid 4789 exit signal Aborted (6), possible coredump in /tmp
>> 2015-09-04 11:29:02 run interpreter 'appsvc' [5068]
>> 2015-09-04 11:29:04 run interpreter 'appsvc' [4763]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
> For additional commands, e-mail: rivet-dev-help@tcl.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Massimo Manghi <ma...@unipr.it>.
Hi Anton

Are you loading some binary extensions in that application? First of all 
the error line

Tcl_AppendStringsToObj called with shared object

appears without the usual time stamp and without message prefix as any 
call to ap_log_error, ap_log_rerror or ap_log_perror do. Message lines 
without the canonical prefix are generated by sending output straight to 
the stderr channel. By looking at the error my guess is there is a 
fprintf(stderr,...) call somewhere at C level, thus some binary 
extension must be generating it. Does it make sense to you?

  -- Massimo


On 09/04/2015 08:45 AM, Anton Osennikov wrote:
>
> Here's complete block of lines from error.log around last "signal
> Aborted", for apache child pid 4789. "create interpreter" and "run
> interpreter" lines are from my custom rivet-childinit.tcl. They are
> about creating and running slave interpreters for apps in virtual hosts.
> 'nemoweb' application causes the problem.
>
> 2015-09-04 11:28:38 create interpreter 'nemoweb' [4789]
> 2015-09-04 11:28:39 run interpreter 'appsvc' [4680]
> 2015-09-04 11:28:44 run interpreter 'nemoweb' [4789]
> 2015-09-04 11:28:46 create interpreter 'cabinet/rodnsvyaz' [5060]
> [Fri Sep 04 11:28:46.660949 2015] [:debug] [pid 4660]
> mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet:
> Running prefork bridge finalize method
> [Fri Sep 04 11:28:46.660974 2015] [:debug] [pid 4660]
> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
> vhosts)
> 2015-09-04 11:28:47 create interpreter 'appsvc' [5068]
> 2015-09-04 11:28:47 run interpreter 'appsvc' [5068]
> 2015-09-04 11:28:47 run interpreter 'cabinet/rodnsvyaz' [5060]
> [Fri Sep 04 11:28:49.663374 2015] [:debug] [pid 4835]
> mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet:
> Running prefork bridge finalize method
> [Fri Sep 04 11:28:49.663396 2015] [:debug] [pid 4835]
> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
> vhosts)
> 2015-09-04 11:28:50 run interpreter 'appsvc' [4680]
> 2015-09-04 11:28:53 create interpreter 'appsvc' [4792]
> 2015-09-04 11:28:53 run interpreter 'appsvc' [4792]
> 2015-09-04 11:28:56 run interpreter 'appsvc' [4763]
> [Fri Sep 04 11:28:57.673112 2015] [:debug] [pid 4789]
> mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet:
> Running prefork bridge finalize method
> [Fri Sep 04 11:28:57.673138 2015] [:debug] [pid 4789]
> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
> vhosts)
> Tcl_AppendStringsToObj called with shared object
> 2015-09-04 11:28:58 create interpreter 'appsvc' [5058]
> 2015-09-04 11:28:58 run interpreter 'appsvc' [5058]
> 2015-09-04 11:28:59 run interpreter 'cabinet/rodnsvyaz' [4680]
> 2015-09-04 11:28:59 run interpreter 'cabinet/rodnsvyaz' [5060]
> [Fri Sep 04 11:28:59.674532 2015] [core:notice] [pid 1330] AH00051:
> child pid 4789 exit signal Aborted (6), possible coredump in /tmp
> 2015-09-04 11:29:02 run interpreter 'appsvc' [5068]
> 2015-09-04 11:29:04 run interpreter 'appsvc' [4763]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Anton Osennikov <an...@perm.ru>.
Hello!

04.09.2015 2:10, Massimo Manghi пишет:
> thank you for reporting this (would you please open a bug at
> issues.apache.org for future reference?).
For sure.

> I suggest you try also the stable code 2.2.3 just to see if the problem
> is mod_rivet release specific.

I tried rivet-2.2.3, rivet-2.2.2, rivet-2.1.4 and rivet-2.2.0 (Debian) 
releases. Some details differ between them, but main problem still there 
(signal Aborted when some application is present). I think this is 
Apache release specific.

>> Tcl_AppendStringsToObj called with shared object
>
> interesting, I recommend you export or checkout from trunk the current
> development status in a separate directory (I committed quite a few
> things lately).

Thank you, I will try ASAP.

> Do you have other error lines around the Tcl error? It's should be
> something printed by the Rivet_Panic procedure

Here's complete block of lines from error.log around last "signal 
Aborted", for apache child pid 4789. "create interpreter" and "run 
interpreter" lines are from my custom rivet-childinit.tcl. They are 
about creating and running slave interpreters for apps in virtual hosts. 
'nemoweb' application causes the problem.

2015-09-04 11:28:38 create interpreter 'nemoweb' [4789]
2015-09-04 11:28:39 run interpreter 'appsvc' [4680]
2015-09-04 11:28:44 run interpreter 'nemoweb' [4789]
2015-09-04 11:28:46 create interpreter 'cabinet/rodnsvyaz' [5060]
[Fri Sep 04 11:28:46.660949 2015] [:debug] [pid 4660] 
mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet: 
Running prefork bridge finalize method
[Fri Sep 04 11:28:46.660974 2015] [:debug] [pid 4660] 
mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18 
vhosts)
2015-09-04 11:28:47 create interpreter 'appsvc' [5068]
2015-09-04 11:28:47 run interpreter 'appsvc' [5068]
2015-09-04 11:28:47 run interpreter 'cabinet/rodnsvyaz' [5060]
[Fri Sep 04 11:28:49.663374 2015] [:debug] [pid 4835] 
mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet: 
Running prefork bridge finalize method
[Fri Sep 04 11:28:49.663396 2015] [:debug] [pid 4835] 
mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18 
vhosts)
2015-09-04 11:28:50 run interpreter 'appsvc' [4680]
2015-09-04 11:28:53 create interpreter 'appsvc' [4792]
2015-09-04 11:28:53 run interpreter 'appsvc' [4792]
2015-09-04 11:28:56 run interpreter 'appsvc' [4763]
[Fri Sep 04 11:28:57.673112 2015] [:debug] [pid 4789] 
mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet: 
Running prefork bridge finalize method
[Fri Sep 04 11:28:57.673138 2015] [:debug] [pid 4789] 
mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18 
vhosts)
Tcl_AppendStringsToObj called with shared object
2015-09-04 11:28:58 create interpreter 'appsvc' [5058]
2015-09-04 11:28:58 run interpreter 'appsvc' [5058]
2015-09-04 11:28:59 run interpreter 'cabinet/rodnsvyaz' [4680]
2015-09-04 11:28:59 run interpreter 'cabinet/rodnsvyaz' [5060]
[Fri Sep 04 11:28:59.674532 2015] [core:notice] [pid 1330] AH00051: 
child pid 4789 exit signal Aborted (6), possible coredump in /tmp
2015-09-04 11:29:02 run interpreter 'appsvc' [5068]
2015-09-04 11:29:04 run interpreter 'appsvc' [4763]

-- 
Best regards, Anton.


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: Internal error and signal Aborted with Apache 2.4

Posted by Massimo Manghi <mx...@apache.org>.
Hi Anton

thank you for reporting this (would you please open a bug at 
issues.apache.org for future reference?).

I suggest you try also the stable code 2.2.3 just to see if the problem 
is mod_rivet release specific. I think you know 2.3.0 is actually the 
code in trunk, which is still to be released, but I seize the 
opportunity for having a test for it, so before giving up let's try to 
figure out what's going on.

On 09/03/2015 11:19 AM, Anton Osennikov wrote:
> Hello!
>
> I'm running a dozen of Tcl applications inside Apache with mod_rivet for
> several years.
>
> Recently I've upgraded. Now
>
> Debian is release 8 jessie
> Apache is Apache/2.4.10 (Debian)
> Tcl is ActiveTcl 8.6.4
> Rivet is SVN Rivet/2.3.0
>
> Every application is running in it's own virtual host and it's own child
> interpreter. Theese child interpreters are created by my custom init script
>
> RivetServerConf ChildInitScript "source /etc/apache2/rivet-childinit.tcl"
>
> # RivetServerConf SeparateVirtualInterps no
>
>
> I'm running apache with LogLevel debug.
>
> Now two kind of error messages appear in apache's error.log.
>
> First:
>
> [Thu Sep 03 13:44:47.316904 2015] [:debug] [pid 6558]
> mod_rivet/rivet_prefork_mpm.c(49): (20014)Internal error: mod_rivet:
> Running prefork bridge finalize method
> [Thu Sep 03 13:44:47.316923 2015] [:debug] [pid 6558]
> mod_rivet/mod_rivet.c(464): Thread exiting after 0 requests served (18
> vhosts)
>

This is red herring. The message severity is wrong, it's just a warning 
meant to debug the module status but they shouldn't repeat very often

> Theese messages are repeated about every 20 seconds. I belive pefromance
> is degraded now since apache child processes die often after processing
> zero requests. Child processes are supposed to keep persistent database
> connections in my applications.
>
> Am I wrong about perfomance degradation?
>
> Second message kind appears only if I enable single one of my dozen of
> applications:
>
> Tcl_AppendStringsToObj called with shared object
> [Thu Sep 03 13:46:12.423202 2015] [core:notice] [pid 30351] AH00051:
> child pid 6017 exit signal Aborted (6), possible coredump in /tmp
>
> This message goes away if I disable virtual host for this one
> application. When this special application is enabled "signal Aborted"
> hits this application AND other applications too. Confirmed it looking
> and PIDs of apache children processing application requests.
>

interesting, I recommend you export or checkout from trunk the current 
development status in a separate directory (I committed quite a few 
things lately). Can you confirm the errors after rebuilding the module?

> I've tried to identify special application features that cause the
> errors, but without success :( Of course, this application runs without
> problems with older versions of Apache, Tcl and Rivet.
>
> How to find the reason for "signal Aborted"? Please, help!
>

Do you have other error lines around the Tcl error? It's should be 
something printed by the Rivet_Panic procedure

  let me know

  -- Massimo

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org