Opened 14 years ago

Closed 14 years ago

#7574 closed bug (fixed)

[mail_daemon] crashed somewhere in ssl after killing via Process Controller

Reported by: diver Owned by: czeidler
Priority: normal Milestone: R1
Component: Servers/mail_daemon Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is hrev41752, gcc4hybrid.

While downloading mails from my gmail account mail_daemon hanged.
I waited a couple of minutes and killed it using Process Controller at which point it crashed:

Thread 1065 called debugger(): getNumAvailable() < getNumBlocks()
[Switching to team /boot/system/servers/mail_daemon (1056) thread user thread (1065)]
0xffff0114 in ?? ()
(gdb) bt
#0  0xffff0114 in ?? ()
#1  0x0024a2db in debugger () from /boot/system/lib/libroot.so
#2  0x00254757 in __assert_fail () from /boot/system/lib/libroot.so
#3  0x002be196 in BPrivate::hoardHeap::freeBlock () from /boot/system/lib/libroot.so
#4  0x002beccc in BPrivate::processHeap::free () from /boot/system/lib/libroot.so
#5  0x002bfebe in free () from /boot/system/lib/libroot.so
#6  0x002c024e in realloc () from /boot/system/lib/libroot.so
#7  0x01c16430 in default_realloc_ex () from /boot/common/lib/libcrypto.so.1.0.0
#8  0x00000200 in ?? ()
#9  0x00000000 in ?? ()
#10 0x00000096 in ?? ()
#11 0x00000000 in ?? ()
#12 0x01c16416 in default_realloc_ex () from /boot/common/lib/libcrypto.so.1.0.0
#13 0x01c16a14 in CRYPTO_realloc () from /boot/common/lib/libcrypto.so.1.0.0
#14 0x01d22158 in SYS_str_reasons () from /boot/common/lib/libcrypto.so.1.0.0
#15 0x01d22130 in SYS_str_reasons () from /boot/common/lib/libcrypto.so.1.0.0
#16 0x00000128 in ?? ()
#17 0x00000128 in ?? ()
#18 0x0000000a in ?? ()
#19 0x1810e8d4 in ?? ()
#20 0x01d22158 in SYS_str_reasons () from /boot/common/lib/libcrypto.so.1.0.0
#21 0x01d1ae88 in ?? () from /boot/common/lib/libcrypto.so.1.0.0
#22 0x18112970 in ?? ()
#23 0x00000080 in ?? ()
#24 0x1810e8a0 in ?? ()
#25 0x01c7d662 in lh_insert () from /boot/common/lib/libcrypto.so.1.0.0
#26 0x002fb620 in DoublyLinkedList<AtExitInfoBlock, DoublyLinkedListStandardGetLink<AtExitInfoBlock> >::sGetLink () from /boot/system/lib/libroot.so
#27 0x00000040 in ?? ()
#28 0x00000020 in ?? ()
#29 0x00000021 in ?? ()
#30 0x01d019df in RAND_version () from /boot/common/lib/libcrypto.so.1.0.0
#31 0x02000000 in ?? ()
#32 0x01c7fe24 in int_err_get () from /boot/common/lib/libcrypto.so.1.0.0
#33 0x01d1ae88 in ?? () from /boot/common/lib/libcrypto.so.1.0.0
#34 0x01d019df in RAND_version () from /boot/common/lib/libcrypto.so.1.0.0
#35 0x02000000 in ?? ()
#36 0x01c7fb91 in int_err_set_item () from /boot/common/lib/libcrypto.so.1.0.0
#37 0x00000196 in ?? ()
#38 0x01d019df in RAND_version () from /boot/common/lib/libcrypto.so.1.0.0
#39 0x01d220a0 in strerror_tab.3981 () from /boot/common/lib/libcrypto.so.1.0.0
#40 0x01c7fb48 in int_err_set_item () from /boot/common/lib/libcrypto.so.1.0.0
#41 0x01c7f4ea in err_load_strings () from /boot/common/lib/libcrypto.so.1.0.0
#42 0x01d61f96 in g_probable_mtu () from /boot/common/lib/libssl.so.1.0.0
#43 0x01d63961 in CSWTCH.86 () from /boot/common/lib/libssl.so.1.0.0
#44 0x00000000 in ?? ()
#45 0x01d1ae88 in ?? () from /boot/common/lib/libcrypto.so.1.0.0
#46 0x180847c0 in ?? ()
#47 0x00000000 in ?? ()
#48 0x70143adc in ?? ()
#49 0x01c80b65 in ERR_load_crypto_strings () from /boot/common/lib/libcrypto.so.1.0.0
#50 0x01c80b56 in ERR_load_crypto_strings () from /boot/common/lib/libcrypto.so.1.0.0
#51 0x01d56165 in SSL_load_error_strings () from /boot/common/lib/libssl.so.1.0.0
#52 0x01d56156 in SSL_load_error_strings () from /boot/common/lib/libssl.so.1.0.0
#53 0x01e66c99 in ?? () from /boot/system/add-ons/mail_daemon/inbound_protocols/IMAP
#54 0x00849f18 in ?? () from /boot/system/lib/libstdc++.so
#55 0x01e6e9ac in ?? () from /boot/system/add-ons/mail_daemon/inbound_protocols/IMAP
#56 0x70143adc in ?? ()
#57 0x180847c0 in ?? ()
#58 0x180847d4 in ?? ()
#59 0x180847d4 in ?? ()
#60 0x00000000 in ?? ()
#61 0x0081d501 in std::bad_cast::~bad_cast () from /boot/system/lib/libstdc++.so
Previous frame inner to this frame (corrupt stack?)
(gdb)

Change History (2)

comment:1 by czeidler, 14 years ago

I'm aware of this bug and looked into it just yesterday but haven't found a solution yet. Was wondering why nobody else is seeing it because my setup crashes every third time when I start the server :)

comment:2 by czeidler, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev41828.

Note: See TracTickets for help on using tickets.