tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54162] New: Rivet and websh can not coexist peacefully
Date Sun, 18 Nov 2012 08:18:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54162

            Bug ID: 54162
           Summary: Rivet and websh can not coexist peacefully
           Product: WebSH
           Version: unspecified
          Hardware: All
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSH
          Assignee: websh-dev@tcl.apache.org
          Reporter: mi+apache@aldan.algebra.com
    Classification: Unclassified

Different sites on my server use different TCL-modules (result of
consolidation) and the two do not coexist well causing frequent crashes in
during Apache's cleanups. Apparently, both attempt to free certain bits and
pieces inside Tcl

Here is the typical output from valgrind. To reproduce, run "valgrind httpd -X"
and then kill (not with -9!) the httpd process to trigger the cleanups:

==51407== Invalid read of size 8
==51407==    at 0x6744544: TclFreeObj (tclObj.c:1461)
==51407==    by 0x677DC5D: FreeVarEntry (tclVar.c:5578)
==51407==    by 0x6712919: Tcl_DeleteHashEntry (tclHash.c:463)
==51407==    by 0x677C131: TclDeleteNamespaceVars (tclVar.c:4465)
==51407==    by 0x67398B5: TclTeardownNamespace (tclNamesp.c:1070)
==51407==    by 0x6693772: DeleteInterpProc (tclBasic.c:1261)
==51407==    by 0x675586A: Tcl_EventuallyFree (tclPreserve.c:298)
==51407==    by 0x6693699: Tcl_DeleteInterp (tclBasic.c:1183)
==51407==    by 0x6432001: destroyPool (interpool.c:691)
==51407==    by 0x6432666: exit_websh_pool (mod_websh.c:128)
==51407==    by 0x1538A9C: run_cleanups (apr_pools.c:2346)
==51407==    by 0x153951D: apr_pool_destroy (apr_pools.c:809)
==51407==  Address 0x6ba23e0 is 0 bytes inside a block of size 8 free'd
==51407==    at 0x259373: free (in
/opt/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so)
==51407==    by 0x6692219: TclpFree (tclAlloc.c:723)
==51407==    by 0x669EA40: Tcl_Free (tclCkalloc.c:1217)
==51407==    by 0x6769493: TclFinalizeSynchronization (tclThread.c:398)
==51407==    by 0x66F9A2D: Tcl_Finalize (tclEvent.c:1154)
==51407==    by 0x68CD169: Rivet_ChildExit (mod_rivet.c:1352)
==51407==    by 0x1538A9C: run_cleanups (apr_pools.c:2346)
==51407==    by 0x153951D: apr_pool_destroy (apr_pools.c:809)
==51407==    by 0x153950B: apr_pool_destroy (apr_pools.c:806)
==51407==    by 0x153950B: apr_pool_destroy (apr_pools.c:806)
==51407==    by 0x422D26: destroy_and_exit_process (main.c:270)
==51407==    by 0x4237E9: main (main.c:760)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message