Re: [Libevent-users] Re: help with debugging

2010-10-29 Thread Mihai Draghicioiu
Ok, I think i've found a http bug/feature. This might be the cause for the crash described previously. Basically what happens is that the http event callback gets called with the evhttp_request pointer being null if there is a http error (like a dns timeout in my case). I just made the callback ret

Re: [Libevent-users] Re: help with debugging

2010-10-24 Thread Mihai Draghicioiu
Well, in the meanwhile i've fixed this by reusing an existing evhttp connection several times, and if it closes down i just create it again. This way it hasn't crashed although someone reported to me an assertion fail inside the libevent code somewhere. I'll try to retrieve it somehow. Another que

Re: [Libevent-users] Re: help with debugging

2010-10-24 Thread Nick Mathewson
On Sun, Sep 19, 2010 at 4:23 AM, Mihai Draghicioiu wrote: > Alright, i think i found the bug -- still not sure whether it's me or > the library, but: Hi, and sorry about the long delay. I'm trying to clear my long backlog of evhttp-related stuff. I'm still trying to feel my way around the evhtt

Re: [Libevent-users] Re: help with debugging

2010-09-19 Thread Mihai Draghicioiu
My app is not using threads by itself. If there are any extra threads, they are made by libevent internally, as far as i know. See my other reply, i think i've figured the crash out. To answer your question, it seems a DNS timeout triggers the crash. On Sat, Sep 18, 2010 at 8:17 PM, Mark Ellzey w

Re: [Libevent-users] Re: help with debugging

2010-09-19 Thread Mihai Draghicioiu
Alright, i think i found the bug -- still not sure whether it's me or the library, but: Valgrind trace: ==8517== ==8517== Invalid read of size 4 ==8517==at 0x80A1AF1: evhttp_request_get_input_buffer (in /home/mihai/frogmod-justice/frogserv) ==8517==by 0x8071FE2: _ZN6serverL13http_event_cb

Re: [Libevent-users] Re: help with debugging

2010-09-18 Thread Mark Ellzey
On Fri, Sep 17, 2010 at 10:29:08AM -0400, Nick Mathewson wrote: > On Fri, Sep 17, 2010 at 5:22 AM, Mihai Draghicioiu > wrote: > [...] > > Core was generated by `/home/mihai/frogmod-justice/frogserv'. > > Program terminated with signal 11, Segmentation fault. > > [New process 14829] > > #0 ?evhttp_

Re: [Libevent-users] Re: help with debugging

2010-09-17 Thread Nick Mathewson
On Fri, Sep 17, 2010 at 5:22 AM, Mihai Draghicioiu wrote: [...] > Core was generated by `/home/mihai/frogmod-justice/frogserv'. > Program terminated with signal 11, Segmentation fault. > [New process 14829] > #0  evhttp_request_get_input_buffer (req=0x99d90f8) at http.c:3014 > 3014    { > (gdb) up

[Libevent-users] Re: help with debugging

2010-09-17 Thread Mihai Draghicioiu
The crash seems to happen approximately daily. Here's more debugging text. mi...@evo:~/frogmod-justice$ gdb frogserv core.14829 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: