You are not logged in.
matse: Do you mean the PKGBUILD? Sure, here it is (I hope hpaste is fine, as I really don't know if there is a preferred pastebin service around here).
Offline
You set your flags in the build() function, I suspect that they are therefore defined lcoally in this function. So either set them also in the package () function (where make is called that compiles firefox) or set them directly for the whole package like you did it with the !strip option and as it is explained in your linked wiki article, then debug symbols should be present.
//Edit: what i wrote is rubbish, overread the "install" in package(), don't know why it doesn't work for you.
//Edit2: Just tried to compile it with debug flags, too and realized that gcc was ececuted with -O2 as last option, short googling brought me to this site, basically add
export MOZ_DEBUG_SYMBOLS=1
to your build() function and add
ac_add_options --enable-debug-symbols="-gdwarf-2"
ac_add_options --disable-install-strip
these lines to your mozconfig and try again...
Last edited by matse (2012-05-27 15:52:46)
Offline
Thanks, I didn't think about the odd mozilla build system. Here is a proper backtrace:
#0 nsCategoryManager::AddCategoryEntry (this=0x7ffff6d15bc0, aCategoryName=0x7fffde63c520 "content-policy", aEntryName=0x7fffde649580 "Adblock Plus content policy", aValue=0x7fffde649660 "@adblockplus.org/abp/policy;1", aReplace=true, aOldValue=0x40)
at /home/bexie/aur/firefox/src/mozilla-release/xpcom/components/nsCategoryManager.cpp:611
#1 0x00007ffff5da9fc8 in nsCategoryManager::AddCategoryEntry (this=0x7ffff6d15bc0, aCategoryName=0x7fffde63c520 "content-policy", aEntryName=0x7fffde649580 "Adblock Plus content policy", aValue=0x7fffde649660 "@adblockplus.org/abp/policy;1", aPersist=true, aReplace=
true, _retval=0x40) at /home/bexie/aur/firefox/src/mozilla-release/xpcom/components/nsCategoryManager.cpp:599
#2 0x00007ffff5dbb395 in NS_InvokeByIndex_P (that=<optimized out>, methodIndex=<optimized out>, paramCount=<optimized out>, params=<optimized out>) at /home/bexie/aur/firefox/src/mozilla-release/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_unix.cpp:195
#3 0x00007ffff529b439 in Invoke (this=0x7fffffff98e0) at /home/bexie/aur/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedNative.cpp:2901
#4 Call (this=0x7fffffff98e0) at /home/bexie/aur/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedNative.cpp:2232
#5 XPCWrappedNative::CallMethod (ccx=..., mode=<optimized out>) at /home/bexie/aur/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedNative.cpp:2198
#6 0x00007ffff52a0d89 in XPC_WN_CallMethod (cx=0x7ffff6d5efc0, argc=5, vp=<optimized out>) at /home/bexie/aur/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1542
#7 0x00007ffff534335a in CallJSNative (args=..., native=<optimized out>, cx=0x7ffff6d5efc0) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jscntxtinlines.h:311
#8 js::InvokeKernel (cx=cx@entry=0x7ffff6d5efc0, args=..., construct=construct@entry=js::NO_CONSTRUCT) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jsinterp.cpp:519
#9 0x00007ffff5334b7e in js::Interpret (cx=cx@entry=0x7ffff6d5efc0, entryFrame=<optimized out>, entryFrame@entry=0x7fffe6dff048, interpMode=<optimized out>, interpMode@entry=js::JSINTERP_NORMAL) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jsinterp.cpp:2791
#10 0x00007ffff5342edb in js::RunScript (cx=cx@entry=0x7ffff6d5efc0, script=<optimized out>, fp=fp@entry=0x7fffe6dff048) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jsinterp.cpp:474
#11 0x00007ffff5343455 in js::InvokeKernel (cx=cx@entry=0x7ffff6d5efc0, args=..., construct=construct@entry=js::NO_CONSTRUCT) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jsinterp.cpp:537
#12 0x00007ffff53439f2 in Invoke (construct=js::NO_CONSTRUCT, args=..., cx=0x7ffff6d5efc0) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jsinterp.h:157
#13 js::Invoke (cx=0x7ffff6d5efc0, thisv=..., fval=..., argc=<optimized out>, argv=<optimized out>, rval=0x7fffffffb1e0) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jsinterp.cpp:569
#14 0x00007ffff52fff6d in JS_CallFunctionValue (cx=<optimized out>, obj=<optimized out>, fval=..., argc=<optimized out>, argv=<optimized out>, rval=<optimized out>) at /home/bexie/aur/firefox/src/mozilla-release/js/src/jsapi.cpp:5449
#15 0x00007ffff5294ee9 in nsXPCWrappedJSClass::CallMethod (this=<optimized out>, wrapper=<optimized out>, methodIndex=3, info=0x7fffe9cdb548, nativeParams=0x7fffffffb700) at /home/bexie/aur/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedJSClass.cpp:1510
#16 0x00007ffff5291afd in nsXPCWrappedJS::CallMethod (this=0x7fffe4e4ce80, methodIndex=3, info=0x7fffe9cdb548, params=0x7fffffffb700) at /home/bexie/aur/firefox/src/mozilla-release/js/xpconnect/src/XPCWrappedJS.cpp:617
#17 0x00007ffff5dbbf9f in PrepareAndDispatch (self=0x7fffe4ec8b20, methodIndex=<optimized out>, args=<optimized out>, gpregs=0x7fffffffb7c0, fpregs=<optimized out>)
at /home/bexie/aur/firefox/src/mozilla-release/xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp:153
#18 0x00007ffff5dbb4b3 in SharedStub () from /usr/lib/firefox/libxul.so
#19 0x00007ffff5daa29e in NS_CreateServicesFromCategory (category=0x7ffff5f4494a "profile-after-change", origin=0x0, observerTopic=0x7ffff5f4494a "profile-after-change") at /home/bexie/aur/firefox/src/mozilla-release/xpcom/components/nsCategoryManager.cpp:823
#20 0x00007ffff53fbcd6 in nsXREDirProvider::DoStartup (this=<optimized out>) at /home/bexie/aur/firefox/src/mozilla-release/toolkit/xre/nsXREDirProvider.cpp:754
#21 0x00007ffff53f7da9 in XRE_main (argc=<optimized out>, argv=<optimized out>, aAppData=<optimized out>) at /home/bexie/aur/firefox/src/mozilla-release/toolkit/xre/nsAppRunner.cpp:3411
#22 0x0000000000401e0e in do_main (argv=0x7fffffffe1e8, argc=3, exePath=0x7fffffffc0b0 "/usr/lib/firefox/") at /home/bexie/aur/firefox/src/mozilla-release/browser/app/nsBrowserApp.cpp:205
#23 main (argc=<optimized out>, argv=<optimized out>) at /home/bexie/aur/firefox/src/mozilla-release/browser/app/nsBrowserApp.cpp:295It looks like it is referring to some files in the build directory, while it obviously shouldn't... I don't know how to fix that, though.
Offline
Maybe you could build firefox from ABS without the new patch, as it is in the repos and look whether this works, just to exclude that not a package that is not from the official repos is the source of your problems. If this build does not crash you might post your backtrace to the bug report where the patch is from, probably the people there can help you more in this specific issue.
Offline
Well, firefox segfaults even with a vanilla ABS PKGBUILD, so it seems to be a build related issue. I'll try looking into it, though any insight would be much appreciated (btw, thank you matse for your help).
Offline
hmm my first guess would be that you have installed some libraries from the AUR or an unofficial repo, so would you post the output of "pacman -Qm" and look in your pacman.conf whether you have any unofficial repo listed there?
Offline
I have only one unofficial repo in my pacman.conf, which is [haskell] and shouldn't affect firefox at all (it mainly contains developing tools and libriaries for the Haskell programming language). I have installed a bunch of packages from the AUR, though:
$ pacman -Qm
apparix 08.331-2
atlas-lapack 3.8.4-3
aurploader 2012.02.16.67022-21
awesome-wm-themes-collection 1.0-2
cabal2arch 1.1-20
canto 0.7.10-2
clyde-git 20110701-1
cogs 4-1
colortheme 20100705-1
cower 5-1
daa2iso 0.1.7e-2
dar 2.4.5-1
detox 1.2.0-1
ecm 1.02-1
epsxe 1.6.0-9
epsxe-launcher-python 0.1-3
epsxe-plugin-gpu-mesagl 1.78-1
epsxe-plugin-gpu-soft 1.18-1
epsxe-plugin-gpu-xgl2 2.9-2
epsxe-plugin-padjoy 0.82-1
epsxe-plugin-spu-alsa 1.9-4
epsxe-plugin-spu-eternal 1.41-2
esound 0.2.41-3
fgetty 0.7-3
firefox-extension-https-everywhere 2.0.3-2
firefox-moonlight 3.99.0.3-9
foldit beta.20120228-1
gargoyle 2011.1-1
gextractwinicons 0.3.1-1
girara-common-git 20120310-1
gnofract4d 3.14-1
gnome-specimen-light 0.4-2
gnupod 0.99.8-3
google-sparsehash 1.12-1
gridwars 9.3.2006-6
grotesque 0.9.3-3
gtk-theme-dark-linux 0.7-1
haskell-archlinux 1.3-2
haskell-fez-conf 1.0.1-4
haskell-xdg-basedir 0.2.1-19
hg-git-hg 450-1
i7z-svn 53-1
img2djvu-git 20120210-1
irssi-script-sasl 1.1-1
jdownloader 0.3.2-1
jsmath-fonts 3.6a-2
jvgs 0.5-6
ladspa-bs2b 0.9.1-2
lib32-freeglut 2.8.0-2
lib32-glew1.5 1.5.8-1
lib32-gtk-engines 2.20.2-4
lib32-gtkglext 1.2.0-7
lib32-lib-compat 1.4.2-1
lib32-libpng14 1.4.11-1
lib32-libxpm 3.5.9-2
lib32-libxslt 1.1.26-5
lib32-libxxf86dga 1.1.3-1
lib32-nvidia-cg-toolkit 3.1-1
lib32-nvidia-utils-beta 302.11-1
lib32-portaudio 19_20111121-1
lib32-soundtouch 1.6.0-1
lib32-wxgtk 2.8.12-1
libbs2b 3.1.0-1
libdvdnav-svn 1243-1
libfetch 2.33-3
libgraphite 2.3.1-2
libvdpau-git-flashpatch 20120523-1
linux-ck-headers 3.2.2-1
lua-lzlib 0.4_work3-1
lua-yajl-git 20110429-1
modprobed_db 2.0-2
namebench 1.3.1-4
nas 1.9.3-1
ncmpcpp-git 20120515-1
nvidia-beta 302.11-1
nvidia-utils-beta 302.11-1
oilrush 1.10-1
osmos 1.6.1-2
pacaur 3.0.3-1
pacman-color 4.0.3-2
pcsx2-svn 5202-1
pdfgrep-git 20120212-1
pdfmasher-bin 0.x.x.latest-1
pentadactyl-hg 6771-1
perl-crypt-dh 0.06-1
perl-xml-fast 0.11-2
picard-git 20120506-1
picard-plugins 0.16-2
pidgin-emoticons-penguins 1.8-1
pidgin-guiops 0.5.1-1
pidgin-hotkeys 0.2.4-1
pidgin-light 2.10.3-2
pidgintex 1.1.1-1
playonlinux 4.1.1-1
plowshare snapshot_git20120511-1
ppub 20120403-1
psx 1.13-8
python-dulwich 0.8.3-1
python3-dateutil 2.0-2
python3-matplotlib-git 20111116-1
rbutil 1.2.13-1
revengeofthetitans 1.80.12-1
rhash 1.2.9-2
rmlint 1.0.8-1
ruby-sequel 3.31.0-1
rxvt-unicode-patched 9.15-5
sage-mathematics 4.8-7
sandfox 1.1.3-1
sedname 1.0.1-1
sl 3.03-4
slimrat 1.1_beta2-1
sparsehash 2.0.2-1
spideroak 4.5.9939-1
tcp_wrappers 7.6-15
torrentinfo 1.0.2-3
transmission-gtk2 2.52-1
ttf-ms-fonts 2.0-9
uif2iso 0.1.7c-1
unibrow 2012-1
universal-streamer 0.2.5-1
urlview 0.9-7
urxvt-keyboard-select 1.5-2
vba-m-gtk-svn 1090-1
vim-bash-support 3.9-1
vim-detectindent 20111104-1
vim-hexman 0.7.2-1
vim-latexsuite 20120125-2
vim-markdown 9-3
vim-neco-ghc 20120301-1
vim-neocomplcache 6.2-2
vim-nextcs 0.0.1-1
vim-sudo 2.0-4
vim-syntastic-git 20120307-1
vim-tagbar 2.3-2
vvvvvv 2.01-2
w3watch 1.0.2-1
wine-ubisoft 1.5.3-1
wkhtmltopdf-static 0.9.9-1
worldofgoo 1.41-4
xmp 3.5.0-1
youtube-viewer 20120513-1
zathura-djvu-git 20120410-1
zathura-git 20120410-1
zathura-pdf-poppler-git 20120410-1
zenbound2 20120325-1I looked for firefox dependencies (as listed in the PKGBUILD) in that list, but there are none.
Offline
At a first glance I don't see a problem with your packages, too. Could you also post the output of "ldd -r /usr/lib/firefox/libxul.so" (with a self build firefox of you)?
Offline
Here it is:
$ ldd -r /usr/lib/firefox/libxul.so
linux-vdso.so.1 => (0x00007fff7619e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc1e0c29000)
libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007fc1e09ba000)
libpng15.so.15 => /usr/lib/libpng15.so.15 (0x00007fc1e078c000)
libffi.so.6 => /usr/lib/libffi.so.6 (0x00007fc1e0584000)
libssl3.so => /usr/lib/libssl3.so (0x00007fc1e0344000)
libsmime3.so => /usr/lib/libsmime3.so (0x00007fc1e0116000)
libnss3.so => /usr/lib/libnss3.so (0x00007fc1dfddc000)
libnssutil3.so => /usr/lib/libnssutil3.so (0x00007fc1dfbb6000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007fc1df92d000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fc1df722000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fc1df483000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fc1df24c000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007fc1defa2000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007fc1ded8c000)
libhunspell-1.3.so.0 => /usr/lib/libhunspell-1.3.so.0 (0x00007fc1deb37000)
libevent-2.0.so.5 => /usr/lib/libevent-2.0.so.5 (0x00007fc1de8f0000)
libvpx.so.1 => /usr/lib/libvpx.so.1 (0x00007fc1de650000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x00007fc1de35c000)
libplds4.so => /usr/lib/libplds4.so (0x00007fc1de158000)
libplc4.so => /usr/lib/libplc4.so (0x00007fc1ddf53000)
libnspr4.so => /usr/lib/libnspr4.so (0x00007fc1ddd15000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fc1ddb11000)
libmozalloc.so => /usr/lib/firefox/libmozalloc.so (0x00007fc1dd90e000)
libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0x00007fc1dd6e6000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007fc1dd4a2000)
librt.so.1 => /lib/librt.so.1 (0x00007fc1dd29a000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007fc1dd04b000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fc1dcd57000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fc1dca1d000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fc1dc809000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007fc1dc5dc000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007fc1dc3cf000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007fc1dc183000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007fc1dbe8e000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007fc1db865000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007fc1db641000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007fc1db2f4000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007fc1db042000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007fc1dae1f000)
libXt.so.6 => /usr/lib/libXt.so.6 (0x00007fc1dabb9000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fc1da9b7000)
libstartup-notification-1.so.0 => /usr/lib/libstartup-notification-1.so.0 (0x00007fc1da7ad000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fc1da4a9000)
libm.so.6 => /lib/libm.so.6 (0x00007fc1da1b4000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fc1d9f9e000)
libc.so.6 => /lib/libc.so.6 (0x00007fc1d9bfd000)
/lib/ld-linux-x86-64.so.2 (0x00007fc1e2de4000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007fc1d99ec000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fc1d97c2000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007fc1d95bd000)
libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007fc1d9363000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fc1d9144000)
libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x00007fc1d8f42000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007fc1d8d38000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007fc1d8b31000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00007fc1d8919000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007fc1d8716000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00007fc1d8507000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007fc1d82fd000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007fc1d80f3000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007fc1d7ef0000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007fc1d7cec000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00007fc1d7ae4000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00007fc1d78c7000)
libxcb-util.so.0 => /usr/lib/libxcb-util.so.0 (0x00007fc1d76c1000)
libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007fc1d74bf000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fc1d72ba000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fc1d70b4000)
libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007fc1d6eae000)I also tried building it without optimizations and pgo, but that didn't help either (not that I was putting much in that).
Offline
Sorry, no idea anymore, my ldd output looks exactly the same. Is your system (and your mirror) full up to date? I have no ideas anymore, besides that you could try to build firefox in a chroot environment, but nevertheless it should also work if you just build it, like you did, but no idea what causes your problems.
Offline
Don't worry, I'll go back to using firefox from [extra], though I wanted to help with the testing. I'm still curious about why this is happening, but I don't know how to find out... do you get a "WARNING: Package contains reference to $srcdir", too, after building it with the PKGBUILD from ABS?
Offline
Lately I switched back from the nvidia driver to the nouveau one, and must say I've had some trouble with firefox 12 from [extra] =/
Edit : seems it's corrected on latest conf.
Last edited by PostBlue (2012-10-16 21:30:42)
Offline
If it's of any interest, Gentoo has just added a patch to firefox, to use system cairo again:
http://dev.gentoo.org/~anarchy/mozilla/ … s/?C=M;O=D (see 6009_fix_system_cairo_support.patch in firefox-12.0-patches-0.5.tar.xz)
http://sources.gentoo.org/cgi-bin/viewv … t/firefox/
Personally, I've been using the patch for cairo itself, in comment 20, for a while with no problem.
Last edited by brebs (2012-05-29 14:48:42)
Offline
I made a firefox-system-cairo AUR package for Uli's (= Gentoo's) patch: https://aur.archlinux.org/packages.php?ID=59634
It seems to work fine here (i686 build).
Last edited by ngaba (2012-05-31 15:49:48)
Offline