Hmm... Did you issue a quit or logout? Or just close the connection?
Does that make any difference? Adding an enable flag would be possible.
-Jon
Jorge Bastos wrote:
>> It seems to me perfect now.
>> John, could it possible for you, just to add a configuration parameter
>> to
>> the [dbmail] section on dbmail.conf, to enable/disable this facility?
>>
>
>
> Ops, not perfect, it dies on logout, both pop3 and imap, traces for pop3 and
> imap below:
>
> (gdb) run -D
> Starting program: /usr/local/sbin/dbmail-pop3d -D
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb75166c0 (LWP 18264)]
> [New Thread 0xb74fcb90 (LWP 18271)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb75166c0 (LWP 18264)]
> db_update_pop (session_ptr=0x8c8a540) at dm_db.c:1786
> 1786 if (msg->virtual_messagestatus !=
> msg->messagestatus) {
> (gdb) bt
> #0 db_update_pop (session_ptr=0x8c8a540) at dm_db.c:1786
> #1 0x0804a0e0 in pop3_session_cleanup (arg=0x8c8a540) at pop3.c:252
> #2 0xb7d62ace in client_session_bailout (session=0xbfb1e37c) at
> clientsession.c:111
> #3 0x0804b721 in pop3_cb_write (arg=0x8c8a540) at pop3.c:217
> #4 0xb7d62b7e in socket_write_cb (fd=16, what=4, arg=0x8c8a540) at
> clientsession.c:167
> #5 0xb7df1d50 in event_base_loop () from /usr/lib/libevent-1.4.so.2
> #6 0xb7df1f49 in event_loop () from /usr/lib/libevent-1.4.so.2
> #7 0xb7df1f6e in event_dispatch () from /usr/lib/libevent-1.4.so.2
> #8 0xb7d618b1 in server_run (conf=0xbfb1e5c0) at server.c:637
> #9 0xb7d625d9 in server_mainloop (config=0xbfb1e5c0, service=0x804c253
> "POP",
> servicename=0x804c602 "dbmail-pop3d") at server.c:761
> #10 0x0804b7d8 in main (argc=2, argv=0xbfb216a4) at pop3d.c:58
> (gdb) f0
> Undefined command: "f0". Try "help".
> (gdb) f 0
> #0 db_update_pop (session_ptr=0x8c8a540) at dm_db.c:1786
> 1786 if (msg->virtual_messagestatus !=
> msg->messagestatus) {
> (gdb) f 1
> #1 0x0804a0e0 in pop3_session_cleanup (arg=0x8c8a540) at pop3.c:252
> 252 if (db_update_pop(session) == DM_SUCCESS) r
> = 1;
> (gdb) f 2
> #2 0xb7d62ace in client_session_bailout (session=0xbfb1e37c) at
> clientsession.c:111
> 111 if(c->session_cleanup) c->session_cleanup(c);
> (gdb) f 3
> #3 0x0804b721 in pop3_cb_write (arg=0x8c8a540) at pop3.c:217
> 217 client_session_bailout(&session);
> (gdb) f 4
> #4 0xb7d62b7e in socket_write_cb (fd=16, what=4, arg=0x8c8a540) at
> clientsession.c:167
> 167 session->ci->cb_write(session);
> (gdb) f 5
> #5 0xb7df1d50 in event_base_loop () from /usr/lib/libevent-1.4.so.2
> (gdb) f 6
> #6 0xb7df1f49 in event_loop () from /usr/lib/libevent-1.4.so.2
> (gdb) f 7
> #7 0xb7df1f6e in event_dispatch () from /usr/lib/libevent-1.4.so.2
> (gdb) f 8
> #8 0xb7d618b1 in server_run (conf=0xbfb1e5c0) at server.c:637
> 637 event_dispatch();
> (gdb) f 9
> #9 0xb7d625d9 in server_mainloop (config=0xbfb1e5c0, service=0x804c253
> "POP",
> servicename=0x804c602 "dbmail-pop3d") at server.c:761
> 761 while (server_run(config)) {
> (gdb) f 10
> #10 0x0804b7d8 in main (argc=2, argv=0xbfb216a4) at pop3d.c:58
> 58 result = server_mainloop(&config, "POP", "dbmail-pop3d");
> (gdb)
>
>
>
> (gdb) run -D
> Starting program: /usr/local/sbin/dbmail-imapd -D
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb75516c0 (LWP 18279)]
> [New Thread 0xb7537b90 (LWP 18282)]
> [New Thread 0xb6d37b90 (LWP 18283)]
> [New Thread 0xb6537b90 (LWP 18284)]
> [New Thread 0xb5d37b90 (LWP 18285)]
> [New Thread 0xb5537b90 (LWP 18286)]
> [New Thread 0xb4d37b90 (LWP 18287)]
> [New Thread 0xb4537b90 (LWP 18288)]
> [New Thread 0xb3d37b90 (LWP 18289)]
> [New Thread 0xb3537b90 (LWP 18290)]
> [New Thread 0xb2d37b90 (LWP 18291)]
> [New Thread 0xb2537b90 (LWP 18292)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb75516c0 (LWP 18279)]
> 0x0805c12b in dbmail_imap_session_delete (self=0x80d9960) at
> dbmail-imapsession.c:166
> 166 db_update("UPDATE %sauthlog SET logout_time=NOW(),
> session_status='closed', bytes_rx='%d', bytes_tx='%d' WHERE ip_address='%s'
> AND src_port='%d' AND session_status='active' AND session_id='%p'",
> (gdb) bt
> #0 0x0805c12b in dbmail_imap_session_delete (self=0x80d9960) at
> dbmail-imapsession.c:166
> #1 0x0804ea4b in imap_session_bailout (session=0x80d9960) at imap4.c:98
> #2 0xb7e2cd50 in event_base_loop () from /usr/lib/libevent-1.4.so.2
> #3 0xb7e2cf49 in event_loop () from /usr/lib/libevent-1.4.so.2
> #4 0xb7e2cf6e in event_dispatch () from /usr/lib/libevent-1.4.so.2
> #5 0xb7d9c8b1 in server_run (conf=0xbfcb53c0) at server.c:637
> #6 0xb7d9d5d9 in server_mainloop (config=0xbfcb53c0, service=0x805c9b4
> "IMAP",
> servicename=0x805f867 "dbmail-imapd") at server.c:761
> #7 0x0805c447 in main (argc=2, argv=0xbfcb84a4) at imapd.c:70
> (gdb) f0
> Undefined command: "f0". Try "help".
> (gdb) f 0
> #0 0x0805c12b in dbmail_imap_session_delete (self=0x80d9960) at
> dbmail-imapsession.c:166
> 166 db_update("UPDATE %sauthlog SET logout_time=NOW(),
> session_status='closed', bytes_rx='%d', bytes_tx='%d' WHERE ip_address='%s'
> AND src_port='%d' AND session_status='active' AND session_id='%p'",
> (gdb) f 1
> #1 0x0804ea4b in imap_session_bailout (session=0x80d9960) at imap4.c:98
> 98 dbmail_imap_session_delete(session);
> (gdb) f 2
> #2 0xb7e2cd50 in event_base_loop () from /usr/lib/libevent-1.4.so.2
> (gdb) f 3
> #3 0xb7e2cf49 in event_loop () from /usr/lib/libevent-1.4.so.2
> (gdb) f 4
> #4 0xb7e2cf6e in event_dispatch () from /usr/lib/libevent-1.4.so.2
> (gdb) f 5
> #5 0xb7d9c8b1 in server_run (conf=0xbfcb53c0) at server.c:637
> 637 event_dispatch();
> (gdb) f 6
> #6 0xb7d9d5d9 in server_mainloop (config=0xbfcb53c0, service=0x805c9b4
> "IMAP",
> servicename=0x805f867 "dbmail-imapd") at server.c:761
> 761 while (server_run(config)) {
> (gdb) f 7
> #7 0x0805c447 in main (argc=2, argv=0xbfcb84a4) at imapd.c:70
> 70 result = server_mainloop(&config, "IMAP", "dbmail-imapd");
> (gdb)
>
> _______________________________________________
> Dbmail-dev mailing list
> [email protected]
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev
>
>
--
Scanned for viruses and dangerous content by MailScanner
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev