Closed Bug 366366 Opened 18 years ago Closed 18 years ago

[ia64] unaligned access message in RevertSpacesToNBSP()

Categories

(Core :: Layout, defect)

1.8 Branch
Other
Linux
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 161826

People

(Reporter: bryan.stillwell, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux ia64; en-US; rv:1.8.1.1) Gecko/20070108 BonEcho/2.0.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux ia64; en-US; rv:1.8.1.1) Gecko/20070108 BonEcho/2.0.0.1

When running firefox 2.0.0.1, I'm getting the following 'unaligned access' message:

firefox-bin(27853): unaligned access to 0x60000fffff51243f, ip=0x400000000085cf00

I then used gdb to list the code which is causing the problem and this is what it reported:

(gdb) list *0x400000000085cf00
0x400000000085cf00 is in RevertSpacesToNBSP (/data/firefox/mozilla/layout/generic/nsTextFrame.cpp:6231).
6226    RevertSpacesToNBSP(PRUnichar* aBuffer, PRInt32 aWordLen)
6227    {
6228      PRUnichar* end = aBuffer + aWordLen;
6229      for (; aBuffer < end; aBuffer++) {
6230        PRUnichar ch = *aBuffer;
6231        if (ch == ' ') {
6232          *aBuffer = CH_NBSP;
6233        }
6234      }
6235    }

Reproducible: Always

Steps to Reproduce:
1. Run firefox 2.0.0.1 on an ia64 system
2. Go to Edit -> Preferences
3. Notice the 'unaligned access' message
Actual Results:  
firefox-bin(27853): unaligned access to 0x60000fffff51243f, ip=0x400000000085cf00

Expected Results:  
No unaligned access messages.

Here's my build configuration:

gcc     gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)       -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe
c++     gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)       -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe

Configure arguments: --enable-application=browser '--enable-optimize=-pipe\ -w\ -O2\ -g\ -fno-strict-aliasing' --enable-static --enable-default-toolkit=gtk2 --enable-pango --enable-canvas --enable-svg --enable-svg-renderer=cairo --enable-system-cairo --enable-mathml --enable-xft --with-system-png=/usr --with-system-jpeg=/usr --with-system-zlib=/usr --disable-debug --disable-shared --disable-pedantic --disable-tests --disable-strip --disable-strip-libs --disable-installer --disable-updater --disable-mailnews --disable-composer --disable-ldap
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.8 Branch
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.