HyperFastCgi icon indicating copy to clipboard operation
HyperFastCgi copied to clipboard

Error calling 'bufferevent_free' twice in NativeTransport on request end

Open AdamGolovenko opened this issue 6 years ago • 0 comments

Hello,

problem is somewhere inside C code, seems like bufferevent_free called twice and not obvious. Please help me if possible or just say where I need to search.

What additional info should I provide? I can connect to test server if needed.

[err] bufferevent.c:611: Assertion bufev_private->refcnt > 0 failed in _bufferevent_decref_and_unlock Stacktrace:

at <0xffffffff> at (wrapper managed-to-native) HyperFastCgi.Transports.NativeTransport.EndRequest (HyperFastCgi.Transports.NativeTransport,ulong,int,int) <0xffffffff> at HyperFastCgi.AppHosts.Raw.BaseRawRequest.CompleteResponse () <0x00027> at AIHelpsServer.HelloWorldRequest.Process (HyperFastCgi.Interfaces.IWebResponse) <0x000c9> at HyperFastCgi.Transports.BaseAppHostTransport/<AddBodyPart>c__AnonStorey0.<>m__1 (object) <0x000b7> at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (object) <0x00050> at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x0021a> at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x00028> at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x00057> at System.Threading.ThreadPoolWorkQueue.Dispatch () <0x0021a> at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () <0x00010> at (wrapper runtime-invoke) <Module>.runtime_invoke_bool (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

   /usr/bin/mono() [0x495730]
    /lib64/libpthread.so.0(+0xf5a0) [0x7f679c7b55a0]
    /lib64/libc.so.6(gsignal+0x37) [0x7f679c2011f7]
    /lib64/libc.so.6(abort+0x148) [0x7f679c2028e8]
    /usr/lib64/libevent-2.0.so.5(+0x1fc0a) [0x7f6792664c0a]
    /usr/lib64/libevent-2.0.so.5(+0x1ff7b) [0x7f6792664f7b]
    /usr/lib64/libevent-2.0.so.5(+0x1a102) [0x7f679265f102]
    /usr/lib64/libevent-2.0.so.5(bufferevent_free+0x8b) [0x7f679265f50b]
    /usr/lib/libhfc-native.so.1(free_cmdsocket_only+0x29) [0x7f6792dba3b9]
    /usr/lib/libhfc-native.so.1(end_request+0x129) [0x7f6792dbb9e9]
    [0x4077954c]

Debug info from gdb:

================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

Aborted

AdamGolovenko avatar Dec 13 '17 21:12 AdamGolovenko