GetFactory error for libpipnss.sl in Mozilla 0.9.6 (HP-UX 10.20 build)

RESOLVED INCOMPLETE

Status

Firefox Build System
General
P4
major
RESOLVED INCOMPLETE
17 years ago
4 months ago

People

(Reporter: Thierry Emery, Unassigned)

Tracking

1.0 Branch
Future
HP
HP-UX

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [kerh-noi])

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
The following error is reported a number of times in the Unix shell from which
the `mozilla' command is run, when starting Mozilla (5 times), opening a window
(3 times) or clicking on a form button (once):

**************************************************
nsNativeComponentLoader: GetFactory(<my path>/mozilla/components/libpipnss.sl)
Load FAILED with error: Exec format error
**************************************************

This does not prevent Mozilla from fetching over HTTP and rendering HTML pages
(all examples in the "Debug/Verification" submenu are handled).

For information:
 - the used build is
http://ftp.mozilla.org/pub/mozilla/releases/mozilla0.9.6/mozilla-hppa2.0-hp-hpux10.20-0.9.6-1.2.10.tar.gz
 - the same error was observed with Mozilla 0.9.5 (using build
http://ftp.mozilla.org/pub/mozilla/releases/mozilla0.9.5/mozilla-hppa2.0-hp-hpux10.20-0.9.5-1.2.10.tar.gz)
 - used libraries are:
   gettext-0.10.38
   glib-1.2.10
   gtk+-1.2.10

Comment 1

17 years ago
Product => PSM.
Assignee: wtc → ssaux
Component: Libraries → Client Library
Product: NSS → PSM
QA Contact: sonja.mirtitsch → junruh

Comment 2

17 years ago
No such messages on Linux trunk build ID 2001112803 (PC).
This is probably an hpux issue, and the PSM team doesn't have hpux boxes.


Priority: -- → P4
Target Milestone: --- → Future
Version: unspecified → 2.2

Comment 3

17 years ago
reassigning this bug... to ME
Assignee: ssaux → jdunn

Comment 4

17 years ago
can you try my 0.9.7 build.  Someone else reported a similar issue
and so I built 0.9.7 differently
http://ftp.mozilla.org/pub/mozilla/releases/mozilla0.9.7/mozilla-hppa2.0-hp-hpux10.20-0.9.7-1.2.10.tar.gz

thanks & please let me know
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 5

17 years ago
Created attachment 64194 [details] [diff] [review]
aCC security diff to correct to 1.1 architecture

Here are the diffs I used to correct the build issue with PSM on hp-ux10.20.
However, because of the mutiple-usage of psm (server & client) I can't
check these in... I just have to remember to apply them to every build
(Reporter)

Comment 6

17 years ago
i have tried the 0.9.7 build indicated in additional comment #4 ; unfortunately
it does not solve the problem. When launching <my path>/mozilla/mozilla:

**************************************************
nsNativeComponentLoader: GetFactory(<my path>/mozilla/components/libgfx_gtk.sl)
Load FAILED with error: No such file or directory
**************************************************

is signaled once, then:

**************************************************
nsNativeComponentLoader: GetFactory(<my path>/mozilla/components/libgfx_gtk.sl)
Load FAILED with error: Not enough space
**************************************************

is signaled 4 times, then:

<my path>/mozilla/run-mozilla.sh[36]: 2603 Bus error(coredump)


Oh no!  <my path>/mozilla/mozilla-bin just dumped a core file.

Do you want to debug this ? You need a lot of memory for this, so watch out ?
[y/n] y
ddd not found.
<gdb path>/gdb <my path>/mozilla/mozilla-bin core
GNU gdb 5.0
<gdb copyright and no warranty>
This GDB was configured as "hppa1.1-hp-hpux10.20"...
(no debugging symbols found)...
Core was generated by `mozilla-bin'.
Program terminated with signal 10, Bus error.
Unable to find __dld_flags symbol in object file.

#0  0xc2d2ac00 in ?? ()
(gdb) bt
#0  0xc2d2ac00 in ?? ()
#1  0xc2faeabc in ?? ()
(gdb) quit

For information:
- <my path>/mozilla/components/libgfx_gtk.sl does exist
- the core file size is 6400436 bytes
- 0.9.6 still works in the same way (no core dump) so i don't think the bus
error comes from a local library

Would you have an unstripped build so that gdb could try and locate this better?

Comment 7

17 years ago
are you sure you have gtk installed?
and that it is connect's 1.2.10 version?

usually when the "blah" gtk libraries don't
load it isn't finding one of those files.
/opt/gtk+/bin/gtk-config --version
should say 1.2.10

Comment 9

17 years ago
2 things
first remove components.reg and rerun (this probably won't help
but want to make sure)

second can you try the following
set NSPR_LOG_MODULE=all:5
(export NSPR_LOG_MODULES=all:5)
then run mozilla
this will dump out a TON of junk...
but it might give us some info on why those libs aren't loading.
All I need to see are the last 10 lines or so of the output...
(Reporter)

Comment 10

17 years ago
1. launching mozilla 0.9.7 after removing <my path>/mozilla/component.reg:

**************************************************
nsNativeComponentLoader: SelfRegisterDll(<my
path>/mozilla/components/libgfx_gtk.sl) Load FAILED with error: No such file or
directory
**************************************************
**************************************************
nsNativeComponentLoader: SelfRegisterDll(<my
path>/mozilla/components/libgfxxprint.sl) Load FAILED with error: No such file
or directory
**************************************************
*** Registering -venkman handler.
*** Registering -chat handler.
*** Registering x-application-irc handler.
*** Registering irc protocol handler.
*** Registering smime account manager extension.
<my path>/mozilla/run-mozilla.sh[36]: 1989 Bus error(coredump)


Oh no!  <my path>/mozilla/mozilla-bin just dumped a core file.

Do you want to debug this ? You need a lot of memory for this, so watch out ?
[y/n] ddd not found.
<gdb path>/gdb <my path>/mozilla/mozilla-bin core
GNU gdb 5.0
<gdb copyright and no warranty>
This GDB was configured as "hppa1.1-hp-hpux10.20"...
(no debugging symbols found)...
Core was generated by `mozilla-bin'.
Program terminated with signal 10, Bus error.
Unable to find __dld_flags symbol in object file.

#0  0xc2e39c00 in ?? ()
(gdb) bt
#0  0xc2e39c00 in ?? ()
#1  0xc30bdabc in ?? ()
(gdb) quit


2. snipped output from launching mozilla 0.9.7 after removing <my
path>/mozilla/component.reg and "export NSPR_LOG_MODULES=all:5":

0[40009200]: Loaded library a.out (init)
<snip>
0[40009200]: nsNativeComponentLoader: Autoregistration Passed for "<my
path>/mozilla/components/libgfxps.sl".
0[40009200]: nsNativeComponentLoader: SelfRegisterDll(<my
path>/mozilla/components/libgfx_gtk.sl) Load FAILED with error:No such file or
directory
**************************************************
nsNativeComponentLoader: SelfRegisterDll(<my
path>/mozilla/components/libgfx_gtk.sl) Load FAILED with error: No such file or
directory
**************************************************
0[40009200]: nsNativeComponentLoader: Autoregistration FAILED for "<my
path>/mozilla/components/libgfx_gtk.sl". Skipping...
0[40009200]: nsNativeComponentLoader: SelfRegisterDll(<my
path>/mozilla/components/libgfxxprint.sl) Load FAILED with error:No such file or
directory
**************************************************
nsNativeComponentLoader: SelfRegisterDll(<my
path>/mozilla/components/libgfxxprint.sl) Load FAILED with error: No such file
or directory
**************************************************
0[40009200]: nsNativeComponentLoader: Autoregistration FAILED for "<my
path>/mozilla/components/libgfxxprint.sl". Skipping...
0[40009200]: Loaded library <my path>/mozilla/components/libgfx2.sl (load lib)
0[40009200]: nsNativeComponentLoader: Loaded "<my
path>/mozilla/components/libgfx2.sl".
0[40009200]: nsNativeComponentLoader: Autoregistration Passed for "<my
path>/mozilla/components/libgfx2.sl".
<snip>
0[40009200]: read -> 370
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for rel:librdf.sl
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgkcontent.sl
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgkcontent.sl
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgkcontent.sl
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgkcontent.sl
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgkcontent.sl
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgkcontent.sl
0[40009200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgklayout.sl
<my path>/mozilla/run-mozilla.sh[36]: 28001 Bus error(coredump)
<snip>

Comment 11

17 years ago
i forgot about this... with the intro of xprint you need -lXp
I guess I should remove the -lXp dependency by building with
--disable-xprint.

Here is the background info that someone found.
................................................
For your information: I did find out what the problem was:
there are two shared libraries (components/libgfx_gtk.sl and
components/libgfxxprint.sl) that depend on a shared library called
/usr/lib/libXp.1.
This shared library is not installed on all of my systems and it seems,
that it comes as part of
  TechPrintSvcDK/TPS-SHLIBS
title "Technical Print Service Development Shared Libraries"
description "Vendor Name                             Hewlett-Packard Company

Product Name                            TPS
Fileset Name                            TPS-SHLIBS

The TPS-SHLIBS fileset contains shared libraries for the Technical Print
Service.

According to my investigations it is only available on systems with
Softbench being installed. As far as I could find out, it was only added
as a system default with HP-UX 10.30.
Status: NEW → ASSIGNED

Comment 12

16 years ago
So with the latest 10.20  builds 1.0rc1 (or even 0.9.9)
are you still having problems???
(Reporter)

Comment 13

16 years ago
In order to test this again i have installed Mozilla 1.0RC1 from
http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.0rc1/mozilla-hppa2.0-hp-hpux10.20-1.0rc1.tar.gz

When i launch <my path>/mozilla/mozilla there are no error messages, but i get a
core dump.

gdb indicates:
Core was generated by `mozilla-bin'.
Program terminated with signal 11, Segmentation fault.
Unable to find __dld_flags symbol in object file.

