While trying to use imaptest (-20100922, from http://dovecot.org/nightly/imaptest/imaptest-latest.tar.gz) with the included tests directory, it assert-crashes after a suspicious connect() failure:
$ ./imaptest user=foo pass=bar host=localhost test=tests Error: connect() failed: No route to host Panic: file test-exec.c: line 903 (test_send_lstate_commands): assertion failed: (ctx->clients_waiting > 0) Error: Raw backtrace: 2 libdovecot.0.dylib 0x0000000102afadfd default_fatal_finish + 35 -> 3 libdovecot.0.dylib 0x0000000102af9b87 i_set_error_handler + 0 -> 4 libdovecot.0.dylib 0x0000000102afa986 default_handler + 0 -> 5 imaptest 0x0000000102ac2966 test_send_lstate_commands + 1016 -> 6 imaptest 0x0000000102ab7acd client_send_more_commands + 28 -> 7 imaptest 0x0000000102ab7f42 client_input + 394 -> 8 libdovecot.0.dylib 0x0000000102b01112 io_loop_call_io + 70 -> 9 libdovecot.0.dylib 0x0000000102b003ba io_loop_handler_run + 227 -> 10 libdovecot.0.dylib 0x0000000102b010bf io_loop_run + 72 -> 11 imaptest 0x0000000102abce4c main + 2538 -> 12 imaptest 0x0000000102ab6aa0 start + 52 Abort trap: 6
This seems to happen with any test which uses more than one connection. Tests with "connections: 1" at the top work fine.