Niels Provos wrote:
> Thanks for the patches.  I removed the default timeout.  Your patch
> had a bug where timeout_correct no longer set event_tv correctly.  I
> fixed that.

Oh, nice catch, thanks.

> Unfortunatley, the regression test currently fails on Mac
> OS X when compiled with -O2.  Still trying to figure that one out.

Hmm, I'm seeing failures, too. This one on OS X:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000034
http_postrequest_done (req=0x0, arg=0x0) at regress_http.c:520
520             if (req->response_code != HTTP_OK) {
(gdb) bt
#0  http_postrequest_done (req=0x0, arg=0x0) at regress_http.c:520
#1  0x00026d87 in evhttp_connection_fail (evcon=0x300540,
error=EVCON_HTTP_TIMEOUT) at http.c:522
#2  0x000227ab in event_base_loop (base=0x300180, flags=0) at event.c:331
#3  0x00022a2f in event_loop (flags=0) at event.c:381
#4  0x00022a47 in event_dispatch () at event.c:345
#5  0x00004bbf in http_post_test () at regress_http.c:468
#6  0x0000554a in http_suite () at regress_http.c:728
#7  0x00003f12 in main (argc=1, argv=0xbffff3ac) at regress.c:1052

Here's the relevant bit from frame #1:

521        if (req->cb != NULL)
522                (*req->cb)(NULL, req->cb_arg);

So that test will cause bus errors any time the http connection fails.
Any particular reason it's passing NULL here rather than req? It hasn't
been deleted yet.

Haven't checked why the connection failed, and there's some different
failure (also in HTTP) on Linux. I might look more closely when I'll
less sleepy.

Best regards,
Scott
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to