#0  0x2e2e2e2c in ?? ()
(gdb) bt
#0  0x2e2e2e2c in ?? ()
#1  0xc230ad34 in ?? ()
(gdb) 


I have tried the same tests as in comment #10:

1. after removing <my path>/mozilla/component.reg:
*** Registering -venkman handler.
*** Registering -chat handler.
*** Registering x-application-irc handler.
*** Registering irc protocol handler.
*** Registering mdn account manager extension.
*** Registering smime account manager extension.
<my path>/mozilla/run-mozilla.sh[30]: 3023 Memory fault(coredump)

2. after removing <my path>/mozilla/component.reg and "export
NSPR_LOG_MODULES=all:5" (snipped):
0[4003d200]: Loaded library a.out (init)
<snip>
0[4003d200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libnecko.sl
0[4003d200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libnecko.sl
0[4003d200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libwidget_gtk.sl
0[4003d200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgfx_gtk.sl
0[4003d200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libwidget_gtk.sl
0[4003d200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgfx_gtk.sl
0[4003d200]: nsNativeComponentLoader: Factory creation succeeded for
rel:libgfx_gtk.sl
<my path>/mozilla/run-mozilla.sh[30]: 2216 Memory fault(coredump)

Comment 14

16 years ago
Jim Dunn wrote:
> i forgot about this... with the intro of xprint you need -lXp
> I guess I should remove the -lXp dependency by building with
> --disable-xprint.

Does that mean you want toi disable the Xprint module for release builds (we're
already having lots of complains that blizzard turned it "off" for his RedHat
RPM builds) ?

Updated

14 years ago
Component: Security: UI → Security: UI
Product: PSM → Core

Updated

13 years ago
Whiteboard: [kerh-noi]
Assignee: jdunn → nobody
Status: ASSIGNED → NEW
Component: Security: UI → Build Config
QA Contact: junruh → build-config

Updated

10 years ago
Version: psm2.2 → 1.0 Branch

Comment 15

10 years ago
is this bug still a problem?
(Reporter)

Comment 16

10 years ago
Not for me (submitter), as we are not using HP-UX 10.20 any more, and this bug has not occurred on other platforms that I have used.
I'm going to close this since it is old and related to a tier-3 platform (HP-UX).
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → INCOMPLETE

Updated

4 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.