Re: Epiphany is useless in AMD64



Hmm,

I took a quick peek. In the file ephy-favicon-cache.c, I put a
printf("filename is %s\n", filename) statement inside
ephy_favicon_cache_get(), right before the call to
ephy_favicon_cache_download() and I get:

filename is http:__www.kernel.org_favicon.ico

I put the same statement (at different places) inside
ephy_favicon_cache_download() with the same result. filename doesn't
seem to be corrupted. Don't know where the funky name in frame #8 of the
gdb trace is coming from :|

I then recompiled with gcc-3.4 (I was using 3.3 before) and Epiphany
still dies but the gdb trace look different (see attachment), no more
calls to ephy_favicon_cache_download() :\ 

-- 
Pedro

On Tue, 2005-05-04 at 22:02 -0400, Adam Hooper wrote: 
> On Tue, 2005-05-04 at 21:49 -0400, Pedro I. Sanchez wrote:
> > I did as indicated in the wiki page. Attached please find the gdb trace
> > obtained when trying to visit kernel.org.
> > 
> > It seems to be dying on a Mozilla lib? however both mozilla and firefox
> > work well on my laptop. I also tested Galeon and it is OK.
> 
> I don't know the code in question, and I don't know about 64-bit
> problems since I've never run into any, but I'd guess from the backtrace
> that the problem is in frame #9. Look at the funky filename in frame #8:
> that means frame #9 probably called ephy_favicon_cache_download
> incorrectly. (The filename should be "http__www.kernel.org_favicon.ico",
> I think.) Of course, that funky filename was created within *another*
> function previously, which won't even show up in the backtrace since it
> doesn't cause a crash.
> 
> The reason it crashes within a Mozilla function is that the Mozilla
> function is being called with a wrong parameter -- probably an invalid
> memory address. Since no functions actually *access* the memory until
> Mozilla's, that's where the crash occurs. A crash is a symptom of a bug,
> but it usually doesn't follow directly from one.
> 
> Anyway, I have no real point here since I'm not even going to try to
> debug it. This email was just a little FYI, in case you find backtraces
> as interesting as I do :).
> 
> Adam
$ gdb epiphany GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/epiphany
[Thread debugging using libthread_db enabled]
[New Thread 46912581346960 (LWP 5840)]
[New Thread 1082128752 (LWP 5846)]
[New Thread 1090517360 (LWP 5848)]
[New Thread 1098905968 (LWP 5849)]
[New Thread 1107294576 (LWP 5850)]
[Thread 1098905968 (LWP 5849) exited]
[New Thread 1098905968 (LWP 5851)]
[New Thread 1115683184 (LWP 5852)]
[New Thread 1124071792 (LWP 5853)]
[New Thread 1132460400 (LWP 5854)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912581346960 (LWP 5840)]
0x000000000046eff4 in non-virtual thunk to MozDownload::AddRef() ()
(gdb) bt
#0  0x000000000046eff4 in non-virtual thunk to MozDownload::AddRef() ()
#1  0x00002aaaaad96582 in nsCOMPtr_base::assign_with_AddRef () from /usr/lib/mozilla/libxpcom.so
#2  0x00002aaab06cb680 in NSGetModule () from /usr/lib/mozilla/components/libembedcomponents.so
#3  0x000000000046de1e in MozDownload::Init (this=0xbed280, aSource=0xb099e0, aTarget=0xbdfb00, aDisplayName=0xa824f0, aMIMEInfo=0x0, startTime=1112763516816932, aPersist=0xae5b48) at MozDownload.cpp:129
#4  0x000000000046dd77 in MozDownload::InitForEmbed (this=0xbed280, aSource=0xbed288, aTarget=0xe0, aDisplayName=0xa824f0, aMIMEInfo=0x0, startTime=1112763516816932, aPersist=0x5b9f58, aEmbedPersist=0x5b9f58, aMaxSize=6004568) at MozDownload.cpp:97
#5  0x000000000046e874 in InitiateMozillaDownload (domDocument=0x0, sourceURI=0xb099e0, inDestFile=0xbdf910, contentType=0x0, inOriginalURI=0xb099e0, embedPersist=0xc483c0, postData=0x0, aCacheKey=0x0, aMaxSize=6004568) at nsCOMPtr.h:704
#6  0x000000000045ea83 in impl_save (persist=0xc483c0) at nsCOMPtr.h:704
#7  0x000000000047fb3a in ephy_favicon_cache_get (cache=0x853cb0, url=0xc154c0 "http://www.kernel.org/favicon.ico";) at ephy-favicon-cache.c:397
#8  0x00000000004324ad in sync_tab_icon (tab=0xa25050, pspec=0xbed288, window=0x7231e0) at ephy-window.c:1186
#9  0x00002aaaacd7d3ff in g_cclosure_marshal_VOID__PARAM () from /usr/lib/libgobject-2.0.so.0
#10 0x00002aaaacd6cf16 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#11 0x00002aaaacd7c78e in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#12 0x00002aaaacd7b7c6 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#13 0x00002aaaacd7ba93 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#14 0x00002aaaacd6eab7 in g_object_interface_list_properties () from /usr/lib/libgobject-2.0.so.0
#15 0x00002aaaacd6dfda in g_value_get_flags () from /usr/lib/libgobject-2.0.so.0#16 0x00002aaaacd724e5 in g_cclosure_new_object_swap () from /usr/lib/libgobject-2.0.so.0
#17 0x00002aaaacd6ec62 in g_object_notify () from /usr/lib/libgobject-2.0.so.0
#18 0x00002aaaacd7d366 in g_cclosure_marshal_VOID__STRING () from /usr/lib/libgobject-2.0.so.0
#19 0x00002aaaacd6cf16 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#20 0x00002aaaacd7c78e in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#21 0x00002aaaacd7b7c6 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#22 0x00002aaaacd7bbf6 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#23 0x00000000004653c5 in EphyFaviconEventListener::HandleEvent (this=0xa7ee70, aDOMEvent=0x0) at nsEmbedString.h:131
#24 0x00002aaab1433022 in nsEventListenerManager::HandleEventSubType () from /usr/lib/mozilla/components/libgklayout.so
#25 0x00002aaab1433b6a in nsEventListenerManager::FixContextMenuEvent () from /usr/lib/mozilla/components/libgklayout.so
#26 0x00002aaab157cc84 in nsWindowRoot::nsWindowRoot () from /usr/lib/mozilla/components/libgklayout.so
#27 0x00002aaab156b9e2 in GlobalWindowImpl::HandleDOMEvent () from /usr/lib/mozilla/components/libgklayout.so
#28 0x00002aaab13c5760 in nsDocument::HandleDOMEvent () from /usr/lib/mozilla/components/libgklayout.so
#29 0x00002aaab13e51f5 in nsGenericElement::HandleDOMEvent () from /usr/lib/mozilla/components/libgklayout.so
#30 0x00002aaab13e4cc4 in nsGenericElement::HandleDOMEvent () from /usr/lib/mozilla/components/libgklayout.so
#31 0x00002aaab13e4cc4 in nsGenericElement::HandleDOMEvent () from /usr/lib/mozilla/components/libgklayout.so
#32 0x00002aaab144c59e in nsGenericHTMLElement::HandleDOMEventForAnchors () from /usr/lib/mozilla/components/libgklayout.so
#33 0x00002aaab143a586 in nsEventStateManager::GetNextTabbableContent () from /usr/lib/mozilla/components/libgklayout.so
#34 0x00002aaab143354e in nsEventListenerManager::GetDOM2EventGroup () from /usr/lib/mozilla/components/libgklayout.so
#35 0x00002aaab13e34a5 in nsGenericElement::AddScriptEventListener () from /usr/lib/mozilla/components/libgklayout.so
#36 0x00002aaab147ed78 in nsHTMLLinkElement::CreateAndDispatchEvent () from /usr/lib/mozilla/components/libgklayout.so
#37 0x00002aaab147ef76 in nsHTMLLinkElement::SetDocument () from /usr/lib/mozilla/components/libgklayout.so
#38 0x00002aaab13e66b1 in nsGenericElement::AppendChildTo () from /usr/lib/mozilla/components/libgklayout.so
#39 0x00002aaab14aa476 in HTMLContentSink::ProcessLINKTag () from /usr/lib/mozilla/components/libgklayout.so
#40 0x00002aaab14ab3f5 in HTMLContentSink::ProcessSCRIPTTag () from /usr/lib/mozilla/components/libgklayout.so
#41 0x00002aaab14a8e4a in HTMLContentSink::SetDocumentTitle () from /usr/lib/mozilla/components/libgklayout.so
#42 0x00002aaab270de8d in ?? () from /usr/lib/mozilla/components/libhtmlpars.so
#43 0x00002aaab2712658 in ?? () from /usr/lib/mozilla/components/libhtmlpars.so
#44 0x00002aaab2712bd2 in ?? () from /usr/lib/mozilla/components/libhtmlpars.so
#45 0x00002aaab270d2db in ?? () from /usr/lib/mozilla/components/libhtmlpars.so
#46 0x00002aaab27247d9 in ?? () from /usr/lib/mozilla/components/libhtmlpars.so
#47 0x00002aaab27256c2 in ?? () from /usr/lib/mozilla/components/libhtmlpars.so
#48 0x00002aaab272664e in ?? () from /usr/lib/mozilla/components/libhtmlpars.so
#49 0x00002aaab2a79105 in nsDocumentOpenInfo::Open () from /usr/lib/mozilla/components/libdocshell.so
#50 0x00002aaab0d1f520 in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#51 0x00002aaab0d84a08 in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#52 0x00002aaab0d091bd in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#53 0x00002aaab0d0930c in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#54 0x00002aaaaad5be35 in nsInputStreamReadyEvent::EventHandler () from /usr/lib/mozilla/libxpcom.so
#55 0x00002aaaaad70979 in PL_HandleEvent () from /usr/lib/mozilla/libxpcom.so
#56 0x00002aaaaad710c5 in PL_ProcessPendingEvents () from /usr/lib/mozilla/libxpcom.so
#57 0x00002aaaaad72473 in nsEventQueueImpl::NotifyObservers () from /usr/lib/mozilla/libxpcom.so
#58 0x00002aaab223f9a2 in nsBaseWidget::FreeNativeData () from /usr/lib/mozilla/components/libwidget_gtk2.so
#59 0x00002aaaad893cdb in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#60 0x00002aaaad87290c in g_main_depth () from /usr/lib/libglib-2.0.so.0
#61 0x00002aaaad8738a4 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#62 0x00002aaaad873bae in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#63 0x00002aaaad874095 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#64 0x00002aaaabf1b4f1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#65 0x000000000042c29f in main (argc=0, argv=0x0) at ephy-main.c:198
(gdb)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]