Closed Bug 261194 Opened 21 years ago Closed 16 years ago

firefox/installer linked against [libstdc++.so.5] crash when SCIM [libstdc++.so.6] @ free: invalid pointer mismatched allocators (gentoo, mandrake)

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: os, Unassigned)

References

Details

(Keywords: crash)

User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko) Build Identifier: Firefox1.0PR After pressing 'next' in the installer it closes and the console reports: "SCIM: im_module_init free(): invalid pointer 0x8aa1928! free(): invalid pointer 0x8aa1900! ./firefox-installer: line 56: 4626 segmentation fault ./${BINNAME}-bin $@" Reproducible: Always Steps to Reproduce: 1. Download the tarball, extract, change to firefox-installer directory 2. Run 'firefox-installer' 3. Press 'next' Actual Results: The installer closes and in the console I recieve the error listed above. Expected Results: The installer should have continued to install Firefox. I attempted this install using a newly installed Mandrake 10 operating system. I have had no problem installing on other Linux (TurboLinux)/Windows (XP & ME) boxes.
I have exactly the same problem, when I start firefox or firefox-bin, the program exits with the console messages: SCIM: im_module_init free(): invalid pointer 0x8a77030! free(): invalid pointer 0x8a77008! Reproducible: Always Steps to Reproduce: a1. Download the tarball, extract, change to firefox-installer directory a2. Run 'firefox-installer' a3. Press 'next' OR b1. Download the tarball(with *-i686-linux-gtk2+xft.tar.gz) b2. Extract and change to that directory b3. Go to directory with extracted file, and run 'firefox' Information for my system: Gentoo Linux: 2004.02 kernel version: 2.6.9 glibc: 2.3.4 SCIM: 1.0.1 GTK: 2.4.9 (In reply to comment #0) > User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko) > Build Identifier: Firefox1.0PR > > After pressing 'next' in the installer it closes and the console reports: > > "SCIM: im_module_init > > free(): invalid pointer 0x8aa1928! > free(): invalid pointer 0x8aa1900! > > ./firefox-installer: line 56: 4626 segmentation fault ./${BINNAME}-bin $@" > > > > Reproducible: Always > Steps to Reproduce: > 1. Download the tarball, extract, change to firefox-installer directory > 2. Run 'firefox-installer' > 3. Press 'next' > > Actual Results: > The installer closes and in the console I recieve the error listed above. > > Expected Results: > The installer should have continued to install Firefox. > > I attempted this install using a newly installed Mandrake 10 operating system. I > have had no problem installing on other Linux (TurboLinux)/Windows (XP & ME) > boxes.
Summary: After pressing 'next' in the installer it closes and the console window reports and error → After pressing 'next' in the installer it closes and the console window reports and error
[root@localhost firefox-installer]# ./firefox-installer SCIM: im_module_init free(): invalid pointer 0x832e810! free(): invalid pointer 0x832e7e8! ./firefox-installer: line 56: 20737 Segmentation fault ./${BINNAME}-bin $@ [root@localhost firefox-installer]# Running Mandrake 10.1 community. The same as all the other comments. If you can help please email me at magick_crow@hotmail.com I would love to use firefox! Thanks.
Possible workarounds: 1) Install Firefox using urpmi, so that you get a version compatible with Mandrake's particular collection of package versions. 2) From http://www.linuxformat.co.uk/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=10062&forum=1&8) scim -f x11 -c simple -ns socket -d export LC_CTYPE=en_US.UTF-8 export XMODIFIERS=@im=SCIM export GTK_IM_MODULE=xim ./firefox-installer I have not tried this, use at your own risk!
Summary: After pressing 'next' in the installer it closes and the console window reports and error → Pressing next button crashes installer (Mandrake, SCIM, free(): invalid pointer)
After banging my head against the wall numerous times I reinstalled my entire Mandrake distro and I could install Firefox without running into the crash again. The problem is that I have no idea what I did differently during the second install of Mandrake that helped avoid crashing during an install of Firefox. It could be that during the Mandrake reinstall I made sure to include Mozilla in case there were dependancy issues. However, I'm not sure if this had any real effect to my success in installing Firefox. (In reply to comment #2) > Running Mandrake 10.1 community. The same as all the other comments. > If you can help please email me at magick_crow@hotmail.com I would love to use > firefox! Thanks. >
(In reply to comment #4) > After banging my head against the wall numerous times I reinstalled my entire > Mandrake distro and I could install Firefox without running into the crash > again. The problem is that I have no idea what I did differently during the > second install of Mandrake that helped avoid crashing during an install of Firefox. My symptom is: remove SCIM from locale setting and I am able to install and use FireFox.. However, if I turn on SCIM again, unfortunatly, this happen again when you want to run you newly installed FireFox. So, If you are interested in how could that happen, try to set you Input method to SCIM in LocaleDrake(User)
I want to confirm that the same thing happened to me with the official Firefox 1.0 installer (downloaded from mozilla.org) on Mandrake 10.1 Official (download edition). Workaround no. 2 from Comment #3 works for me too. Might it be worth it to contact the author of SCIM?
confirming that removing scim 0.99.9 solves the problem. also solved the same problem with thunderbird install. would lead me to believe there is something common to both thunderbird, firefox, and scim. Using mandrake 10.1 Read that mandrake 10.1 is loading scim too early with x, in the context of a diffrent issue. Mandrake might be the common denominator here. can it be confirmed in other distros?
*** Bug 268251 has been marked as a duplicate of this bug. ***
Is this still happening with the latest trunk builds on Mandrake machines? I don't have a mandrake os.
*** Bug 279482 has been marked as a duplicate of this bug. ***
*** Bug 285277 has been marked as a duplicate of this bug. ***
*** Bug 276648 has been marked as a duplicate of this bug. ***
see http://sourceforge.net/tracker/index.php?func=detail&aid=1118079&group_id=108454&atid=650539 and http://sourceforge.net/tracker/index.php?func=detail&aid=1153809&group_id=108454&atid=650539 the firefox is linked against an older libstdc++ (libstdc++.so.5), but the SCIM installed on your system needs the current version (libstdc++.so.6). Both versions can't be loaded simultaneously. the suite installer is statically linked against libstdc++. I don't know if that would help here or not.
Keywords: crash
*** Bug 277500 has been marked as a duplicate of this bug. ***
*** Bug 277499 has been marked as a duplicate of this bug. ***
*** Bug 262277 has been marked as a duplicate of this bug. ***
*** Bug 290684 has been marked as a duplicate of this bug. ***
*** Bug 293317 has been marked as a duplicate of this bug. ***
Assignee: bugs → nobody
QA Contact: bugzilla → installer
Software: Mandriva 2005LE, scim, Firefox 1.5rc3 Reproduce: 1. Download Firefox 1.5 rc3 from mozilla.org 2. Run Firefox (with scim installed or enabled) 3. Crash With scim installed: [ageitgey@localhost firefox]$ catchsegv ./firefox | more ./run-mozilla.sh: line 131: 26796 Segmentation fault "$prog" ${1+"$@"} *** Segmentation fault Register dump: EAX: b76c003c EBX: b76bcf64 ECX: 00000001 EDX: 00000001 ESI: b76c1b2c EDI: 0000001f EBP: bfffd884 ESP: bfffd83c EIP: b7687d6b EFLAGS: 00010202 CS: 0073 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b Trap: 0000000e Error: 00000004 OldMask: 00000000 ESP/signal: bfffd83c CR2: 00000001 FPUCW: ffff037f FPUSW: ffff4020 TAG: ffffffff IPOFF: b74ab55c CSSEL: 0073 DATAOFF: bfffd958 DATASEL: 007b ST(0) 0000 f000000000000000 ST(1) 0000 efefefefefefeff0 ST(2) 0000 0000000000000000 ST(3) 0000 0000000000000000 ST(4) 0000 a7f4c18e5b27f1cd ST(5) 0000 a7f4c18e5b27f1cd ST(6) 0000 0000000000000000 ST(7) 0000 c800000000000000 Backtrace: /lib/libSegFault.so[0xb7fe7398] [0xffffe420] /usr/lib/libstdc++.so.5(_ZNSaIcE8allocateEjPKv+0x49)[0xb7687e09] /usr/lib/libstdc++.so.5(_ZNSs4_Rep9_S_createEjRKSaIcE+0x7e)[0xb768df3e] /usr/lib/libstdc++.so.5(_ZNSs4_Rep8_M_cloneERKSaIcEj+0x8c)[0xb768e0ec] /usr/lib/libstdc++.so.5(_ZNSs7reserveEj+0x6d)[0xb768ba3d] /usr/lib/libstdc++.so.5(_ZNSs6appendERKSs+0x7f)[0xb768bdcf] /usr/lib/libstdc++.so.5(_ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_S8_+0x3b)[0xb768e32b] /usr/lib/libscim-1.0.so.6[0xb60405a8] /lib/tls/libc.so.6[0xb75eec20] [0x0] .. etc Without scim: # Uninstall scim and all related packages [ageitgey@localhost firefox]$ sudo urpme scim [ageitgey@localhost firefox]$ catchsegv ./firefox And it works fine. I live in China and this is pretty much a show stopper for the hundreds of people in my company. Scim is required for any real use of this system. I don't know how this can be easily fixed. It seems to be a version mismatch of libc based on how Mandriva compiled scim. Any ideas? The Mandriva-produced builds are fine, but a large portion of Linux users can't upgrade Mozilla themselves from mozilla.org.
can someone please rebuild enough pieces (scim, libc[++]5, libc[++]6, mozilla) with symbols and run this under valigrind (with 40 or so frames of stack) long enough to hit this crash? I'd like to blame scim, but without symbols and two stack traces (one for the allocation and one of the free by scim), it's hard for me to do. scim should probably be freeing data using an exposed callback.
note that while I believe this is the oldest and only living bug on this subject, I'm not confirming it, because I believe this is actually a bug in scim. moving to core since this happens w/ both the installer and the app, and probably the best we can do is enhance the run-mozilla wrapper to detect scim and disable it.
Component: Installer → Build Config
Product: Firefox → Core
QA Contact: installer → build-config
Summary: Pressing next button crashes installer (Mandrake, SCIM, free(): invalid pointer) → firefox/installer linked against [libstdc++.so.5] crash when SCIM [libstdc++.so.6] @ free: invalid pointer mismatched allocators (gentoo, mandrake)
Adding something like the following at the beginning of run-mozilla wrapper would do it: if [ x"$GTK_IM_MODULE" == "xscim" ]; then export GTK_IM_MODULE=xim fi
There is no longer a Firefox installer on Linux.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.