After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 60785 - Balsa vanishes in a puff
Balsa vanishes in a puff
Status: VERIFIED FIXED
Product: balsa
Classification: Other
Component: general
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: Balsa Maintainers
Balsa Maintainers
Depends on:
Blocks:
 
 
Reported: 2001-09-20 01:47 UTC by PeterBloomfield
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description PeterBloomfield 2001-09-20 01:47:35 UTC
For some time, I've had intermittent problems with Balsa quitting a
fraction of a second after the main window opens (literally a
fraction--about a single vertical scan). Recently, my IMAP server has been
very slow, and that seems to make it more likely to happen (though still
not certain!).

I used to get a console message about receiving `real time signal 32', but
not since some upgrade--perhaps to RH7.1, concurrent with upgrade to kernel
2.4--perhaps some other component. Gdb has always just reported a normal
exit--no help whatsoever!

This is pretty frustrating, especially with the afore-mentioned IMAP
delays--wait a couple of minutes just to see Balsa vanish in a puff of
smoke!

Any ideas what's going on?

Peter
Comment 1 Pawel Salek 2001-09-20 08:09:09 UTC
I remember similar issues related to certain thread library
configurations. Can you check if this problem occurs with threads
disabled?
Comment 2 PeterBloomfield 2001-09-20 23:21:39 UTC
Good call!  Balsa-with-threads: 0% success; Balsa-without-threads:
100% success (sample size 5 for each).

The situation right now is pretty bad: 900+ ms ping times to my imap
server (2 miles away, but 18 hops!). So a slow startup, at least with
imap, seems to be a definite factor.

I'd better get used to no threads...or fall back on the `fast imap
open' patch I sent in some weeks ago.
Comment 3 Carlos Morgado 2001-09-27 21:51:50 UTC
SIG32 *is* pthread related. On a slow server balsa gets stuck on
read() for much longer so i'd guess a read call is getting a SIG32 and
 mutt code isn't gracefull about that. I'm not sure why it would make
balsa die though.
Comment 4 PeterBloomfield 2001-10-31 13:47:31 UTC
I just caught a sig32 in gdb:

Program received signal SIG32, Real-time event 32.
0x4085a656 in ?? ()
(gdb) bt
  • #0 ??
  • #1 ??
  • #2 ??
  • #3 check_new_messages_real
    at main-window.c line 1724
  • #4 check_new_messages_cb
    at main-window.c line 1746
  • #5 ??
  • #26 ??
  • #27 main
    at main.c line 372
  • #28 ??

Lines 1723-5 are:

    /* initiate threads */
    pthread_create(&get_mail_thread,
                   NULL, (void *) &check_messages_thread, (void *)0);

so it looks as though we were a couple of calls deep in pthread code
when it happened.
Comment 5 Pawel Salek 2001-10-31 13:51:19 UTC
I think balsa dies because the signal is not handled properly. The
question is, why it is not handled. Is it legal to set own handler for
this signal? What about portability?
I would like to know more about pthread internals..
Comment 6 Pawel Salek 2002-01-16 22:19:55 UTC
I have seen it once and it looks like a pthreads problem to me...
Comment 7 Pawel Salek 2002-06-09 22:16:29 UTC
I assume this is fixed with new mailbox tree scanning code. if the
problem reappears, please reopen.
Comment 8 PeterBloomfield 2002-06-10 15:57:28 UTC
You're right, I haven't seen this happen in a while--it could well
have been since the new mailbox handling was installed.
Comment 9 Pawel Salek 2002-08-11 15:51:33 UTC
BTW, balsa-1.3.7 (prerelease of 1.4.0) is available for download:
http://balsa.gnome.org/