Ho raccolto un pò di info
Codice: Seleziona tutto
utente@tron:/usr/lib/firefox$ gdb firefox-bin
GNU gdb 6.6-debian
Copyright (C) 2006 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 "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/lib/firefox/firefox-bin
(no debugging symbols found)
Failed to read a valid object file image from memory.
/usr/lib/firefox/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
Program exited with code 0177.
(gdb)
ma....
Codice: Seleziona tutto
utente@tron:/usr/lib/firefox$ aptitude search libmozjs
p libmozjs-dev - Development files for the Mozilla SpiderMonkey JavaScript library
i A libmozjs0d - The Mozilla SpiderMonkey JavaScript library
i libmozjs0d-dbg - Development files for the Mozilla SpiderMonkey JavaScript library
utente@tron:/usr/lib/firefox$ locate libmozjs.so
locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
/usr/lib/firefox/libmozjs.so
/usr/lib/libmozjs.so.0d
/usr/lib/thunderbird/libmozjs.so
utente@tron:/usr/lib/firefox$
Codice: Seleziona tutto
utente@tron:~$ firefox
*** glibc detected *** /usr/lib/firefox/firefox-bin: double free or corruption (!prev): 0x08bfd590 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7643d75]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7647810]
/usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb7454961]
/usr/lib/firefox/components/libgfx_gtk.so[0xb54f6c56]
/usr/lib/firefox/components/libgfx_gtk.so[0xb5516259]
/usr/lib/firefox/components/libgklayout.so[0xb564623d]
/usr/lib/firefox/components/libgklayout.so[0xb5646fc7]
/usr/lib/firefox/components/libgklayout.so[0xb568d0ab]
/usr/lib/firefox/components/libgklayout.so[0xb579e8f1]
/usr/lib/firefox/components/libgklayout.so[0xb579e760]
/usr/lib/firefox/components/libgklayout.so[0xb579f5ab]
/usr/lib/firefox/components/libgklayout.so[0xb579e855]
/usr/lib/firefox/components/libgklayout.so[0xb579e760]
/usr/lib/firefox/components/libgklayout.so[0xb579f5ab]
/usr/lib/firefox/components/libgklayout.so[0xb579e855]
/usr/lib/firefox/components/libgklayout.so[0xb579e760]
/usr/lib/firefox/components/libgklayout.so[0xb579f5ab]
/usr/lib/firefox/components/libgklayout.so[0xb579e855]
/usr/lib/firefox/components/libgklayout.so[0xb579e760]
/usr/lib/firefox/components/libgklayout.so[0xb579f5ab]
/usr/lib/firefox/components/libgklayout.so[0xb579e855]
/usr/lib/firefox/components/libgklayout.so[0xb579e760]
/usr/lib/firefox/components/libgklayout.so[0xb579f5ab]
/usr/lib/firefox/components/libgklayout.so[0xb579e855]
/usr/lib/firefox/components/libgklayout.so[0xb579e760]
/usr/lib/firefox/components/libgklayout.so[0xb579f5ab]
/usr/lib/firefox/components/libgklayout.so[0xb57b5085]
/usr/lib/firefox/components/libgklayout.so[0xb579e760]
/usr/lib/firefox/components/libgklayout.so[0xb579f5ab]
/usr/lib/firefox/components/libgklayout.so[0xb579e855]
/usr/lib/firefox/components/libgklayout.so[0xb565f825]
/usr/lib/firefox/components/libgklayout.so[0xb593ecd5]
/usr/lib/firefox/components/libgklayout.so[0xb59418a9]
/usr/lib/firefox/components/libgklayout.so[0xb5947cf0]
/usr/lib/firefox/components/libgklayout.so[0xb5949db9]
/usr/lib/firefox/components/libgklayout.so[0xb594abd8]
/usr/lib/firefox/components/libgklayout.so[0xb593e9d6]
/usr/lib/firefox/components/libwidget_gtk2.so[0xb66912ee]
/usr/lib/firefox/components/libwidget_gtk2.so[0xb6688f92]
/usr/lib/firefox/components/libwidget_gtk2.so[0xb668901b]
/usr/lib/libgtk-x11-2.0.so.0[0xb7b04b62]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x122)[0xb74e77b2]
/usr/lib/libgobject-2.0.so.0[0xb74f9725]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x6d6)[0xb74faa36]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0xb74fae29]
/usr/lib/libgtk-x11-2.0.so.0[0xb7c3e118]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x42f)[0xb7afdeaf]
/usr/lib/libgdk-x11-2.0.so.0[0xb7937831]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0x97)[0xb7937a57]
/usr/lib/libgdk-x11-2.0.so.0[0xb7937abb]
/usr/lib/libgdk-x11-2.0.so.0[0xb791da48]
/usr/lib/libglib-2.0.so.0[0xb744b5c1]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x17c)[0xb744d18c]
/usr/lib/libglib-2.0.so.0[0xb74505cf]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1a9)[0xb7450979]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb4)[0xb7afe2d4]
/usr/lib/firefox/components/libwidget_gtk2.so[0xb668fbd2]
/usr/lib/firefox/components/libtoolkitcomps.so[0xb65b3de2]
/usr/lib/firefox/firefox-bin[0x804ea79]
/usr/lib/firefox/firefox-bin[0x804ab8f]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb75f0050]
/usr/lib/firefox/firefox-bin[0x804aae1]
======= Memory map: ========
08048000-0805b000 r-xp 00000000 08:02 3420470 /usr/lib/firefox/firefox-bin
0805b000-0805d000 rw-p 00012000 08:02 3420470 /usr/lib/firefox/firefox-bin
0805d000-08dda000 rw-p 0805d000 00:00 0 [heap]
aebf8000-afcc5000 r--p 00000000 08:02 3581184 /usr/share/fonts/truetype/arphic/ukai.ttf
afcc5000-afd0c000 r--p 00000000 08:02 247437 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
afd0c000-afd50000 r--p 00000000 08:02 247434 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
afd50000-afd83000 r--p 00000000 08:02 1291878 /usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf
afdba000-afe00000 r--p 00000000 08:02 1291879 /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf
afe00000-afe68000 rw-p afe00000 00:00 0
afe68000-aff00000 ---p afe68000 00:00 0
aff2f000-aff73000 r--p 00000000 08:02 1291881 /usr/share/fonts/truetype/msttcorefonts/Arial.ttf
aff73000-aff95000 r--p 00000000 08:02 1291865 /usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf
aff95000-affc8000 r-xp 00000000 08:02 3420264 /usr/lib/firefox/components/libmork.so
affc8000-affcb000 rw-p 00032000 08:02 3420264 /usr/lib/firefox/components/libmork.so
affcb000-affcc000 ---p affcb000 00:00 0
affcc000-b07cc000 rw-p affcc000 00:00 0
b07cc000-b07cd000 ---p b07cc000 00:00 0
b07cd000-b0fcd000 rw-p b07cd000 00:00 0
b0fcd000-b0fce000 ---p b0fcd000 00:00 0
b0fce000-b17ce000 rw-p b0fce000 00:00 0
b17ce000-b1825000 r-xp 00000000 08:02 3420266 /usr/lib/firefox/components/libstoragecomps.so
b1825000-b1827000 rw-p 00056000 08:02 3420266 /usr/lib/firefox/components/libstoragecomps.so
b1827000-b18a0000 r--p 00000000 08:02 247424 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b18a0000-b1900000 rw-s 00000000 00:09 43483151 /SYSV00000000 (deleted)
b1900000-b1a00000 rw-p b1900000 00:00 0
b1a09000-b1a2c000 r--p 00000000 08:02 1291897 /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf
b1a2c000-b1a30000 r-xp 00000000 08:02 1341366 /lib/tls/i686/cmov/libnss_dns-2.6.1.so
b1a30000-b1a32000 rw-p 00003000 08:02 1341366 /lib/tls/i686/cmov/libnss_dns-2.6.1.so
b1a48000-b1a5b000 r-xp 00000000 08:02 3420364 /usr/lib/firefox/components/libcomposer.so
b1a5b000-b1a5d000 rw-p 00012000 08:02 3420364 /usr/lib/firefox/components/libcomposer.so
b1a5d000-b1a6d000 r-xp 00000000 08:02 3420441 /usr/lib/firefox/components/libspellchecker.so
b1a6d000-b1a6e000 rw-p 0000f000 08:02 3420441 /usr/lib/firefox/components/libspellchecker.so
b1a6e000-b1b09000 r-xp 00000000 08:02 3420360 /usr/lib/firefox/components/libeditor.so
b1b09000-b1b0e000 rw-p 0009a000 08:02 3420360 /usr/lib/firefox/components/libeditor.so
b1b0e000-b1b0f000 ---p b1b0e000 00:00 0
b1b0f000-b230f000 rw-p b1b0f000 00:00 0
b230f000-b2310000 ---p b230f000 00:00 0
b2310000-b2b10000 rw-p b2310000 00:00 0
b2b10000-b2b11000 ---p b2b10000 00:00 0
b2b11000-b3311000 rw-p b2b11000 00:00 0
b3311000-b3348000 r-xp 00000000 08:02 622327 /usr/lib/nss/libnssckbi.so
b3348000-b3351000 rw-p 00037000 08:02 622327 /usr/lib/nss/libnssckbi.so
b3351000-b3386000 r-xp 00000000 08:02 622326 /usr/lib/nss/libfreebl3.so
b3386000-b3387000 rw-p 00035000 08:02 622326 /usr/lib/nss/libfreebl3.so
b3387000-b3388000 ---p b3387000 00:00 0
b3388000-b3b88000 rw-p b3388000 00:00 0
b3b88000-b3b89000 ---p b3b88000 00:00 0
b3b89000-b4389000 rw-p b3b89000 00:00 0
b4389000-b43d2000 r-xp 00000000 08:02 3296214 /usr/lib/libsoftokn3.so.0d
b43d2000-b43d6000 rw-p 00048000 08:02 3296214 /usr/lib/libsoftokn3.so.0d
b43d6000-b4442000 r-xp 00000000 08:02 32Killed
emhh mi sono accorto che non avevo firefox-dbg installato, l' ho installato ed ho ripetuto, il problema è sempre lo stesso
Codice: Seleziona tutto
utente@tron:/usr/lib/firefox$ gdb firefox-bin
GNU gdb 6.6-debian
Copyright (C) 2006 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 "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/lib/firefox/firefox-bin
Failed to read a valid object file image from memory.
/usr/lib/firefox/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
Program exited with code 0177.
(gdb)
guardate dopo aver linkato la libria mancante in /usr/lib
Codice: Seleziona tutto
utente@tron:/usr/bin$ sudo ln -s /usr/lib/firefox/libmozjs.so /usr/lib
[sudo] password for utente:
utente@tron:/usr/bin$ cd /usr/lib/firefox/
utente@tron:/usr/lib/firefox$ gdb firefox-bin
GNU gdb 6.6-debian
Copyright (C) 2006 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 "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/lib/firefox/firefox-bin
Failed to read a valid object file image from memory.
/usr/lib/firefox/firefox-bin: error while loading shared libraries: libxpcom.so: cannot open shared object file: No such file or directory
Program exited with code 0177.
(gdb)
e perchè il programma si avvia (funziona finche non apro preferenze o cerca di caricare qualche pagina che non ho annotato quale sia) e il debugger no?
edit3: ad esempio navigando mi capita SEMPRE quando dalla home page di gxmame clicco su download, vengo rediretto su sourceforge, si apre la finestra di dialogo del download e boom, si pianta e o si chiude, o lo debbo killare
