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 306666 - balsa: new user initialisation segfault
balsa: new user initialisation segfault
Status: RESOLVED FIXED
Product: balsa
Classification: Other
Component: general
2.3.x
Other Linux
: Normal major
: ---
Assigned To: Balsa Maintainers
Balsa Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-06 14:46 UTC by Andrew Lau
Modified: 2006-08-07 22:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
Proposed patch (1.10 KB, patch)
2005-06-06 15:44 UTC, Pawel Salek
none Details | Review

Description Andrew Lau 2005-06-06 14:46:55 UTC
Distribution/Version: Debian GNU/Linux (unstable)

Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=312083
Submitter: Daniele Giacomini <daniele@swlibero.org>

Backtrace was generated from '/usr/bin/balsa'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
...
[Thread debugging using libthread_db enabled]
[New Thread -1228552896 (LWP 9139)]
(no debugging symbols found)
...
0xb74ab53e in __waitpid_nocancel () from /lib/tls/libpthread.so.0

Thread 1 (Thread -1228552896 (LWP 9139))

  • #0 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #1 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #2 <signal handler called>
  • #3 fgets
    from /lib/tls/libc.so.6
  • #4 libbalsa_guess_email_address
  • #5 balsa_druid_page_finish
  • #6 balsa_druid_page_user
  • #7 balsa_init_begin
  • #8 balsa_init_begin
  • #9 balsa_window_select_all
  • #10 main
  • #0 __waitpid_nocancel
    from /lib/tls/libpthread.so.0

Comment 1 Pawel Salek 2005-06-06 15:44:45 UTC
Created attachment 47326 [details] [review]
Proposed patch

There was a race and incorrect buffer length test in guessing the email addres.
Please check the attached patch.
Comment 2 Pawel Salek 2006-08-07 22:06:17 UTC
Closing the report. Current CVS version not only assures that the buffer sizes are right but also checks results of IO operations.