Notizie: puoi sempre seguire i nostri aggiornamenti su Twitter (@MozillaItalia) e Facebook (/MozillaItalia)

Autore Topic: Problema avvio firefox su redhat 8.0  (Letto 1980 volte)

0 Utenti e 1 Visitatore stanno visualizzando questo topic.

Offline bottaz

  • Post: 10
Problema avvio firefox su redhat 8.0
« il: 14 Novembre 2006 16:07:09 »
Ho provato ad installare firefox 1.5.0.8 sul server linux aziendale, ma mi da il seguente messaggio di errore:

(Gecko:5320): Gdk-WARNING **:gdkdrawable-x11.c:787 drawable in not a pixmap or window
./run-mozilla.sh: line 424: 5320 Segmentation fault "$prog" $[1+"$@"]

Lo stesso errore lo da anche provando a mettere la versione 2.0
Cosa c'è di sbagliato nell'installazione?
« Ultima modifica: 14 Novembre 2006 16:09:22 da bottaz »

Offline klades

  • Moderatore
  • Post: 5788
    • http://www.nic-nac-project.org/~kaosmos
Re: Problema avvio firefox su redhat 8.0
« Risposta #1 il: 14 Novembre 2006 16:33:47 »
Io non sono per niente sicuro che i due messaggi (il Gdk-Warning e il segfault) siano collegati.
Se dai
ldd <path dove hai installato firefox>/firefox-bin
cosa ti esce fuori?


Offline bottaz

  • Post: 10
