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 86657 - crashing reading HTML mail
crashing reading HTML mail
Status: RESOLVED FIXED
Product: gtkhtml2
Classification: Deprecated
Component: General
unspecified
Other other
: High critical
: ---
Assigned To: Anders Carlsson
Anders Carlsson
: 96396 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-06-27 21:40 UTC by thehaas
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Amazon HTML mail that crashes gtkhtml (59.48 KB, text/html)
2002-07-04 14:37 UTC, thehaas
  Details
Sample html file (141 bytes, text/html)
2002-07-31 13:19 UTC, Satyajit Kanungo
  Details
Proposed patch (982 bytes, patch)
2002-12-24 11:52 UTC, padraig.obriain
none Details | Review

Description thehaas 2002-06-27 21:40:27 UTC
Package: balsa
Severity: major
Version: 2.0.1
Synopsis: crashing reading HTML mail
Bugzilla-Product: balsa
Bugzilla-Component: general
BugBuddy-GnomeVersion: 2.0 (2.0.1)

Description:
Description of Problem:
Some HTML mail messages I get crash balsa -- whether it's just freezing
the app or (as this case) starting Bug Buddy.

Amazon.com's messages freeze up Balsa half the time (always the same
messages).  This time Netgrocer's message crashed it.





Debugging Information:

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

0x40ffa219 in wait4 () from /lib/libc.so.6
  • #0 wait4
    from /lib/libc.so.6
  • #1 __check_rhosts_file
    from /lib/libc.so.6
  • #2 waitpid
    from /lib/libpthread.so.0
  • #3 libgnomeui_segv_handle
    at gnome-ui-init.c line 620
  • #4 pthread_kill
    from /lib/libpthread.so.0
  • #5 sigaction
    from /lib/libc.so.6
  • #6 css_matcher_get_style
    at cssmatcher.c line 2784
  • #7 html_document_node_inserted_traverser
    at htmldocument.c line 247
  • #8 html_document_new_node
    at htmldocument.c line 405
  • #9 g_cclosure_marshal_VOID__OBJECT
    at gmarshal.c line 636
  • #10 g_closure_invoke
    at gclosure.c line 437
  • #11 signal_emit_unlocked_R
    at gsignal.c line 2341
  • #12 g_signal_emit_valist
    at gsignal.c line 2100
  • #13 g_signal_emit
    at gsignal.c line 2144
  • #14 html_startElement
    at htmlparser.c line 42
  • #15 htmlParseCharRef
    from /usr/lib/libxml2.so.2
  • #16 htmlParseDocument
    from /usr/lib/libxml2.so.2
  • #17 htmlParseChunk
    from /usr/lib/libxml2.so.2
  • #18 html_parser_stream_write
    at htmlparser.c line 153
  • #19 html_stream_write
    at htmlstream.c line 85
  • #20 html_document_write_stream
    at htmldocument.c line 696
  • #21 part_info_init_html
    at balsa-message.c line 1644
  • #22 part_info_init_mimetext
    at balsa-message.c line 1534
  • #23 part_info_init
    at balsa-message.c line 1708
  • #24 add_part
    at balsa-message.c line 2319
  • #25 add_multipart
    at balsa-message.c line 2233
  • #26 add_part
    at balsa-message.c line 2332
  • #27 select_part
    at balsa-message.c line 2375
  • #28 balsa_message_set
    at balsa-message.c line 533
  • #29 idle_handler_cb
    at balsa-index.c line 1978
  • #30 g_idle_dispatch
    at gmain.c line 3129
  • #31 g_main_dispatch
    at gmain.c line 1617
  • #32 g_main_context_iterate
    at gmain.c line 2161
  • #33 g_main_loop_run
    at gmain.c line 2462
  • #34 gtk_main
    at gtkmain.c line 936
  • #35 main
    at main.c line 438
  • #36 __libc_start_main
    from /lib/libc.so.6




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-06-27 17:40 -------

The original reporter (thehaas@binary.net) of this bug does not have an account here.
Reassigning to the exporter, unknown@bugzilla.gnome.org.
Reassigning to the default owner of the component, pawsa@theochem.kth.se.

