[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: Bug#27707: kmail crash: delete in a special constellation
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2001-06-29 11:58:03
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 29 June 2001 01:15, Don Sanders wrote:
> Sorry I still can't reproduce the bug.

:-(

> Can you check that mMsgId is in range below.
> (0 <= mMsgId <  mFolder->count())
>

No, I can't. If I do:

>      const char req_col = (char)column;
>      if(mKey.isEmpty() || mKey.left(1) != &req_col) {
>        KMHeaders *headers = static_cast<KMHeaders*>(listView());
>+       assert( 0<= mMsgId && mMsgId < headers->folder()->count() );
>+       assert( headers->folder()->getMsgBase( mMsgBase );
>        return ((KMHeaderItem *)this)->mKey =
>         generate_key(mMsgId, headers->folder()->getMsgBase( mMsgId ),
>                      headers->paintInfo(), column);
>

The crash does not happen anymore.

> Also please check that headers->folder()->getMsgBase( mMsgId ) is non
> null.

See above.

I'm beginning to suspect a compiler bug, since I'm using:
[mmutz@dirichlet mmutz]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs
gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.44mdk)

Achim, what compiler do you use? Don?

Marc

- -- 
Marc Mutz <Marc@Mutz.com>
http://marc.mutz.com/
http://www.mathematik.uni-bielefeld.de/~mmutz/
http://EncryptionHOWTO.sourceforge.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7PG1Z3oWD+L2/6DgRArstAKC5DyJ1VOglz/qXc+ek90GO1c0QhwCg9l92
Vv8Teylw5a8nCwa0W6g7mkU=
=HzZb
-----END PGP SIGNATURE-----

_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic