Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Paul J Stevens пишет: Ah, you are using invalid UID FETCH commands. Yep) Fixed now. confirm ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Ah, you are using invalid UID FETCH commands. Fixed now. Artem Bokhan wrote: > paul/dbmail? it is still buggy > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1216903488 (LWP 16035)] > 0xb7b627a9 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 > (gdb) bt full > #0 0xb7b627a9 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 > No symbol table info available. > #1 0x08054d60 in _ic_uid (self=0x80ae430) at imapcommands.c:2009 > No locals. > #2 0x0804f26a in imap_handle_input (session=0x80ae430) at imap4.c:530 >buffer = "4\000uid fetch 1:* (flags\n", '\0' >l = >result = >__func__ = "imap_handle_input" > #3 0xb7ce2455 in event_base_loop () from /usr/lib/libevent-1.1a.so.1 > No symbol table info available. > #4 0xb7ce26c5 in event_loop () from /usr/lib/libevent-1.1a.so.1 > No symbol table info available. > #5 0xb7ce26e9 in event_dispatch () from /usr/lib/libevent-1.1a.so.1 > No symbol table info available. > #6 0xb7c6795b in server_run (conf=0xbfb0fd80) at server.c:632 >ip = >__PRETTY_FUNCTION__ = "server_run" >__func__ = "server_run" > #7 0xb7c68caf in server_mainloop (config=0xbfb0fd80, service=0x805c047 > "IMAP", servicename=0x0) at server.c:756 >__func__ = "server_mainloop" > #8 0x0805b8d3 in main (argc=0, argv=0x0) at imapd.c:70 >config = {no_daemonize = 0, log_verbose = 0, pidFile = 0x80acc38 > "/var/run/dbmail/dbmail-imapd.pid", timeout = 4000, login_timeout = 60, > iplist = 0x806bae8, ipcount = 1, listenSockets = 0x8075500, > ssl_listenSockets = 0x0, service_before_smtp = 0, port = 143, ssl_port = > 0, ssl = 0, > backlog = 16, resolveIP = 0, service_name = "IMAP", '\0' times>, process_name = "dbmail-imapd", '\0' , > serverUser = "nobody", '\0' , serverGroup = > "nogroup", '\0' , socket = '\0' , > log = "/var/log/dbmail.log", '\0' , error_log = > "/var/log/dbmail.err", '\0' , > pid_dir = "/var/run/dbmail", '\0' , tls_cafile = > '\0' , tls_cert = '\0' , > tls_key = '\0' , tls_ciphers = '\0' times>, ClientHandler = 0x804e916 } >result = 0 >__func__ = "main" > > > Paul J Stevens пишет: >> Artem, >> >> Please checkout the latest code. I've fixed an off-by-one error that >> would have been responsible for corrupted buffers, which might explain >> this behaviour. >> >> Artem Bokhan wrote: >> >>> Paul J Stevens пишет: >>> x login testuser1 test x select inbox x uid fetch 1:* (flags) so I assume there is something else inbetween the login and fetch commands that is (partially) causing this. >>> The last command does not have one bracket) >>> ___ >>> Dbmail-dev mailing list >>> Dbmail-dev@dbmail.org >>> http://twister.fastxs.net/mailman/listinfo/dbmail-dev >>> >>> >> >> >> > > ___ > Dbmail-dev mailing list > Dbmail-dev@dbmail.org > http://twister.fastxs.net/mailman/listinfo/dbmail-dev > -- Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlandshttp://www.nfg.nl ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
paul/dbmail? it is still buggy Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1216903488 (LWP 16035)] 0xb7b627a9 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt full #0 0xb7b627a9 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 No symbol table info available. #1 0x08054d60 in _ic_uid (self=0x80ae430) at imapcommands.c:2009 No locals. #2 0x0804f26a in imap_handle_input (session=0x80ae430) at imap4.c:530 buffer = "4\000uid fetch 1:* (flags\n", '\0' l = result = __func__ = "imap_handle_input" #3 0xb7ce2455 in event_base_loop () from /usr/lib/libevent-1.1a.so.1 No symbol table info available. #4 0xb7ce26c5 in event_loop () from /usr/lib/libevent-1.1a.so.1 No symbol table info available. #5 0xb7ce26e9 in event_dispatch () from /usr/lib/libevent-1.1a.so.1 No symbol table info available. #6 0xb7c6795b in server_run (conf=0xbfb0fd80) at server.c:632 ip = __PRETTY_FUNCTION__ = "server_run" __func__ = "server_run" #7 0xb7c68caf in server_mainloop (config=0xbfb0fd80, service=0x805c047 "IMAP", servicename=0x0) at server.c:756 __func__ = "server_mainloop" #8 0x0805b8d3 in main (argc=0, argv=0x0) at imapd.c:70 config = {no_daemonize = 0, log_verbose = 0, pidFile = 0x80acc38 "/var/run/dbmail/dbmail-imapd.pid", timeout = 4000, login_timeout = 60, iplist = 0x806bae8, ipcount = 1, listenSockets = 0x8075500, ssl_listenSockets = 0x0, service_before_smtp = 0, port = 143, ssl_port = 0, ssl = 0, backlog = 16, resolveIP = 0, service_name = "IMAP", '\0' times>, process_name = "dbmail-imapd", '\0' , serverUser = "nobody", '\0' , serverGroup = "nogroup", '\0' , socket = '\0' , log = "/var/log/dbmail.log", '\0' , error_log = "/var/log/dbmail.err", '\0' , pid_dir = "/var/run/dbmail", '\0' , tls_cafile = '\0' , tls_cert = '\0' , tls_key = '\0' , tls_ciphers = '\0' times>, ClientHandler = 0x804e916 } result = 0 __func__ = "main" Paul J Stevens пишет: Artem, Please checkout the latest code. I've fixed an off-by-one error that would have been responsible for corrupted buffers, which might explain this behaviour. Artem Bokhan wrote: Paul J Stevens пишет: x login testuser1 test x select inbox x uid fetch 1:* (flags) so I assume there is something else inbetween the login and fetch commands that is (partially) causing this. The last command does not have one bracket) ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Artem, Please checkout the latest code. I've fixed an off-by-one error that would have been responsible for corrupted buffers, which might explain this behaviour. Artem Bokhan wrote: > Paul J Stevens пишет: >> >> x login testuser1 test >> x select inbox >> x uid fetch 1:* (flags) >> >> so I assume there is something else inbetween the login and fetch >> commands that is (partially) causing this. >> >> > The last command does not have one bracket) > ___ > Dbmail-dev mailing list > Dbmail-dev@dbmail.org > http://twister.fastxs.net/mailman/listinfo/dbmail-dev > -- Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlandshttp://www.nfg.nl ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Paul J Stevens пишет: x login testuser1 test x select inbox x uid fetch 1:* (flags) so I assume there is something else inbetween the login and fetch commands that is (partially) causing this. The last command does not have one bracket) ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Bokhan Artem wrote: > #2 0x0804f27d in imap_handle_input (session=0xb1508aa0) at imap4.c:531 >buffer = "3\000UID fetch 1:* (FLAGS\n", '\0' >l = >result = >__func__ = "imap_handle_input" That doesn't look good. Is there a specific imap command that precedes this? I can't reproduce this using: x login testuser1 test x select inbox x uid fetch 1:* (flags) so I assume there is something else inbetween the login and fetch commands that is (partially) causing this. -- Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlandshttp://www.nfg.nl ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Paul J Stevens пишет: Simple tests like you did should of course never fail, so I do appreciate 'bt full' backtraces of crashes if you think I may have missed something. ee104778cf6fedc5b77544120159ec28eeccd87c commit gdb /usr/local/opt/dbmail-git/sbin/dbmail-imapd 3458 GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". Attaching to program: /usr/local/opt/dbmail-git/sbin/dbmail-imapd, process 3458 Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...done. Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1 Reading symbols from /usr/local/opt/gmime-2.2.22/lib/libgmime-2.0.so.2...done. Loaded symbols for /usr/local/opt/gmime-2.2.22/lib/libgmime-2.0.so.2 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done. Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1 Reading symbols from /usr/local/opt/glibc-2.14.5/lib/libgobject-2.0.so.0...done. Loaded symbols for /usr/local/opt/glibc-2.14.5/lib/libgobject-2.0.so.0 Reading symbols from /usr/local/opt/glibc-2.14.5/lib/libglib-2.0.so.0...done. Loaded symbols for /usr/local/opt/glibc-2.14.5/lib/libglib-2.0.so.0 Reading symbols from /lib/tls/i686/cmov/libm.so.6...done. Loaded symbols for /lib/tls/i686/cmov/libm.so.6 Reading symbols from /usr/lib/libmhash.so.2...done. Loaded symbols for /usr/lib/libmhash.so.2 Reading symbols from /usr/lib/libevent-1.1a.so.1...done. Loaded symbols for /usr/lib/libevent-1.1a.so.1 Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done. Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8 Reading symbols from /usr/local/opt/libzdb2.3/lib/libzdb-2.3.so.5...done. Loaded symbols for /usr/local/opt/libzdb2.3/lib/libzdb-2.3.so.5 Reading symbols from /usr/local/opt/dbmail-git/lib/dbmail/libdbmail.so.0...done. Loaded symbols for /usr/local/opt/dbmail-git/lib/dbmail/libdbmail.so.0 Reading symbols from /lib/tls/i686/cmov/libc.so.6...done. Loaded symbols for /lib/tls/i686/cmov/libc.so.6 Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread -1216211264 (LWP 3458)] [New Thread -1292051536 (LWP 3473)] [New Thread -1283658832 (LWP 3472)] [New Thread -1275266128 (LWP 3471)] [New Thread -1266873424 (LWP 3470)] [New Thread -1258480720 (LWP 3469)] [New Thread -1250088016 (LWP 3468)] [New Thread -1241695312 (LWP 3467)] [New Thread -1233302608 (LWP 3466)] [New Thread -1224909904 (LWP 3465)] [New Thread -1216517200 (LWP 3464)] Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0 Reading symbols from /usr/local/opt/glibc-2.14.5/lib/libgmodule-2.0.so.0...done. Loaded symbols for /usr/local/opt/glibc-2.14.5/lib/libgmodule-2.0.so.0 Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libdl.so.2 Reading symbols from /usr/local/opt/glibc-2.14.5/lib/libgthread-2.0.so.0...done. Loaded symbols for /usr/local/opt/glibc-2.14.5/lib/libgthread-2.0.so.0 Reading symbols from /lib/tls/i686/cmov/librt.so.1...done. Loaded symbols for /lib/tls/i686/cmov/librt.so.1 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done. Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8 Reading symbols from /usr/lib/libpq.so.4...done. Loaded symbols for /usr/lib/libpq.so.4 Reading symbols from /usr/lib/libmysqlclient.so.15...done. Loaded symbols for /usr/lib/libmysqlclient.so.15 Reading symbols from /usr/lib/libkrb5.so.3...done. Loaded symbols for /usr/lib/libkrb5.so.3 Reading symbols from /lib/libcom_err.so.2...done. Loaded symbols for /lib/libcom_err.so.2 Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2 Reading symbols from /usr/lib/libk5crypto.so.3...done. Loaded symbols for /usr/lib/libk5crypto.so.3 Reading symbols from /usr/lib/libkrb5support.so.0...done. Loaded symbols for /usr/lib/libkrb5support.so.0 Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2 Reading symbols from /usr/local/opt/dbmail-git/lib/dbmail/libauth_sql.so...done. Loaded symbols for /usr/local/opt/dbmail-git/lib/dbmail/libauth_sql.so Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2 Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2 Reading symbols from /usr/lib/gconv/ISO8859-5.so...done. Loaded symbols for /usr/li
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Bokhan Artem wrote: > >> Fix them. Really! Or if you really can't: post it here on the dev list. >> > I can't do by myself, but I'm looking for a special person for doing > that. I really understand your environment and appreciate your job, > interpret my messages with info or notice severity, please. I have an > impression that you feel hurt of my messages, that's wrong. (bad > english, sorry). Wrong impression. You seem to know what you are doing. I appreciate that, and your interest in this project. Just trying to explain how I would like to work. Hope you find that person :-) I very much try to be cooperative with people submitting patches. -- Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlandshttp://www.nfg.nl ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Fix them. Really! Or if you really can't: post it here on the dev list. I can't do by myself, but I'm looking for a special person for doing that. I really understand your environment and appreciate your job, interpret my messages with info or notice severity, please. I have an impression that you feel hurt of my messages, that's wrong. (bad english, sorry). ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Bokhan Artem wrote: > Mantis Bug Tracker пишет: >> Please do *not* file bugs against unreleased versions. > Ignore them/post to dev list? Fix them. Really! Or if you really can't: post it here on the dev list. I cannot afford to waste time investigating what may well have been fixed in my working tree. I rather spent it on useful stuff, like buffered reads. For me, getting regression reports about my .eu branch here on the list is much less cumbersome. I'd also rather not pollute the tracker with transient bugs in a moving target. Always inbetween changes, and prior to releases as well, of course I try to do all kinds of unit, profile, stress and regression-testing. But I'm just one person doing this after hours; so I'm not doing it before every single git-push. Simple tests like you did should of course never fail, so I do appreciate 'bt full' backtraces of crashes if you think I may have missed something. Things will start breaking differently again soon, after I push out the buffered read changes. That will be a quite invasive change in several critical parts of the code. But lmtp performance should improve drastically - as far as cpu load is concerned. Until that change is done and I've finished my own testing, the .eu branch will be silent. until later, -- Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlandshttp://www.nfg.nl ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
Re: [Dbmail-dev] [DBMail 0000770]: segfault in git
Mantis Bug Tracker пишет: Please do *not* file bugs against unreleased versions. Ignore them/post to dev list? ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
[Dbmail-dev] [DBMail 0000770]: segfault in git
The following issue has been CLOSED == http://www.dbmail.org/mantis/view.php?id=770 == Reported By:art Assigned To: == Project:DBMail Issue ID: 770 Category: IMAP daemon Reproducibility:always Severity: minor Priority: normal Status: closed target: Resolution: won't fix Fixed in Version: == Date Submitted: 22-Feb-09 17:23 CET Last Modified: 22-Feb-09 18:47 CET == Summary:segfault in git Description: segfault in imapd == -- (0002788) paul (administrator) - 22-Feb-09 18:47 http://www.dbmail.org/mantis/view.php?id=770#c2788 -- Please do *not* file bugs against unreleased versions. Issue History Date ModifiedUsername FieldChange == 22-Feb-09 17:23 artNew Issue 22-Feb-09 18:47 paul Note Added: 0002788 22-Feb-09 18:47 paul Status new => closed 22-Feb-09 18:47 paul Resolution open => won't fix == ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
[Dbmail-dev] [DBMail 0000770]: segfault in git
The following issue has been SUBMITTED. == http://www.dbmail.org/mantis/view.php?id=770 == Reported By:art Assigned To: == Project:DBMail Issue ID: 770 Category: IMAP daemon Reproducibility:always Severity: minor Priority: normal Status: new target: == Date Submitted: 22-Feb-09 17:23 CET Last Modified: 22-Feb-09 17:23 CET == Summary:segfault in git Description: segfault in imapd == Issue History Date ModifiedUsername FieldChange == 22-Feb-09 17:23 artNew Issue == ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev