Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
Hi Justin, * Justin Pryzby [EMAIL PROTECTED] [08. Feb. 2006]: On Wed, Feb 08, 2006 at 02:39:27PM +0100, Gregor Zattler wrote: * Stuart Rowan [EMAIL PROTECTED] [08. Feb. 2006]: Okay so maybe i shouldn't have used grave but firefox no longer starts up. I was on 1.5.dfsg or whatever the last one in unstable was. upgraded, run firefox and get nothing. I manually ran /usr/lib/firefox/firefox-bin and got: /usr/lib/firefox/firefox-bin: error while loading shared libraries: libxpcom.so: cannot open shared object file: No such file or directory Same problem here here. Downgrading -- firefox runs again. Well then, I guess I'll hold off upgrading.. Could either of you get a backtrace? * Stuart Rowan [EMAIL PROTECTED] [08. Feb. 2006]: I have tried manual adding a few symlinks to get it to see libxpcom.so but then it just segfaults. O.K. I have no clue about bactraces and such. Here is, what I did to produce a bactrace: 1. purged mozilla-browser and mozilla-firefox pit:/usr/lib# aptitude purge mozilla-browser mozilla-firefox 2. then installed mozilla-firefox http_proxy= ftp_proxy= sudo aptitude install mozilla-firefox 3. started /usr/lib/firefox/firefox-bin several times and got error messages regarding missing shared libraries 4. did pit:/usr/lib# ln -s firefox/libmozjs.so libmozjs.so pit:/usr/lib# ln -s firefox/libxpcom.so libxpcom.so pit:/usr/lib# ln -s firefox/libxpcom_core.so libxpcom_core.so pit:/usr/lib# ln -s firefox/libxpcom_compat.so libxpcom_compat.so pit:/usr/lib# 5. started /usr/lib/firefox/firefox-bin, got error message /usr/lib/firefox/firefox-bin: symbol lookup error: /usr/lib/firefox/firefox-bin: undefined symbol: PR_GetPhysicalMemorySize 6. did a pit:/usr/lib# rm -f libmozjs.so libxpcom.so libxpcom_core.so libxpcom_compat.so 7. installed mozilla-browser (1.7.12-1.1) 8. started /usr/lib/firefox/firefox-bin, got error message /usr/lib/firefox/firefox-bin: error while loading shared libraries: libxpcom_core.so: cannot open shared object file: No such file or directory 9. did a pit:/usr/lib# ln -s firefox/libxpcom_core.so libxpcom_core.so 10. run pit:/tmp/fir$ /usr/lib/firefox/firefox-bin got segfault -- I think mozilla-firefox depends on libraries (libmozjs.so libxpcom.so libxpcom_compat.so) provided by mozilla-browser but does not depend on it? 11. run pit:/tmp/fir$ dgb /usr/lib/firefox/firefox-bin: (gdb) run Starting program: /usr/lib/firefox/firefox-bin (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) [Thread debugging using libthread_db enabled] [New Thread -1222617408 (LWP 23049)] (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) (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) (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) (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) (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) (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1223211328 (LWP 22907)] 0xb7e5b5c6 in nsCOMPtr_base::assign_with_AddRef () from /usr/lib/libxpcom.so (gdb) bt #0 0xb7e5b5c6 in nsCOMPtr_base::assign_with_AddRef () from /usr/lib/libxpcom.so #1 0x0807cfc7 in ?? () #2 0xb736e860 in __malloc_initialize_hook () from /lib/tls/libc.so.6 #3 0x0008 in ?? () #4 0xbfc11518 in ?? () #5 0xb72a28cc in malloc () from /lib/tls/libc.so.6 #6 0x0807ae58 in ?? () #7 0xbfc11680 in ?? () #8 0x in ?? () HTH, Gregor -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
On Wed, Feb 08, 2006 at 06:42:10PM +0100, Gregor Zattler [EMAIL PROTECTED] wrote: O.K. I have no clue about bactraces and such. Here is, what I did to produce a bactrace: 1. purged mozilla-browser and mozilla-firefox pit:/usr/lib# aptitude purge mozilla-browser mozilla-firefox 2. then installed mozilla-firefox http_proxy= ftp_proxy= sudo aptitude install mozilla-firefox 3. started /usr/lib/firefox/firefox-bin several times and got error messages regarding missing shared libraries Well, that's where you are wrong. You are supposed to run /usr/bin/firefox, not /usr/lib/firefox/firefox-bin. Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
On Wed, 2006-02-08 at 20:19 +0100, Mike Hommey wrote: On Wed, Feb 08, 2006 at 06:42:10PM +0100, Gregor Zattler [EMAIL PROTECTED] wrote: O.K. I have no clue about bactraces and such. Here is, what I did to produce a bactrace: 1. purged mozilla-browser and mozilla-firefox pit:/usr/lib# aptitude purge mozilla-browser mozilla-firefox 2. then installed mozilla-firefox http_proxy= ftp_proxy= sudo aptitude install mozilla-firefox 3. started /usr/lib/firefox/firefox-bin several times and got error messages regarding missing shared libraries Well, that's where you are wrong. You are supposed to run /usr/bin/firefox, not /usr/lib/firefox/firefox-bin. Mike Mike, it's not obvious how to backtrace that shell script so go a little easier mebe? ;) if i do the following (which clearly is not correct but then nobody provided instructions did they): [EMAIL PROTECTED]:~$ gdb /bin/bash (gdb) run /usr/bin/firefox Starting program: /bin/bash /usr/bin/firefox (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Program exited normally. (gdb) bt No stack. So if you could be marvellously helpful and tell us mere mortals how to get your backtrace, I am sure one of us will oblige. Thanks, Stu. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
On Wed, Feb 08, 2006 at 09:09:24PM +, Stuart T. R. Rowan [EMAIL PROTECTED] wrote: On Wed, 2006-02-08 at 20:19 +0100, Mike Hommey wrote: On Wed, Feb 08, 2006 at 06:42:10PM +0100, Gregor Zattler [EMAIL PROTECTED] wrote: O.K. I have no clue about bactraces and such. Here is, what I did to produce a bactrace: 1. purged mozilla-browser and mozilla-firefox pit:/usr/lib# aptitude purge mozilla-browser mozilla-firefox 2. then installed mozilla-firefox http_proxy= ftp_proxy= sudo aptitude install mozilla-firefox 3. started /usr/lib/firefox/firefox-bin several times and got error messages regarding missing shared libraries Well, that's where you are wrong. You are supposed to run /usr/bin/firefox, not /usr/lib/firefox/firefox-bin. Mike Mike, it's not obvious how to backtrace that shell script so go a little easier mebe? ;) I thought you were running firefox-bin in the first place, which would explain your crash if it uses mozilla-browser's libs. if i do the following (which clearly is not correct but then nobody provided instructions did they): (...) Use firefox -g. Please first remove the links you created in /usr/lib. Thanks Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
On Wed, 2006-02-08 at 22:28 +0100, Mike Hommey wrote: snip Mike, it's not obvious how to backtrace that shell script so go a little easier mebe? ;) I thought you were running firefox-bin in the first place, which would explain your crash if it uses mozilla-browser's libs. if i do the following (which clearly is not correct but then nobody provided instructions did they): (...) Use firefox -g. Please first remove the links you created in /usr/lib. Thanks Mike Okay, now we're cooking. [EMAIL PROTECTED]:~$ firefox -g GNU gdb 6.4-debian Copyright 2005 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 -a firefox (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) [Thread debugging using libthread_db enabled] [New Thread -1213299008 (LWP 363)] (no debugging symbols found) [New Thread -1215067216 (LWP 400)] [New Thread -1223640144 (LWP 403)] [New Thread -1233400912 (LWP 416)] [Thread -1215067216 (LWP 400) exited] [Thread -1233400912 (LWP 416) exited] [Thread -1223640144 (LWP 403) exited] Program exited normally. (gdb) so not terribly helpful :-s (hint no firefox window appeared) ldd /usr/lib/firefox/firefox-bin output below, maybe the shell script fixes this up, but it seems it can't find libxpcom.so and libxpcom_core.so Stu. [EMAIL PROTECTED]:~$ ldd /usr/lib/firefox/firefox-bin linux-gate.so.1 = (0xe000) libmozjs.so = /usr/lib/libmozjs.so (0xb7f08000) libxpcom.so = not found libxpcom_core.so = not found libplds4.so = /usr/lib/libplds4.so (0xb7f05000) libplc4.so = /usr/lib/libplc4.so (0xb7f0) libnspr4.so = /usr/lib/libnspr4.so (0xb7ecb000) libpthread.so.0 = /lib/tls/i686/cmov/libpthread.so.0 (0xb7eb8000) libdl.so.2 = /lib/tls/i686/cmov/libdl.so.2 (0xb7eb4000) libgtk-x11-2.0.so.0 = /usr/lib/libgtk-x11-2.0.so.0 (0x45a9e000) libgdk-x11-2.0.so.0 = /usr/lib/libgdk-x11-2.0.so.0 (0x45984000) libXrandr.so.2 = /usr/X11R6/lib/libXrandr.so.2 (0x45a92000) libXi.so.6 = /usr/X11R6/lib/libXi.so.6 (0x4562f000) libXinerama.so.1 = /usr/X11R6/lib/libXinerama.so.1 (0x45f06000) libXext.so.6 = /usr/X11R6/lib/libXext.so.6 (0x45336000) libatk-1.0.so.0 = /usr/lib/libatk-1.0.so.0 (0x460a8000) libgdk_pixbuf-2.0.so.0 = /usr/lib/libgdk_pixbuf-2.0.so.0 (0x45ed8000) libpangocairo-1.0.so.0 = /usr/lib/libpangocairo-1.0.so.0 (0xb7eac000) libfontconfig.so.1 = /usr/lib/libfontconfig.so.1 (0x460f3000) libXcursor.so.1 = /usr/lib/libXcursor.so.1 (0x4601) libpango-1.0.so.0 = /usr/lib/libpango-1.0.so.0 (0xb7e74000) libcairo.so.2 = /usr/lib/libcairo.so.2 (0x45e6b000) libXrender.so.1 = /usr/lib/libXrender.so.1 (0x460cc000) libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x4564e000) libgobject-2.0.so.0 = /usr/lib/libgobject-2.0.so.0 (0x45f9b000) libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0x460d7000) libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0x4601b000) libpangoxft-1.0.so.0 = /usr/lib/libpangoxft-1.0.so.0 (0xb7e6d000) libpangoft2-1.0.so.0 = /usr/lib/libpangoft2-1.0.so.0 (0xb7e48000) libm.so.6 = /lib/tls/i686/cmov/libm.so.6 (0xb7e22000) libpng12.so.0 = /usr/lib/libpng12.so.0 (0x4571b000) libjpeg.so.62 = /usr/lib/libjpeg.so.62 (0x4618f000) libz.so.1 = /usr/lib/libz.so.1 (0x45ef) libsmime3.so = /usr/lib/libsmime3.so (0xb7dfe000) libssl3.so = /usr/lib/libssl3.so (0xb7ddc000) libnss3.so = /usr/lib/libnss3.so (0xb7d6f000) libsoftokn3.so = /usr/lib/libsoftokn3.so (0xb7cfc000) libXt.so.6 = /usr/X11R6/lib/libXt.so.6 (0x41079000) libXp.so.6 = /usr/X11R6/lib/libXp.so.6 (0x410fd000) libxpcom_compat.so = not found libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x46237000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x46906000) libc.so.6 = /lib/tls/i686/cmov/libc.so.6 (0xb7bc5000) libfreetype.so.6 = /usr/lib/libfreetype.so.6 (0x4556a000) libXft.so.2 = /usr/lib/libXft.so.2 (0xb7bb1000) /lib/ld-linux.so.2 (0xb7fa2000) libexpat.so.1 = /usr/lib/libexpat.so.1 (0x45eb6000) libSM.so.6 = /usr/X11R6/lib/libSM.so.6 (0x44f77000) libICE.so.6 = /usr/X11R6/lib/libICE.so.6 (0x4596a000) [EMAIL PROTECTED]:~$ ls /usr/lib/firefox/ -1 |
Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
On Wed, Feb 08, 2006 at 09:58:30PM +, Stuart T. R. Rowan wrote: On Wed, 2006-02-08 at 22:28 +0100, Mike Hommey wrote: snip Mike, it's not obvious how to backtrace that shell script so go a little easier mebe? ;) I thought you were running firefox-bin in the first place, which would explain your crash if it uses mozilla-browser's libs. if i do the following (which clearly is not correct but then nobody provided instructions did they): (...) Use firefox -g. Please first remove the links you created in /usr/lib. Thanks Mike Okay, now we're cooking. [EMAIL PROTECTED]:~$ firefox -g GNU gdb 6.4-debian Copyright 2005 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 -a firefox (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) [Thread debugging using libthread_db enabled] [New Thread -1213299008 (LWP 363)] (no debugging symbols found) [New Thread -1215067216 (LWP 400)] [New Thread -1223640144 (LWP 403)] [New Thread -1233400912 (LWP 416)] [Thread -1215067216 (LWP 400) exited] [Thread -1233400912 (LWP 416) exited] [Thread -1223640144 (LWP 403) exited] Program exited normally. (gdb) so not terribly helpful :-s (hint no firefox window appeared) ldd /usr/lib/firefox/firefox-bin output below, maybe the shell script fixes this up, but it seems it can't find libxpcom.so and libxpcom_core.so Stu. [EMAIL PROTECTED]:~$ ldd /usr/lib/firefox/firefox-bin linux-gate.so.1 = (0xe000) libmozjs.so = /usr/lib/libmozjs.so (0xb7f08000) libxpcom.so = not found libxpcom_core.so = not found libplds4.so = /usr/lib/libplds4.so (0xb7f05000) libplc4.so = /usr/lib/libplc4.so (0xb7f0) libnspr4.so = /usr/lib/libnspr4.so (0xb7ecb000) libpthread.so.0 = /lib/tls/i686/cmov/libpthread.so.0 (0xb7eb8000) libdl.so.2 = /lib/tls/i686/cmov/libdl.so.2 (0xb7eb4000) libgtk-x11-2.0.so.0 = /usr/lib/libgtk-x11-2.0.so.0 (0x45a9e000) libgdk-x11-2.0.so.0 = /usr/lib/libgdk-x11-2.0.so.0 (0x45984000) libXrandr.so.2 = /usr/X11R6/lib/libXrandr.so.2 (0x45a92000) libXi.so.6 = /usr/X11R6/lib/libXi.so.6 (0x4562f000) libXinerama.so.1 = /usr/X11R6/lib/libXinerama.so.1 (0x45f06000) libXext.so.6 = /usr/X11R6/lib/libXext.so.6 (0x45336000) libatk-1.0.so.0 = /usr/lib/libatk-1.0.so.0 (0x460a8000) libgdk_pixbuf-2.0.so.0 = /usr/lib/libgdk_pixbuf-2.0.so.0 (0x45ed8000) libpangocairo-1.0.so.0 = /usr/lib/libpangocairo-1.0.so.0 (0xb7eac000) libfontconfig.so.1 = /usr/lib/libfontconfig.so.1 (0x460f3000) libXcursor.so.1 = /usr/lib/libXcursor.so.1 (0x4601) libpango-1.0.so.0 = /usr/lib/libpango-1.0.so.0 (0xb7e74000) libcairo.so.2 = /usr/lib/libcairo.so.2 (0x45e6b000) libXrender.so.1 = /usr/lib/libXrender.so.1 (0x460cc000) libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x4564e000) libgobject-2.0.so.0 = /usr/lib/libgobject-2.0.so.0 (0x45f9b000) libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0x460d7000) libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0x4601b000) libpangoxft-1.0.so.0 = /usr/lib/libpangoxft-1.0.so.0 (0xb7e6d000) libpangoft2-1.0.so.0 = /usr/lib/libpangoft2-1.0.so.0 (0xb7e48000) libm.so.6 = /lib/tls/i686/cmov/libm.so.6 (0xb7e22000) libpng12.so.0 = /usr/lib/libpng12.so.0 (0x4571b000) libjpeg.so.62 = /usr/lib/libjpeg.so.62 (0x4618f000) libz.so.1 = /usr/lib/libz.so.1 (0x45ef) libsmime3.so = /usr/lib/libsmime3.so (0xb7dfe000) libssl3.so = /usr/lib/libssl3.so (0xb7ddc000) libnss3.so = /usr/lib/libnss3.so (0xb7d6f000) libsoftokn3.so = /usr/lib/libsoftokn3.so (0xb7cfc000) libXt.so.6 = /usr/X11R6/lib/libXt.so.6 (0x41079000) libXp.so.6 = /usr/X11R6/lib/libXp.so.6 (0x410fd000) libxpcom_compat.so = not found libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x46237000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x46906000) libc.so.6 = /lib/tls/i686/cmov/libc.so.6 (0xb7bc5000) libfreetype.so.6 = /usr/lib/libfreetype.so.6 (0x4556a000) libXft.so.2 = /usr/lib/libXft.so.2 (0xb7bb1000) /lib/ld-linux.so.2 (0xb7fa2000) libexpat.so.1 = /usr/lib/libexpat.so.1
Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
Are you guys using dash for /bin/sh? * Stuart T. R. Rowan ([EMAIL PROTECTED]) wrote: On Wed, 2006-02-08 at 22:28 +0100, Mike Hommey wrote: snip Mike, it's not obvious how to backtrace that shell script so go a little easier mebe? ;) I thought you were running firefox-bin in the first place, which would explain your crash if it uses mozilla-browser's libs. if i do the following (which clearly is not correct but then nobody provided instructions did they): (...) Use firefox -g. Please first remove the links you created in /usr/lib. Thanks Mike Okay, now we're cooking. -- Eric Dorland [EMAIL PROTECTED] ICQ: #61138586, Jabber: [EMAIL PROTECTED] 1024D/16D970C6 097C 4861 9934 27A0 8E1C 2B0A 61E9 8ECF 16D9 70C6 -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d- s++: a-- C+++ UL+++ P++ L++ E++ W++ N+ o K- w+ O? M++ V-- PS+ PE Y+ PGP++ t++ 5++ X+ R tv++ b+++ DI+ D+ G e h! r- y+ --END GEEK CODE BLOCK-- signature.asc Description: Digital signature
Bug#351898: bactrace (was: Re: the firefox-doesn't-start bug Re: Bug#351898)
On Thu, 2006-02-09 at 00:42 -0500, Eric Dorland wrote: Are you guys using dash for /bin/sh? * Stuart T. R. Rowan ([EMAIL PROTECTED]) wrote: On Wed, 2006-02-08 at 22:28 +0100, Mike Hommey wrote: snip Mike, it's not obvious how to backtrace that shell script so go a little easier mebe? ;) I thought you were running firefox-bin in the first place, which would explain your crash if it uses mozilla-browser's libs. if i do the following (which clearly is not correct but then nobody provided instructions did they): (...) Use firefox -g. Please first remove the links you created in /usr/lib. Thanks Mike Okay, now we're cooking. I am using dash. Thanks, Stu. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]