Discussion:
cyrus imap 2.5.5 build in Linux: problem with unit test, test "badservice" failed
Sergey
2015-10-16 19:33:18 UTC
Permalink
Hello.

I found what Cyrus IMAP contains unit tests now.
I try it but test failed:

Test: setentryatt ...passed
Test: clearentryatt ...passed
Suite: backend
Test: badhost ...passed
Test: badservice ...lt-unit: threads.c:342: krb5int_key_register: Assertion `destructors_set[keynum] == 0' failed.
/bin/sh: line 10: 791 Aborted $vg ./unit $f
make[3]: *** [check-local] Error 134
lt-unit: threads.c:342: krb5int_key_register: Assertion `destructors_set[keynum] == 0' failed.

Is this a bug of Cyrus IMAP or Is this a bug of my build environment ?
--
Regards,
Sergey
ellie timoney
2015-10-18 22:44:53 UTC
Permalink
Post by Sergey
Assertion `destructors_set[keynum] == 0' failed.
/bin/sh: line 10: 791 Aborted $vg ./unit $f
This looks like it's related to krb5 somehow, which I know nothing
about. Can someone who uses or has used Cyrus with Kerberos chime in
please?
Post by Sergey
Is this a bug of Cyrus IMAP or Is this a bug of my build environment ?
Hard to say at this point. It would help if you would attach your
config.log, and include the commands you run (not just their output), in
your emails.

Cheers,

ellie
Post by Sergey
Hello.
I found what Cyrus IMAP contains unit tests now.
Test: setentryatt ...passed
Test: clearentryatt ...passed
Suite: backend
Test: badhost ...passed
Assertion `destructors_set[keynum] == 0' failed.
/bin/sh: line 10: 791 Aborted $vg ./unit $f
make[3]: *** [check-local] Error 134
lt-unit: threads.c:342: krb5int_key_register: Assertion
`destructors_set[keynum] == 0' failed.
Is this a bug of Cyrus IMAP or Is this a bug of my build environment ?
--
Regards,
Sergey
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Sergey
2015-10-19 14:32:35 UTC
Permalink
Post by ellie timoney
Post by Sergey
Assertion `destructors_set[keynum] == 0' failed.
/bin/sh: line 10: 791 Aborted $vg ./unit $f
This looks like it's related to krb5 somehow, which I know nothing
about. Can someone who uses or has used Cyrus with Kerberos chime in
please?
I found messages with similag error (threads.c:342: krb5int_key_register ...)
with krb5-1.13 (I use 1.13.1) in Google. I attempted to rollback to krb5 1.12
and test was passed. That is probably it is the problem of krb5.
--
Regards, Sergey
Sergey
2018-09-15 11:27:52 UTC
Permalink
Post by Sergey
I found messages with similag error (threads.c:342: krb5int_key_register ...)
with krb5-1.13 (I use 1.13.1) in Google. I attempted to rollback to krb5 1.12
and test was passed. That is probably it is the problem of krb5.
The problem remains with Cyrus-IMAP 3.0.8 and krb5-1.16.1:

Suite: backend
Test: badhost ...passed
Test: badservice ...lt-unit: threads.c:353: krb5int_key_register: Assertion `destructors_set[keynum] == 0' failed.

Ivan A. Melnikov found an interesting nuance (sorry, comments on Russian):
https://bugzilla.altlinux.org/show_bug.cgi?id=31381#c9

In short: test suite is not passed in all, but it passed by one by one.

It works:

for test in `./unit -l | grep backend` ; do ./unit -v "$test"; done

It isn't:

./unit -v "backend"
--
Regards,
Sergey
ellie timoney
2018-09-17 03:21:41 UTC
Permalink
Interesting, that sounds like the backend suite has some state that's not being cleaned up/reinitialised properly between tests! Thanks for the report :)

I've raised this as https://github.com/cyrusimap/cyrus-imapd/issues/2526
Post by Sergey
Post by Sergey
I found messages with similag error (threads.c:342: krb5int_key_register ...)
with krb5-1.13 (I use 1.13.1) in Google. I attempted to rollback to krb5 1.12
and test was passed. That is probably it is the problem of krb5.
Suite: backend
Test: badhost ...passed
Assertion `destructors_set[keynum] == 0' failed.
https://bugzilla.altlinux.org/show_bug.cgi?id=31381#c9
In short: test suite is not passed in all, but it passed by one by one.
for test in `./unit -l | grep backend` ; do ./unit -v "$test"; done
./unit -v "backend"
--
Regards,
Sergey
ellie timoney
2018-09-17 04:06:54 UTC
Permalink
Does this patch help? https://github.com/cyrusimap/cyrus-imapd/commit/1cd8e90305093970d5d5953138a2ef8a723ea96f
Post by ellie timoney
Interesting, that sounds like the backend suite has some state that's
not being cleaned up/reinitialised properly between tests! Thanks for
the report :)
I've raised this as https://github.com/cyrusimap/cyrus-imapd/issues/2526
Post by Sergey
Post by Sergey
I found messages with similag error (threads.c:342: krb5int_key_register ...)
with krb5-1.13 (I use 1.13.1) in Google. I attempted to rollback to krb5 1.12
and test was passed. That is probably it is the problem of krb5.
Suite: backend
Test: badhost ...passed
Assertion `destructors_set[keynum] == 0' failed.
https://bugzilla.altlinux.org/show_bug.cgi?id=31381#c9
In short: test suite is not passed in all, but it passed by one by one.
for test in `./unit -l | grep backend` ; do ./unit -v "$test"; done
./unit -v "backend"
--
Regards,
Sergey
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Sergey
2018-09-17 14:55:35 UTC
Permalink
Post by ellie timoney
Does this patch help?
https://github.com/cyrusimap/cyrus-imapd/commit/1cd8e90305093970d5d5953138a2ef8a723ea96f
No, the error remains.
--
Regards,
Sergey
Loading...