Comment 1 Pawel Salek 2002-06-27 21:48:19 UTC
Excellent :-). Can you please attach to the report such a html part (I
can hel you if you need help extracting it).

Please report also version of libgtkhtml:
# pkg-config --modversion libgtkhtml-2.0

Reassigning to libgtkhtml.
Comment 2 Luis Villa 2002-06-28 03:40:42 UTC
Possibly a recurrence of bug 83085?
Comment 3 thehaas 2002-06-28 11:52:22 UTC
unfortutately, I erased the message causing this problem (since it
prevents me from reading the rest of my mail in Balsa).  When I get
another one, I will extract it and attach it.

I am running libgtkhtml-2.0.0:
103 gideon:~ > pkg-config --modversion libgtkhtml-2.0
2.0.0
Comment 4 thehaas 2002-07-04 14:37:56 UTC
Created attachment 9635 [details]
Amazon HTML mail that crashes gtkhtml
Comment 5 Satyajit Kanungo 2002-07-25 14:10:54 UTC
I tried opening the html file (attached) with gtkhtml and it 
hangs the window. But I don't get a crash. Do you also see the 
hang (freeze as you have mentioned)  or it crashes for you everytime.
Comment 6 Satyajit Kanungo 2002-07-31 13:17:48 UTC
The hang can be reproduced with any html file which 
-has no <body> tag and
-has <select> tag inside a <table> tag and
-the table width is more than the width of the window.

Only when all the above condition is true (as also in the case 
of the attached html file) , gtkhtml is unable to load the page 
and it hangs.

Attaching a sample html file. Open it in a window of width less than 
600 (< 600).

Comment 7 Satyajit Kanungo 2002-07-31 13:19:41 UTC
Created attachment 10149 [details]
Sample html file
Comment 8 Mikael Hallendal 2002-08-04 16:05:37 UTC
Hmm .. Satyajit, could this be related to:
http://bugzilla.gnome.org/show_bug.cgi?id=84895

and if so, did the patch solve this one too?.
Comment 9 Satyajit Kanungo 2002-08-04 16:41:41 UTC
No mike ..this is not related to 84895. But again this is also
some intialization/value not getting set properly, kind of issue.
I have a patch , shall put it after some testing.
 
Comment 10 Mikael Hallendal 2002-08-04 16:44:10 UTC
Satyajit, ok, great!

btw, does balsa use gtkhtml2?
Comment 11 Satyajit Kanungo 2002-08-04 16:52:52 UTC
well i don't have balsa installed :)(and it's not ported to gnome2.0
I think ), I tried the sample html in gtkhtml2 and got the hang
problem and I hope this should solve the balsa problem also (or am I 
trying to fix some other issue ???? ) 
Comment 12 Pawel Salek 2002-08-04 20:04:08 UTC
Balsa links against libgtkhtml-2.0 (port to gnome2 is in BALSA_2 branch).
Comment 13 Karl Gaffney 2002-10-08 16:19:39 UTC
satyajit - is this fixed for you now?
Comment 14 Luis Villa 2002-11-12 05:24:44 UTC
Satyajit: did this patch get applied?
Comment 15 Satyajit Kanungo 2002-11-12 06:17:06 UTC
Karl, Luis Really sorry for coming so late on this. The patch is not 
applied as I was not sure of the correctness of the patch beside that 
it  fixes this Issue. After review, the patch was  found not the
correct one.And currently I do not find anyone to send the patch for
review.
This bug was somehow out of my mind.
sorry for that again. Shall look into this again soon.   
Comment 16 padraig.obriain 2002-12-10 14:21:52 UTC
*** Bug 96396 has been marked as a duplicate of this bug. ***
Comment 17 padraig.obriain 2002-12-24 11:52:09 UTC
Created attachment 13200 [details] [review]
Proposed patch
Comment 18 padraig.obriain 2002-12-24 11:54:06 UTC
The attached patch seems to fix the symptomsi.e. the looping, reported
in the bug. I would welcome comments on the patch.
Comment 19 padraig.obriain 2003-01-06 08:47:53 UTC
I have committed this patch.