Closed Bug 286706 Opened 19 years ago Closed 18 years ago

shlibsign segfaults when using gcc4 and amd64

Categories

(NSS :: Build, defect)

x86
Linux
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: henrik, Assigned: wtc)

Details

(Whiteboard: [WORKSFORME?])

When I build the Mozilla Suite shlibsign segfaults.

This is the output from the build log

cd mangle; /usr/bin/make -j1 libs
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign 
-v -i 
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/dist/lib/libsoftokn3.so
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memset' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memset' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memset' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memset' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memcpy' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memset' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memset' causes overflow in R_X86_64_PC32 relocation
/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/nss/shlibsign: 
Symbol `memset' causes overflow in R_X86_64_PC32 relocation
./sign.sh: line 2: 32264 Segmentation fault      ${2}/shlibsign -v -i ${4}
make[4]: *** 
[/home/henrik/Projects/Mozilla/Source/mozilla/suite-debug/dist/lib/libsoftokn3.chk] 
Error 139
make[3]: *** [libs] Error 2
make[2]: *** [tier_50] Error 2
make[1]: *** [default] Error 2
make: *** [build] Error 2

System:
Gcc4
Ubuntu Linux
Amd64
Source pulled from CVS yesterday

- I have tried the patch from bug 270502 but it did not help
- building with gcc-3.4 works. the only things I change is the export CC,export CXX
Chris, do you have the setup (Linux, amd64, gcc4) to
reproduce this crash?

Henrik, if the segmentation fault dumped a core file,
could you get a stack trace from it?
Status: NEW → ASSIGNED
Building the mozilla trunk is hosed in general on amd64.  Building branches seem
to work for me with the patchset here:
http://cvs.fedora.redhat.com/viewcvs/devel/firefox/

wtc, if you want, I can probably get you access to one as long as you are behind
our firewall.
Chris, Henrik,

I don't know about the mozilla trunk, but the NSS trunk builds just fine here on
Red Hat 3.0 Linux AMD64 , on a Sun v20z dual opteron box.
This bug may be the same as bug 293438.

I can't reproduce this bug now because my build fails early
in nsprpub, so I simply can't get to this step.

I found a bug report (sorry, forgot to write down its URL)
that shows the error message you saw was emitted by the old
ld, and the new ld would emit the error message reported in
bug 293438.
I just checked in a fix for the related bug 293438.

Could you pull the tip of the Mozilla clients (suite
or browser) and see if you can still reproduce this
shlibsign segmentation fault?
QA Contact: wtchang → build
FWIW, I'm building Firefox and SeaMonkey on Kubuntu 6.10/x86_64 in various
configurations without any problems...
Whiteboard: [WORKSFORME?]
Marked the bug WORKSFORME.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.