Re: Problema avvio firefox su redhat 8.0
« Risposta #2 il: 14 Novembre 2006 16:42:20 »
ldd /usr/lib/firefox/firefox-bin
/usr/lib/firefox/firefox-bin: /usr/lib/libnss3.so: version `NSS_3.9.3' not found (required by /usr/lib/firefox/firefox-bin)
        libmozjs.so => not found
        libxpcom.so => not found
        libxpcom_core.so => not found
        libplds4.so => /usr/lib/libplds4.so (0x40033000)
        libplc4.so => /usr/lib/libplc4.so (0x40036000)
        libnspr4.so => /usr/lib/libnspr4.so (0x4003b000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40070000)
        libdl.so.2 => /lib/libdl.so.2 (0x400c1000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x400c4000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x4030f000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x40371000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x40389000)
        libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x4039b000)
        libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x403bd000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x403ca000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x403fc000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x40434000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40438000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x404a3000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40582000)
        libsmime3.so => /usr/lib/libsmime3.so (0x405a4000)
        libssl3.so => /usr/lib/libssl3.so (0x405c4000)
        libnss3.so => /usr/lib/libnss3.so (0x405e4000)
        libsoftokn3.so => /usr/lib/libsoftokn3.so (0x40647000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x406ae000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x406b4000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x406fd000)
        libxpcom_compat.so => not found
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4074f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40801000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0x4080a000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4081c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40841000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40849000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40858000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40861000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40878000)

Offline klades

  • Moderatore
  • Post: 5788
    • http://www.nic-nac-project.org/~kaosmos
Re: Problema avvio firefox su redhat 8.0
« Risposta #3 il: 14 Novembre 2006 17:04:09 »
Ok, ora mi dici che ti dà
locate libnss3.so
?

Offline bottaz

  • Post: 10
Re: Problema avvio firefox su redhat 8.0
« Risposta #4 il: 14 Novembre 2006 17:18:38 »
/usr/lib/libnss3.so
/opt/openoffice.org2.0/program/libnss3.so

Offline klades

  • Moderatore
  • Post: 5788
    • http://www.nic-nac-project.org/~kaosmos
Re: Problema avvio firefox su redhat 8.0
« Risposta #5 il: 14 Novembre 2006 17:26:32 »
Fai questa prova:
mv /usr/lib/libnss3.so /usr/lib/libnss3.so.bak
poi lancia di nuovo Firefox.
Se non ti va più in crash, vuol dire che il tutto dipende da una versione vecchia di nss3 che c'è installata lì, probabilmente da qualche pacchetto rpm.

Altrimenti lancia firefox -g, poi al prompt di gdb digita run e quando firefox va in crash digita bt, e riporta qui l'output che ti viene fuori.

Ovviamente dò per scontato che tu abbia già fatto la prova di creare un nuovo profilo se in precedenza ne hai già usato qualcuno con Firefox su quel sistema.

Offline bottaz

  • Post: 10
Re: Problema avvio firefox su redhat 8.0
« Risposta #6 il: 14 Novembre 2006 17:34:28 »
Rinominando la libreria libnss3 va ancora in crash.
Ho messo lin /usr/lib il file libnss3.so contenuto nelal cartella di firefox.
Con questo  va ancora in errore e questo è il report:

GNU DDD 3.3.1 (i686-pc-linux-gnu), by Dorothea Lütkehaus and Andreas Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
(no debugging symbols found)...(gdb) run
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIG32, Real-time event 32.
0x401a3a35 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
(gdb) bt
#0  0x401a3a35 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
#1  0x401a2db8 in pthread_create () from /lib/i686/libpthread.so.0
#2  0x401a2a21 in pthread_create () from /lib/i686/libpthread.so.0
#3  0x40170a44 in PR_Select () from /usr/lib/firefox/libnspr4.so
#4  0x40170c2d in PR_CreateThread () from /usr/lib/firefox/libnspr4.so
#5  0x4011c596 in nsThread::Create(nsISupports*, nsID const&, void**) () from /usr/lib/firefox/libxpcom_core.so
#6  0x4011c6c5 in NS_NewThread(nsIThread**, nsIRunnable*, unsigned, PRThreadState, PRThreadPriority, PRThreadScope) () from /usr/lib/firefox/libxpcom_core.so
#7  0x080e4086 in nsTHashtable<nsBaseHashtableET<nsDepCharHashKey, nsAutoPtr<nsINIParser::INIValue> > >::~nsTHashtable() ()
#8  0x080cd58b in nsTHashtable<nsBaseHashtableET<nsDepCharHashKey, nsAutoPtr<nsINIParser::INIValue> > >::~nsTHashtable() ()
#9  0x400e1e71 in nsGenericFactory::~nsGenericFactory() () from /usr/lib/firefox/libxpcom_core.so
#10 0x40114227 in nsComponentManagerImpl::FindFactory(char const*, unsigned, nsIFactory**) () from /usr/lib/firefox/libxpcom_core.so
#11 0x401144f4 in nsComponentManagerImpl::FreeServices() () from /usr/lib/firefox/libxpcom_core.so
#12 0x400dfd24 in CallGetService(nsID const&, nsID const&, void**) () from /usr/lib/firefox/libxpcom_core.so
#13 0x400dffe3 in nsGetServiceByCIDWithError::operator()(nsID const&, void**) const () from /usr/lib/firefox/libxpcom_core.so
#14 0x400dfbde in nsCOMPtr_base::assign_from_gs_cid_with_error(nsGetServiceByCIDWithError const&, nsID const&) () from /usr/lib/firefox/libxpcom_core.so
#15 0x080d6137 in nsTHashtable<nsBaseHashtableET<nsDepCharHashKey, nsAutoPtr<nsINIParser::INIValue> > >::~nsTHashtable() ()
#16 0x080cd3e8 in nsTHashtable<nsBaseHashtableET<nsDepCharHashKey, nsAutoPtr<nsINIParser::INIValue> > >::~nsTHashtable() ()
#17 0x400e1e71 in nsGenericFactory::~nsGenericFactory() () from /usr/lib/firefox/libxpcom_core.so
#18 0x40114227 in nsComponentManagerImpl::FindFactory(char const*, unsigned, nsIFactory**) () from /usr/lib/firefox/libxpcom_core.so
#19 0x401144f4 in nsComponentManagerImpl::FreeServices() () from /usr/lib/firefox/libxpcom_core.so
#20 0x400dfd24 in CallGetService(nsID const&, nsID const&, void**) () from /usr/lib/firefox/libxpcom_core.so
#21 0x400dffe3 in nsGetServiceByCIDWithError::operator()(nsID const&, void**) const () from /usr/lib/firefox/libxpcom_core.so
#22 0x400dfbde in nsCOMPtr_base::assign_from_gs_cid_with_error(nsGetServiceByCIDWithError const&, nsID const&) () from /usr/lib/firefox/libxpcom_core.so
#23 0x0860d240 in nsXPTCVariant::Init(nsXPTCMiniVariant const&, nsXPTType const&, unsigned char) ()
#24 0x0860bb13 in nsXPTCVariant::Init(nsXPTCMiniVariant const&, nsXPTType const&, unsigned char) ()
#25 0x0860ab43 in nsXPTCVariant::Init(nsXPTCMiniVariant const&, nsXPTType const&, unsigned char) ()
#26 0x400e1e71 in nsGenericFactory::~nsGenericFactory() () from /usr/lib/firefox/libxpcom_core.so
#27 0x401142da in nsComponentManagerImpl::FindFactory(char const*, unsigned, nsIFactory**) () from /usr/lib/firefox/libxpcom_core.so
#28 0x40114c0d in nsComponentManagerImpl::FreeServices() () from /usr/lib/firefox/libxpcom_core.so
#29 0x400dfd5e in CallGetService(char const*, nsID const&, void**) () from /usr/lib/firefox/libxpcom_core.so
#30 0x400e0020 in nsGetServiceByContractID::operator()(nsID const&, void**) const () from /usr/lib/firefox/libxpcom_core.so
#31 0x400dfc2b in nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID const&) () from /usr/lib/firefox/libxpcom_core.so
#32 0x08077a75 in gtk_widget_grab_focus ()
#33 0x0807a80f in gtk_widget_grab_focus ()
#34 0x0807731f in gtk_widget_grab_focus ()
#35 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

Offline klades

  • Moderatore
  • Post: 5788
    • http://www.nic-nac-project.org/~kaosmos
Re: Problema avvio firefox su redhat 8.0
« Risposta #7 il: 14 Novembre 2006 22:10:39 »
Uhmmm...prova a rifare la prova con gdb, ma stavolta prima di dare run, dai questo comando
handle SIG32 nostop noprint pass
vedi un po' se l'output di bt è uguale o diverso.

Offline bottaz

  • Post: 10
Re: Problema avvio firefox su redhat 8.0
« Risposta #8 il: 15 Novembre 2006 11:50:55 »
Questo è l'output della prima prova:

GNU DDD 3.3.1 (i686-pc-linux-gnu), by Dorothea LÃ&#188;tkehaus and Andreas Zeller.
Copyright © 1995-1999 Technische UniversitÃ&#164;t Braunschweig, Germany.
Copyright © 1999-2001 UniversitÃ&#164;t Passau, Germany.
(no debugging symbols found)...(gdb) handle SIG32 nostop noprint pass
(gdb) run

(Gecko:11554): Gdk-WARNING **: gdkdrawable-x11.c:787 drawable is not a pixmap or window
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x405ec8cd in XCreateImage () from /usr/X11R6/lib/libX11.so.6
(gdb) bt
#0  0x405ec8cd in XCreateImage () from /usr/X11R6/lib/libX11.so.6
#1  0x081aaf54 in XmlInitUnknownEncodingNS ()
#2  0x081a818f in XmlInitUnknownEncodingNS ()
#3  0x081aa2e8 in XmlInitUnknownEncodingNS ()
#4  0x087634b1 in nsBaseHashtableET<nsStringHashKey, nsCOMPtr<nsIVariant> >::nsBaseHashtableET(nsAString_internal const*) ()
#5  0x081c2474 in XmlInitUnknownEncodingNS ()
#6  0x081c1921 in XmlInitUnknownEncodingNS ()
#7  0x081c80b4 in XmlInitUnknownEncodingNS ()
#8  0x081c1801 in XmlInitUnknownEncodingNS ()
#9  0x081c1680 in XmlInitUnknownEncodingNS ()
#10 0x40106d3f in nsPipeInputStream::OnInputException(unsigned, nsPipeEvents&) () from /usr/lib/firefox/libxpcom_core.so
#11 0x081c182e in XmlInitUnknownEncodingNS ()
#12 0x081bf821 in XmlInitUnknownEncodingNS ()
#13 0x081be0a9 in XmlInitUnknownEncodingNS ()
#14 0x40bf3dae in NSGetModule () from /usr/lib/firefox/components/libjar50.so
#15 0x080d50cd in nsTHashtable<nsBaseHashtableET<nsDepCharHashKey, nsAutoPtr<nsINIParser::INIValue> > >::~nsTHashtable() ()
#16 0x080d4f39 in nsTHashtable<nsBaseHashtableET<nsDepCharHashKey, nsAutoPtr<nsINIParser::INIValue> > >::~nsTHashtable() ()
#17 0x401087c4 in nsInputStreamReadyEvent::EventHandler(PLEvent*) () from /usr/lib/firefox/libxpcom_core.so
#18 0x40119977 in PL_HandleEvent () from /usr/lib/firefox/libxpcom_core.so
#19 0x401198ca in PL_ProcessPendingEvents () from /usr/lib/firefox/libxpcom_core.so
#20 0x4011aef7 in nsEventQueueImpl::CheckForDeactivation() () from /usr/lib/firefox/libxpcom_core.so
#21 0x081f0474 in XmlInitUnknownEncodingNS ()
#22 0x405a842f in g_io_unix_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0x40586f65 in g_main_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x40587f98 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x405882ad in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#26 0x40588a1f in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#27 0x402c039f in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x081f0718 in XmlInitUnknownEncodingNS ()
#29 0x0863e67c in nsXPTCVariant::Init(nsXPTCMiniVariant const&, nsXPTType const&, unsigned char) ()
#30 0x0807b01c in gtk_widget_grab_focus ()
#31 0x0807731f in gtk_widget_grab_focus ()
#32 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

Poi ho provato a cancellare il profilo di firefox ed ho rifatto la procedura e l'output è stato questo:

GNU DDD 3.3.1 (i686-pc-linux-gnu), by Dorothea Lütkehaus and Andreas Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
(no debugging symbols found)...(gdb) handle SIG32 nostop noprint pass
(gdb) run
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGTRAP, Trace/breakpoint trap.
0x40000a50 in js_ObjectOps () from /lib/ld-linux.so.2
(gdb) bt
#0  0x40000a50 in js_ObjectOps () from /lib/ld-linux.so.2
(gdb)
« Ultima modifica: 15 Novembre 2006 11:57:08 da bottaz »

Offline klades

  • Moderatore
  • Post: 5788
    • http://www.nic-nac-project.org/~kaosmos
Re: Problema avvio firefox su redhat 8.0
« Risposta #9 il: 15 Novembre 2006 12:43:28 »
A questo punto io sospetto che su RH8 ci sia qualche libreria troppo vecchia nell'ambito gtk2/pango/xft che causa questo crash, tra l'altro ho trovato un paio di segnalazioni su bugzilla che si riferiscono proprio a questa distro:
https://bugzilla.mozilla.org/show_bug.cgi?id=324264
https://bugzilla.mozilla.org/show_bug.cgi?id=296298

Una cosa che potresti provare è tentare di usare una versione compilata con le vecchie gtk1 (ammesso che tu le abbia installate, penso di sì) e vedere se va, se va vuol dire che il problema è nell'ambito gtk2/pango/xft
Queste versioni, ad esempio le puoi trovare qui: http://myh.no-ip.org/~m-ito/firefox/ (non le ho provate di persona, quindi non garantisco...)

Se dovesse funzionare, prova ad aggiornare, nei limiti del possibile, gtk2/pango/xft
Mi spiace non poter dare indicazioni più precise... :-(

0 Utenti e 1 Visitatore stanno visualizzando questo topic.