Intermittent "java.lang.Exception: Error loading nss libraries" for all test runs on a build

RESOLVED WORKSFORME

Status

()

defect
RESOLVED WORKSFORME
7 years ago
7 years ago

People

(Reporter: emorley, Unassigned)

Tracking

({intermittent-failure})

Trunk
ARM
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
For all test runs on https://tbpl.mozilla.org/?tree=Mozilla-Inbound&onlyunstarred=1&rev=0df827058bf5 , the tests failed and the following was present in the log:

{
E/GeckoLibLoad( 1671): Load sqlite start
D/GeckoProfile( 1671): Created new profile dir at /data/data/org.mozilla.fennec/files/mozilla/yjo4bp64.default
I/GeckoProfile( 1671): WESJ - SET DEFAULT
I/global  ( 1671): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.
I/global  ( 1671): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libmozsqlite3.so: Warning: relocation to NULL @0x00054d18
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libmozsqlite3.so: Warning: relocation to NULL @0x00054c14 for symbol "__cxa_begin_cleanup"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libmozsqlite3.so: Warning: relocation to NULL @0x00054c80 for symbol "__cxa_type_match"
E/GeckoLibLoad( 1671): Load sqlite done
E/GeckoLibLoad( 1671): Load nss start
I/GeckoToolbar( 1671): zerdatime 202638 - Throbber start
I/GeckoApp( 1671): Checking profile migration in: /data/data/org.mozilla.fennec/files/mozilla/yjo4bp64.default
I/GeckoAxis( 1671): Prefs: 0.85,0.97,10.0,0.012,0.04,0.3,0.5
I/ProfileMigrator( 1671): Opening path: /data/data/org.mozilla.fennec/files/mozilla/yjo4bp64.default/places.sqlite
I/ProfileMigrator( 1671): No database
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020f50
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020d04 for symbol "__cxa_begin_cleanup"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020e1c for symbol "__cxa_type_match"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Error: relocation to NULL @0x00020e94 for symbol "__wrap_PR_GetEnv"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020f50
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020d04 for symbol "__cxa_begin_cleanup"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020e1c for symbol "__cxa_type_match"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Error: relocation to NULL @0x00020e94 for symbol "__wrap_PR_GetEnv"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020f50
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020d04 for symbol "__cxa_begin_cleanup"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Warning: relocation to NULL @0x00020e1c for symbol "__cxa_type_match"
E/GeckoLinker( 1671): /data/app/org.mozilla.fennec-1.apk!/libnspr4.so: Error: relocation to NULL @0x00020e94 for symbol "__wrap_PR_GetEnv"
E/GeckoLibLoad( 1671): Couldn't get a handle to libnss3!
E/GeckoLibLoad( 1671): Throw
E/GeckoLibLoad( 1671): Load nss done
E/GeckoAppShell( 1671): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 10 ("Gecko")
E/GeckoAppShell( 1671): java.lang.Exception: Error loading nss libraries
E/GeckoAppShell( 1671): 	at org.mozilla.gecko.GeckoAppShell.loadNSSLibsNative(Native Method)
E/GeckoAppShell( 1671): 	at org.mozilla.gecko.GeckoAppShell.loadNSSLibs(GeckoAppShell.java:419)
E/GeckoAppShell( 1671): 	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:64)
}

The run before was green & the changeset on that run was not related. Later runs (once coalescing stopped being its usual PITA) were green also.

Bad build?

Build log:
https://tbpl.mozilla.org/php/getParsedLog.php?id=13636410&tree=Mozilla-Inbound
(Reporter)

Comment 1

7 years ago
> The run before was green & the changeset on that run was not related. 

s/that run/the run in question with all the failures/
> Error: relocation to NULL @0x00020e94 for symbol "__wrap_PR_GetEnv"

This makes absolutely no sense. I see nowhere where we ask for PR_GetEnv to be wrapped. Did something land that did it, and was backed out afterwards?
(Reporter)

Comment 3

7 years ago
Nope, went green without a backout.
(In reply to Ed Morley [:edmorley] from comment #3)
> Nope, went green without a backout.

I mean, was something else changing wrapped functions backed-out earlier, and the build for that particular changeset picked the intermediate (fucked) tree. Would be good to look at the history of changesets the build slave has been building in the same objdir since the last clobber.
That was bug 773414 being landed/backed-out that made this.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
(Reporter)

Comment 6

7 years ago
Ah, thank you for tracking this down :-)
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.