Closed Bug 421889 Opened 17 years ago Closed 16 years ago

build with GCC 4.3 on 64bit sidux, but i can't start Firefox 3 : buffer overflow

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 412610

People

(Reporter: heinrich_witt, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5pre) Gecko/2008031009 Firefox/3.0b5pre Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5pre) Gecko/2008031009 Firefox/3.0b5pre heinz@hexxer64:~/fx_source_trunk_gcc43/mozilla/dist/bin$ ./firefox *** buffer overflow detected ***: ./firefox-bin terminated ======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x37)[0x2ab7b6ba8827] /lib/libc.so.6[0x2ab7b6ba6d50] /lib/libc.so.6[0x2ab7b6ba740b] ./libxul.so(XRE_GetBinaryPath+0x4c)[0x2ab7b26ab6bc] ./firefox-bin[0x400e2f] /lib/libc.so.6(__libc_start_main+0xfa)[0x2ab7b6ae31ea] ./firefox-bin[0x400c69] ======= Memory map: ======== 00400000-00403000 r-xp 00000000 08:03 345898 /home/heinz/fx_source_trunk_gcc43/mozilla/dist/bin/firefox-bin 00602000-00603000 rw-p 00002000 08:03 345898 /home/heinz/fx_source_trunk_gcc43/mozilla/dist/bin/firefox-bin 00603000-00800000 rw-p 00603000 00:00 0 [heap] 2ab7b1c34000-2ab7b1c50000 r-xp 00000000 08:02 527378 /lib/ld-2.7.so 2ab7b1c50000-2ab7b1c53000 rw-p 2ab7b1c50000 00:00 0 2ab7b1e4f000-2ab7b1e51000 rw-p 0001b000 08:02 527378 /lib/ld-2.7.so 2ab7b1e51000-2ab7b1e67000 r-xp 00000000 08:02 527641 /lib/libpthread-2.7.so 2ab7b1e67000-2ab7b2067000 ---p 00016000 08:02 527641 /lib/libpthread-2.7.so 2ab7b2067000-2ab7b2069000 rw-p 00016000 08:02 527641 /lib/libpthread-2.7.so 2ab7b2069000-2ab7b206d000 rw-p 2ab7b2069000 00:00 0 2ab7b206d000-2ab7b2076000 r-xp 00000000 08:03 337166 /home/heinz/fx_source_trunk_gcc43/mozilla/memory/jemalloc/libjemalloc.so 2ab7b2076000-2ab7b2276000 ---p 00009000 08:03 337166 /home/heinz/fx_source_trunk_gcc43/mozilla/memory/jemalloc/libjemalloc.so 2ab7b2276000-2ab7b2277000 rw-p 00009000 08:03 337166 /home/heinz/fx_source_trunk_gcc43/mozilla/memory/jemalloc/libjemalloc.so 2ab7b2277000-2ab7b35fd000 r-xp 00000000 08:03 90536 /home/heinz/fx_source_trunk_gcc43/mozilla/toolkit/library/libxul.so 2ab7b35fd000-2ab7b37fd000 ---p 01386000 08:03 90536 /home/heinz/fx_source_trunk_gcc43/mozilla/toolkit/library/libxul.so 2ab7b37fd000-2ab7b39b3000 rw-p 01386000 08:03 90536 /home/heinz/fx_source_trunk_gcc43/mozilla/toolkit/library/libxul.so 2ab7b39b3000-2ab7b39c9000 rw-p 2ab7b39b3000 00:00 0 2ab7b39c9000-2ab7b3a72000 r-xp 00000000 08:03 337304 /home/heinz/fx_source_trunk_gcc43/mozilla/js/src/libmozjs.so 2ab7b3a72000-2ab7b3c71000 ---p 000a9000 08:03 337304 /home/heinz/fx_source_trunk_gcc43/mozilla/js/src/libmozjs.so 2ab7b3c71000-2ab7b3c79000 rw-p 000a8000 08:03 337304 /home/heinz/fx_source_trunk_gcc43/mozilla/js/src/libmozjs.so 2ab7b3c79000-2ab7b3c7d000 r-xp 00000000 08:03 345872 /home/heinz/fx_source_trunk_gcc43/mozilla/dist/bin/libxpcom.so 2ab7b3c7d000-2ab7b3e7c000 ---p 00004000 08:03 345872 /home/heinz/fx_source_trunk_gcc43/mozilla/dist/bin/libxpcom.so 2ab7b3e7c000-2ab7b3e7d000 rw-p 00003000 08:03 345872 /home/heinz/fx_source_trunk_gcc43/mozilla/dist/bin/libxpcom.so 2ab7b3e7d000-2ab7b3e80000 r-xp 00000000 08:03 82862 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/lib/ds/libplds4.so 2ab7b3e80000-2ab7b407f000 ---p 00003000 08:03 82862 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/lib/ds/libplds4.so 2ab7b407f000-2ab7b4080000 rw-p 00002000 08:03 82862 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/lib/ds/libplds4.so 2ab7b4080000-2ab7b4081000 rw-p 2ab7b4080000 00:00 0 2ab7b4081000-2ab7b4085000 r-xp 00000000 08:03 82880 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/lib/libc/src/libplc4.so 2ab7b4085000-2ab7b4284000 ---p 00004000 08:03 82880 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/lib/libc/src/libplc4.so 2ab7b4284000-2ab7b4285000 rw-p 00003000 08:03 82880 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/lib/libc/src/libplc4.so 2ab7b4285000-2ab7b42bd000 r-xp 00000000 08:03 337262 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/pr/src/libnspr4.so 2ab7b42bd000-2ab7b44bd000 ---p 00038000 08:03 337262 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/pr/src/libnspr4.so 2ab7b44bd000-2ab7b44bf000 rw-p 00038000 08:03 337262 /home/heinz/fx_source_trunk_gcc43/mozilla/nsprpub/pr/src/libnspr4.so 2ab7b44bf000-2ab7b44c2000 rw-p 2ab7b44bf000 00:00 0 2ab7b44c2000-2ab7b44c4000 r-xp 00000000 08:02 527615 /lib/libdl-2.7.so 2ab7b44c4000-2ab7b46c4000 ---p 00002000 08:02 527615 /lib/libdl-2.7.so 2ab7b46c4000-2ab7b46c6000 rw-p 00002000 08:02 527615 /lib/libdl-2.7.so 2ab7b46c6000-2ab7b46c7000 rw-p 2ab7b46c6000 00:00 0 2ab7b46c7000-2ab7b4a75000 r-xp 00000000 08:02 325581 /usr/lib/libgtk-x11-2.0.so.0.1200.8 2ab7b4a75000-2ab7b4c74000 ---p 003ae000 08:02 325581 /usr/lib/libgtk-x11-2.0.so.0.1200.8 2ab7b4c74000-2ab7b4c7e000 rw-p 003ad000 08:02 325581 /usr/lib/libgtk-x11-2.0.so.0.1200.8 2ab7b4c7e000-2ab7b4c81000 rw-p 2ab7b4c7e000 00:00 0 2ab7b4c81000-2ab7b4c9f000 r-xp 00000000 08:02 325459 /usr/lib/libatk-1.0.so.0.2009.1 2ab7b4c9f000-2ab7b4e9f000 ---p 0001e000 08:02 325459 /usr/lib/libatk-1.0.so.0.2009.1 2ab7b4e9f000-2ab7b4ea2000 rw-p 0001e000 08:02 325459 /usr/lib/libatk-1.0.so.0.2009.1 2ab7b4ea2000-2ab7b4f34000 r-xp 00000000 08:02 325533 /usr/lib/libgdk-x11-2.0.so.0.1200.8 2ab7b4f34000-2ab7b5134000 ---p 00092000 08:02 325533 /usr/lib/libgdk-x11-2.0.so.0.1200.8 2ab7b5134000-2ab7b5139000 rw-p 00092000 08:02 325533 /usr/lib/libgdk-x11-2.0.so.0.1200.8 2ab7b5139000-2ab7b513a000 rw-p 2ab7b5139000 00:00 0 2ab7b513a000-2ab7b5153000 r-xp 00000000 08:02 325534 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.8 2ab7b5153000-2ab7b5353000 ---p 00019000 08:02 325534 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.8 2ab7b5353000-2ab7b5354000 rw-p 00019000 08:02 325534 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.8 2ab7b5354000-2ab7b535d000 r-xp 00000000 08:02 325752 /usr/lib/libpangocairo-1.0.so.0.1800.4 2ab7b535d000-2ab7b555d000 ---p 00009000 08:02 325752 /usr/lib/libpangocairo-1.0.so.0.1800.4 2ab7b555d000-2ab7b555e000 rw-p 00009000 08:02 325752 /usr/lib/libpangocairo-1.0.so.0.1800.4 2ab7b555e000-2ab7b55a0000 r-xp 00000000 08:02 325751 /usr/lib/libpango-1.0.so.0.1800.4 2ab7b55a0000-2ab7b579f000 ---p 00042000 08:02 325751 /usr/lib/libpango-1.0.so.0.1800.4 2ab7b579f000-2ab7b57a2000 rw-p 00041000 08:02 325751 /usr/lib/libpango-1.0.so.0.1800.4 2ab7b57a2000-2ab7b57a3000 rw-p 2ab7b57a2000 00:00 0 2ab7b57a3000-2ab7b581e000 r-xp 00000000 08:02 325478 /usr/lib/libcairo.so.2.11.7 2ab7b581e000-2ab7b5a1d000 ---p 0007b000 08:02 325478 /usr/lib/libcairo.so.2.11.7 2ab7b5a1d000-2ab7b5a20000 rw-p 0007a000 08:02 325478 /usr/lib/libcairo.so.2.11.7 2ab7b5a20000-2ab7b5a23000 r-xp 00000000 08:02 325560 /usr/lib/libgmodule-2.0.so.0.1400.6 2ab7b5a23000-2ab7b5c22000 ---p 00003000 08:02 325560 /usr/lib/libgmodule-2.0.so.0.1400.6 2ab7b5c22000-2ab7b5c23000 rw-p 00002000 08:02 325560 /usr/lib/libgmodule-2.0.so.0.1400.6 2ab7b5c23000-2ab7b5c65000 r-xp 00000000 08:02 325569 /usr/lib/libgobject-2.0.so.0.1400.6 2ab7b5c65000-2ab7b5e64000 ---p 00042000 08:02 325569 /usr/lib/libgobject-2.0.so.0.1400.6 2ab7b5e64000-2ab7b5e66000 rw-p 00041000 08:02 325569 /usr/lib/libgobject-2.0.so.0.1400.6 2ab7b5e66000-2ab7b5e67000 rw-p 2ab7b5e66000 00:00 0 2ab7b5e67000-2ab7b5f14000 r-xp 00000000 08:02 325556 /usr/lib/libglib-2.0.so.0.1400.6 2ab7b5f14000-2ab7b6113000 ---p 000ad000 08:02 325556 /usr/lib/libglib-2.0.so.0.1400.6 2ab7b6113000-2ab7b6115000 rw-p 000ac000 08:02 325556 /usr/lib/libglib-2.0.so.0.1400.6 2ab7b6115000-2ab7b6217000 r-xp 00000000 08:02 325405 /usr/lib/libX11.so.6.2.0 2ab7b6217000-2ab7b6317000 ---p 00102000 08:02 325405 /usr/lib/libX11.so.6.2.0 2ab7b6317000-2ab7b631e000 rw-p 00102000 08:02 325405 /usr/lib/libX11.so.6.2.0 2ab7b631e000-2ab7b63a0000 r-xp 00000000 08:02 527623 /lib/libm-2.7.so 2ab7b63a0000-2ab7b659f000 ---p 00082000 08:02 527623 /lib/libm-2.7.so 2ab7b659f000-2ab7b65a1000 rw-p 00081000 08:02 527623 /lib/libm-2.7.so 2ab7b65a1000-2ab7b65a2000 rw-p 2ab7b65a1000 00:00 0 2ab7b65a2000-2ab7b6692000 r-xp 00000000 08:02 762903 /usr/lib/libstdc++.so.6.0.10 2ab7b6692000-2ab7b6892000 ---p 000f0000 08:02 762903 /usr/lib/libstdc++.so.6.0.10 2ab7b6892000-2ab7b6898000 r--p 000f0000 08:02 762903 /usr/lib/libstdc++.so.6.0.10 2ab7b6898000-2ab7b689b000 rw-p 000f6000 08:02 762903 /usr/lib/libstdc++.so.6.0.10 2ab7b689b000-2ab7b68ae000 rw-p 2ab7b689b000 00:00 0 2ab7b68ae000-2ab7b68c4000 r-xp 00000000 08:02 528626 /lib/libgcc_s.so.1 2ab7b68c4000-2ab7b6ac4000 ---p 00016000 08:02 528626 /lib/libgcc_s.so.1 2ab7b6ac4000-2ab7b6ac5000 rw-p 00016000 08:02 528626 /lib/libgcc_s.so.1 2ab7b6ac5000-2ab7b6c0f000 r-xp 00000000 08:02 527606 /lib/libc-2.7.so 2ab7b6c0f000-2ab7b6e0f000 ---p 0014a000 08:02 527606 /lib/libc-2.7.so 2ab7b6e0f000-2ab7b6e12000 r--p 0014a000 08:02 527606 /lib/libc-2.7.so 2ab7b6e12000-2ab7b6e14000 rw-p 0014d000 08:02 527606 /lib/libc-2.7.so 2ab7b6e14000-2ab7b6e1a000 rw-p 2ab7b6e14000 00:00 0 2ab7b6e1a000-2ab7b6e8b000 r-xp 00000000 08:03 370111 /home/heinz/fx_source_trunk_gcc43/mozilla/db/sqlite3/src/libsqlite3.so 2ab7b6e8b000-2ab7b708a000 ---p 00071000 08:03 370111 /home/heinz/fx_source_trunk_gcc43/mozilla/db/sqlite3/src/libsqlite3.so 2ab7b708a000-2ab7b708d000 rw-p 00070000 08:03 370111 /home/heinz/fx_source_trunk_gcc43/mozilla/db/sqlite3/src/libsqlite3.so 2ab7b708d000-2ab7b70b0000 r-xp 00000000 08:03 482241 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/smime/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsmime3.so 2ab7b70b0000-2ab7b72af000 ---p 00023000 08:03 482241 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/smime/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsmime3.so 2ab7b72af000-2ab7b72b3000 rw-p 00022000 08:03 482241 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/smime/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsmime3.so 2ab7b72b3000-2ab7b72dd000 r-xp 00000000 08:03 482198 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/ssl/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libssl3.so 2ab7b72dd000-2ab7b74dd000 ---p 0002a000 08:03 482198 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/ssl/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libssl3.so 2ab7b74dd000-2ab7b74e0000 rw-p 0002a000 08:03 482198 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/ssl/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libssl3.so 2ab7b74e0000-2ab7b74e1000 rw-p 2ab7b74e0000 00:00 0 2ab7b74e1000-2ab7b75e7000 r-xp 00000000 08:03 482170 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/nss/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libnss3.so 2ab7b75e7000-2ab7b77e7000 ---p 00106000 08:03 482170 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/nss/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libnss3.so 2ab7b77e7000-2ab7b77ef000 rw-p 00106000 08:03 482170 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/nss/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libnss3.so 2ab7b77ef000-2ab7b77f0000 rw-p 2ab7b77ef000 00:00 0 2ab7b77f0000-2ab7b7806000 r-xp 00000000 08:03 481893 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/util/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libnssutil3.so 2ab7b7806000-2ab7b7a05000 ---p 00016000 08:03 481893 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/util/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libnssutil3.so 2ab7b7a05000-2ab7b7a0a000 rw-p 00015000 08:03 481893 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/util/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libnssutil3.so 2ab7b7a0a000-2ab7b7a3d000 r-xp 00000000 08:03 481966 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/softoken/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsoftokn3.so 2ab7b7a3d000-2ab7b7c3c000 ---p 00033000 08:03 481966 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/softoken/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsoftokn3.so 2ab7b7c3c000-2ab7b7c3e000 rw-p 00032000 08:03 481966 /home/heinz/fx_source_trunk_gcc43/mozilla/security/nss/lib/softoken/Linux2.6_x86_64_glibc_PTH_64_OPT.OBJ/libsoftokn3.so 2ab7b7c3e000-2ab7b7c3f000 rw-p 2ab7b7c3e000 00:00 0 2ab7b7c3f000-2ab7b7c70000 r-xp 00000000 08:02 325753 /usr/lib/libpangoft2-1.0.so.0.1800.4 2ab7b7c70000-2ab7b7e70000 ---p 00031000 08:02 325753 /usr/lib/libpangoft2-1.0.so.0.1800.4 2ab7b7e70000-2ab7b7e71000 rw-p 00031000 08:02 325753 /usr/lib/libpangoft2-1.0.so.0.1800.4 2ab7b7e71000-2ab7b7e7a000 r-xp 00000000 08:02 325423 /usr/lib/libXrender.so.1.3.0 2ab7b7e7a000-2ab7b8079000 ---p 00009000 08:02 325423 /usr/lib/libXrender.so.1.3.0 2ab7b8079000-2ab7b807a000 rw-p 00008000 08:02 325423 /usr/lib/libXrender.so.1.3.0 2ab7b807a000-2ab7b80f2000 r-xp 00000000 08:02 325523 /usr/lib/libfreetype.so.6.3.16 2ab7b80f2000-2ab7b82f2000 ---p 00078000 08:02 325523 /usr/lib/libfreetype.so.6.3.16 2ab7b82f2000-2ab7b82f7000 rw-p 00078000 08:02 325523 /usr/lib/libfreetype.so.6.3.16 2ab7b82f7000-2ab7b82f8000 rw-p 2ab7b82f7000 00:00 0 2ab7b82f8000-2ab7b8326000 r-xp 00000000 08:02 325518 /usr/lib/libfontconfig.so.1.3.0 2ab7b8326000-2ab7b8526000 ---p 0002e000 08:02 325518 /usr/lib/libfontconfig.so.1.3.0 2ab7b8526000-2ab7b8528000 rw-p 0002e000 08:02 325518 /usr/lib/libfontconfig.so.1.3.0 2ab7b8528000-2ab7b853b000 r-xp 00000000 08:02 325416 /usr/lib/libXft.so.2.1.2 2ab7b853b000-2ab7b863a000 ---p 00013000 08:02 325416 /usr/lib/libXft.so.2.1.2 2ab7b863a000-2ab7b863b000 rw-p 00012000 08:02 325416 /usr/lib/libXft.so.2.1.2 2ab7b863b000-2ab7b8696000 r-xp 00000000 08:02 325425 /usr/lib/libXt.so.6.0.0 2ab7b8696000-2ab7b8895000 ---p 0005b000 08:02 325425 /usr/lib/libXt.so.6.0.0 2ab7b8895000-2ab7b889b000 rw-p 0005a000 08:02 325425 /usr/lib/libXt.so.6.0.0 2ab7b889b000-2ab7b889d000 rw-p 2ab7b889b000 00:00 0 2ab7b889d000-2ab7b88a1000 r-xp 00000000 08:02 325580 /usr/lib/libgthread-2.0.so.0.1400.6 2ab7b88a1000-2ab7b8aa0000 ---p 00004000 08:02 325580 /usr/lib/libgthread-2.0.so.0.1400.6 2ab7b8aa0000-2ab7b8aa1000 rw-p 00003000 08:02 325580 /usr/lib/libgthread-2.0.so.0.1400.6 2ab7b8aa1000-2ab7b8ab7000 r-xp 00000000 08:02 325835 /usr/lib/libz.so.1.2.3.3 2ab7b8ab7000-2ab7b8cb7000 ---p 00016000 08:02 325835 /usr/lib/libz.so.1.2.3.3 2ab7b8cb7000-2ab7b8cb8000 rw-p 00016000 08:02 325835 /usr/lib/libz.so.1.2.3.3 2ab7b8cb8000-2ab7b8cb9000 rw-p 2ab7b8cb8000 00:00 0 2ab7b8cb9000-2ab7b8cbb000 r-xp 00000000 08:02 325409 /usr/lib/libXcomposite.so.1.0.0 2ab7b8cbb000-2ab7b8eba000 ---p 00002000 08:02 325409 /usr/lib/libXcomposite.so.1.0.0 2ab7b8eba000-2ab7b8ebb000 rw-p 00001000 08:02 325409 /usr/lib/libXcomposite.so.1.0.0 2ab7b8ebb000-2ab7b8ebd000 r-xp 00000000 08:02 325411 /usr/lib/libXdamage.so.1.1.0 2ab7b8ebd000-2ab7b8fbc000 ---p 00002000 08:02 325411 /usr/lib/libXdamage.so.1.1.0 2ab7b8fbc000-2ab7b8fbd000 rw-p 00001000 08:02 325411 /usr/lib/libXdamage.so.1.1.0 2ab7b8fbd000-2ab7b8fc2000 r-xp 00000000 08:02 325414 /usr/lib/libXfixes.so.3.1.0 2ab7b8fc2000-2ab7b90c1000 ---p 00005000 08:02 325414 /usr/lib/libXfixes.so.3.1.0 2ab7b90c1000-2ab7b90c2000 rw-p 00004000 08:02 325414 /usr/lib/libXfixes.so.3.1.0 2ab7b90c2000-2ab7b90c3000 rw-p 2ab7b90c2000 00:00 0 2ab7b90c3000-2ab7b90d3000 r-xp 00000000 08:02 326464 /usr/lib/libXext.so.6.4.0 2ab7b90d3000-2ab7b92d3000 ---p 00010000 08:02 326464 /usr/lib/libXext.so.6.4.0 2ab7b92d3000-2ab7b92d4000 rw-p 00010000 08:02 326464 /usr/lib/libXext.so.6.4.0 2ab7b92d4000-2ab7b92d6000 r-xp 00000000 08:02 762802 /usr/lib/libXinerama.so.1.0.0 2ab7b92d6000-2ab7b94d5000 ---p 00002000 08:02 762802 /usr/lib/libXinerama.so.1.0.0 2ab7b94d5000-2ab7b94d6000 rw-p 00001000 08:02 762802 /usr/lib/libXinerama.so.1.0.0 2ab7b94d6000-2ab7b94de000 r-xp 00000000 08:02 325417 /usr/lib/libXi.so.6.0.0 2ab7b94de000-2ab7b96de000 ---p 00008000 08:02 325417 /usr/lib/libXi.so.6.0.0 2ab7b96de000-2ab7b96df000 rw-p 00008000 08:02 325417 /usr/lib/libXi.so.6.0.0 2ab7b96df000-2ab7b96e0000 rw-p 2ab7b96df000 00:00 0 2ab7b96e0000-2ab7b96e6000 r-xp 00000000 08:02 325422 /usr/lib/libXrandr.so.2.1.0 2ab7b96e6000-2ab7b98e6000 ---p 00006000 08:02 325422 /usr/lib/libXrandr.so.2.1.0 2ab7b98e6000-2ab7b98e7000 rw-p 00006000 08:02 325422 /usr/lib/libXrandr.so.2.1.0 2ab7b98e7000-2ab7b98f0000 r-xp 00000000 08:02 325410 /usr/lib/libXcursor.so.1.0.2 2ab7b98f0000-2ab7b9af0000 ---p 00009000 08:02 325410 /usr/lib/libXcursor.so.1.0.2 2ab7b9af0000-2ab7b9af1000 rw-p 00009000 08:02 325410 /usr/lib/libXcursor.so.1.0.2 2ab7b9af1000-2ab7b9af2000 rw-p 2ab7b9af1000 00:00 0 2ab7b9af2000-2ab7b9b15000 r-xp 00000000 08:02 325765 /usr/lib/libpng12.so.0.15.0 2ab7b9b15000-2ab7b9d15000 ---p 00023000 08:02 325765 /usr/lib/libpng12.so.0.15.0 2ab7b9d15000-2ab7b9d16000 rw-p 00023000 08:02 325765 /usr/lib/libpng12.so.0.15.0 2ab7b9d16000-2ab7b9d3c000 r-xp 00000000 08:02 325760 /usr/lib/libpcre.so.3.12.1 2ab7b9d3c000-2ab7b9f3b000 ---p 00026000 08:02 325760 /usr/lib/libpcre.so.3.12.1 2ab7b9f3b000-2ab7b9f3c000 rw-p 00025000 08:02 325760 /usr/lib/libpcre.so.3.12.1 2ab7b9f3c000-2ab7b9f3e000 r-xp 00000000 08:02 325407 /usr/lib/libXau.so.6.0.0 2ab7b9f3e000-2ab7ba03d000 ---p 00002000 08:02 325407 /usr/lib/libXau.so.6.0.0 2ab7ba03d000-2ab7ba03e000 rw-p 00001000 08:02 325407 /usr/lib/libXau.so.6.0.0 2ab7ba03e000-2ab7ba03f000 rw-p 2ab7ba03e000 00:00 0 2ab7ba03f000-2ab7ba044000 r-xp 00000000 08:02 325412 /usr/lib/libXdmcp.so.6.0.0 2ab7ba044000-2ab7ba143000 ---p 00005000 08:02 325412 /usr/lib/libXdmcp.so.6.0.0 2ab7ba143000-2ab7ba144000 rw-p 00004000 08:02 325412 /usr/lib/libXdmcp.so.6.0.0 2ab7ba144000-2ab7ba164000 r-xp 00000000 08:02 325515 /usr/lib/libexpat.so.1.0.0 2ab7ba164000-2ab7ba364000 ---p 00020000 08:02 325515 /usr/lib/libexpat.so.1.0.0 2ab7ba364000-2ab7ba367000 rw-p 00020000 08:02 325515 /usr/lib/libexpat.so.1.0.0 2ab7ba367000-2ab7ba368000 rw-p 2ab7ba367000 00:00 0 2ab7ba368000-2ab7ba370000 r-xp 00000000 08:02 325403 /usr/lib/libSM.so.6.0.0 2ab7ba370000-2ab7ba56f000 ---p 00008000 08:02 325403 /usr/lib/libSM.so.6.0.0 2ab7ba56f000-2ab7ba570000 rw-p 00007000 08:02 325403 /usr/lib/libSM.so.6.0.0 2ab7ba570000-2ab7ba586000 r-xp 00000000 08:02 325392 /usr/lib/libICE.so.6.3.0 2ab7ba586000-2ab7ba786000 ---p 00016000 08:02 325392 /usr/lib/libICE.so.6.3.0 2ab7ba786000-2ab7ba787000 rw-p 00016000 08:02 325392 /usr/lib/libICE.so.6.3.0 2ab7ba787000-2ab7ba78b000 rw-p 2ab7ba787000 00:00 0 2ab7ba78b000-2ab7ba793000 r-xp 00000000 08:02 527644 /lib/librt-2.7.so 2ab7ba793000-2ab7ba992000 ---p 00008000 08:02 527644 /lib/librt-2.7.so 2ab7ba992000-2ab7ba994000 rw-p 00007000 08:02 527644 /lib/librt-2.7.so 2ab7ba994000-2ab7ba998000 rw-p 2ab7ba994000 00:00 0 7ffff8e60000-7ffff8e75000 rw-p 7ffffffea000 00:00 0 [stack] 7ffff8ffe000-7ffff9000000 r-xp 7ffff8ffe000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] ./run-mozilla.sh: line 131: 6255 Abgebrochen "$prog" ${1+"$@"} heinz@hexxer64:~/fx_source_trunk_gcc43/mozilla/dist/bin$ Reproducible: Always Steps to Reproduce: 1.build with GCC 4.3 (sidux) 2.try to start 3. Actual Results: Fx 3 crashes Expected Results: Fx should start Sidux 2007-4.5, Kernel 2.6.24.3, GCC 4.3.0
Version: unspecified → Trunk
please install symbols for your system (at least libc, but really also x, glib, gdk, gtk, cairo, ...) and rebuild firefox w/ --enable-debugger-info-modules.
I have the same error when I compile with GCC 4.3.0 and -Wp,-D_FORTIFY_SOURCE=2 added to --enable-optimize in .mozconfig. Here is a stacktrace from a debug build. #0 0xffffe424 in __kernel_vsyscall () #1 0x43e3d5d5 in raise () from /lib/i686/libc.so.6 #2 0x43e3f021 in abort () from /lib/i686/libc.so.6 #3 0x43e7535c in JS_DHashAllocTable () at /home/bsjacks/mozilla/js/src/jsdhash.c:88 #4 0x00000006 in ?? () #5 0x00000004 in ?? () #6 0x00000006 in ?? () #7 0x0000000c in ?? () #8 0x42fc5fa0 in JS_DHashAllocTable () at /home/bsjacks/mozilla/js/src/jsdhash.c:88 #9 0xbfe9e704 in ?? () #10 0x42fc65a6 in _dl_map_object_deps (map=0x1, preloads=0x0, npreloads=<value optimized out>, trace_mode=2, open_mode=1140043136) at dl-deps.c:248 #11 0x43efb658 in __fortify_fail () from /lib/i686/libc.so.6 #12 0x43ef9cb0 in __chk_fail () from /lib/i686/libc.so.6 #13 0x43efa408 in __realpath_chk () from /lib/i686/libc.so.6 #14 0x08079c76 in XRE_GetBinaryPath ( argv0=0xbfe9feee "/home/bsjacks/mozilla/obj-i686-pc-linux-gnu/dist/bin/firefox-bin", aResult=0xbfe9eae0) at /usr/include/bits/stdlib.h:44 #15 0x080777d9 in main (argc=1, argv=0xbfe9eb94) at /home/bsjacks/mozilla/browser/app/nsBrowserApp.cpp:114
Now i get this error : checking for gcc... /usr/bin/gcc4.3 checking whether the C compiler (/usr/bin/gcc4.3 -gstabs+ ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. *** Fix above errors and then restart with "make -f client.mk build" make[1]: *** [configure] Fehler 1 make[1]: Leaving directory `/home/heinz/fx_source_test/mozilla' make: *** [/home/heinz/fx_source_test/mozilla/Makefile] Fehler 2 Oo
After a GCC-Update it works now. It was actually D_FORTIFY_SOURCE=2. Without that in my mozconfig Fx3 starts. :D
(In reply to comment #4) > After a GCC-Update it works now. > It was actually D_FORTIFY_SOURCE=2. > Without that in my mozconfig Fx3 starts. :D > So can you change the resolution to Worksforme?
I think the buffer overflow detected is valid, at least possible. Disabling D_FORTIFY_SOURCE is in no way a correct fix! Have a look at XRE_GetBinaryPath() (in toolkit/xre/nsAppRunner.cpp). It contains sprintf() and realpath(), both considered bad practice. Probably they should be changed to snprintf() and canonicalize_file_name(). For now, the mandriva fix is there (but I don't think it's the right way): http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/mozilla-firefox/branches/firefox3/current/SOURCES/firefox-3.0rc1-gcc43.patch?view=markup&pathrev=212478
This is probably a dupe of bug 412610 . However, I wonder if instead of using the non recommended realpath() function and a static buffer, it would not be cleaner to dynamically allocate the string, such as with this patch (but it relies on a GNU extension): --- toolkit/xre/nsAppRunner.cpp.bak 2008-05-28 15:21:14.000000000 +0200 +++ toolkit/xre/nsAppRunner.cpp 2008-05-28 15:29:51.000000000 +0200 @@ -1353,7 +1353,7 @@ XRE_GetBinaryPath(const char* argv0, nsI #elif defined(XP_UNIX) struct stat fileStat; - char exePath[MAXPATHLEN]; + char *exePath; char tmpPath[MAXPATHLEN]; rv = NS_ERROR_FAILURE; @@ -1379,9 +1379,14 @@ XRE_GetBinaryPath(const char* argv0, nsI } #endif - if (NS_FAILED(rv) && - realpath(argv0, exePath) && stat(exePath, &fileStat) == 0) { - rv = NS_OK; + if (NS_FAILED(rv)) { + exePath = canonicalize_file_name(argv0); // This is a GNU extension, better than realpath() + if (exePath && stat(exePath, &fileStat) == 0) { + rv = NS_OK; + } else { + free(exePath); + exePath = NULL; + } } if (NS_FAILED(rv)) { @@ -1397,10 +1402,14 @@ XRE_GetBinaryPath(const char* argv0, nsI char *newStr = pathdup; char *token; while ( (token = nsCRT::strtok(newStr, ":", &newStr)) ) { - sprintf(tmpPath, "%s/%s", token, argv0); - if (realpath(tmpPath, exePath) && stat(exePath, &fileStat) == 0) { + snprintf(tmpPath, sizeof(tmpPath), "%s/%s", token, argv0); + exePath = canonicalize_file_name(tmpPath); + if (exePath && stat(exePath, &fileStat) == 0) { found = PR_TRUE; break; + } else { + free(exePath); + exePath = NULL; } } free(pathdup); @@ -1410,6 +1419,7 @@ XRE_GetBinaryPath(const char* argv0, nsI rv = NS_NewNativeLocalFile(nsDependentCString(exePath), PR_TRUE, getter_AddRefs(lf)); + free(exePath); if (NS_FAILED(rv)) return rv;
(In reply to comment #7) I also think this is a dup. og Bug 412610. Attachment 325241 [details] [diff] will fix this.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.