* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
@ 2010-10-14 3:39 ` asutherland at asutherland dot org
2010-10-14 3:48 ` asutherland at asutherland dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: asutherland at asutherland dot org @ 2010-10-14 3:39 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
--- Comment #1 from Andrew Sutherland <asutherland at asutherland dot org> 2010-10-14 03:38:51 UTC ---
Created attachment 5058
--> http://sourceware.org/bugzilla/attachment.cgi?id=5058
the systemtap script passed to stap (post-transformation by my preprocessing
logic)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
2010-10-14 3:39 ` [Bug translator/12121] " asutherland at asutherland dot org
@ 2010-10-14 3:48 ` asutherland at asutherland dot org
2010-10-14 3:53 ` asutherland at asutherland dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: asutherland at asutherland dot org @ 2010-10-14 3:48 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
--- Comment #2 from Andrew Sutherland <asutherland at asutherland dot org> 2010-10-14 03:48:23 UTC ---
Oh, and if you would like to reproduce using your own build, Thunderbird build
instructions can be found here:
https://developer.mozilla.org/en/Simple_Thunderbird_build
I am building with the following .mozconfig file in use:
ac_add_options --enable-application=mail
ac_add_options --enable-debug
ac_add_options --enable-debugger-info-modules=yes
ac_add_options --enable-extensions=default,inspector
ac_add_options --disable-optimize
ac_add_options --enable-chrome-format=symlink
# BAD BAD BAD, but I don't like crashes :(
ac_add_options --disable-accessibility
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-thunderbird-debug
mk_add_options MOZ_MAKE_FLAGS="-s -j6"
If you want to recreate the full experience:
hg clone http://hg.mozilla.org/users/bugmail_asutherland.org/tb-test-help/
The log file I previously attached already tells you what the actual stap run
arguments were. Unfortunately at least the -x part is somewhat hard to create
because my wrapper script does its own variation on '-c' by forking a thread.
(I think staprun was destroying my environment so xpcshell failed to run and
that was my workaround... although I think there were other pipe benefits to
that strategy.)
Once a build completes, I...
a) change to an output directory where I can run my unit test
cd obj-thunderbird-debug/mail/base/test
b) run my unit test with my test framework thing:
make SOLO_FILE=test_viewWrapper_virtualFolder.js EXTRA_TEST_ARGS="--debugger
/home/visbrero/rev_control/hg/tb-test-help/systemtap/chewchewwoowoo.py
--debugger-args
'/home/visbrero/rev_control/hg/tb-test-help/systemtap/mozperfish/mozperfish.stp
--'" check-one
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
2010-10-14 3:39 ` [Bug translator/12121] " asutherland at asutherland dot org
2010-10-14 3:48 ` asutherland at asutherland dot org
@ 2010-10-14 3:53 ` asutherland at asutherland dot org
2010-10-14 12:13 ` fche at redhat dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: asutherland at asutherland dot org @ 2010-10-14 3:53 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
--- Comment #3 from Andrew Sutherland <asutherland at asutherland dot org> 2010-10-14 03:53:14 UTC ---
*** Bug 12120 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (2 preceding siblings ...)
2010-10-14 3:53 ` asutherland at asutherland dot org
@ 2010-10-14 12:13 ` fche at redhat dot com
2010-10-14 12:22 ` asutherland at asutherland dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: fche at redhat dot com @ 2010-10-14 12:13 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fche at redhat dot com
--- Comment #4 from Frank Ch. Eigler <fche at redhat dot com> 2010-10-14 12:12:27 UTC ---
Andrew, do you happen to have corresponding output from another run that does
resolve properly?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (3 preceding siblings ...)
2010-10-14 12:13 ` fche at redhat dot com
@ 2010-10-14 12:22 ` asutherland at asutherland dot org
2010-10-14 12:23 ` asutherland at asutherland dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: asutherland at asutherland dot org @ 2010-10-14 12:22 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
Andrew Sutherland <asutherland at asutherland dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5057|0 |1
is obsolete| |
--- Comment #5 from Andrew Sutherland <asutherland at asutherland dot org> 2010-10-14 12:22:14 UTC ---
Created attachment 5060
--> http://sourceware.org/bugzilla/attachment.cgi?id=5060
good run's stap -v -v output (note: now with latencytap included)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (4 preceding siblings ...)
2010-10-14 12:22 ` asutherland at asutherland dot org
@ 2010-10-14 12:23 ` asutherland at asutherland dot org
2010-10-14 12:24 ` asutherland at asutherland dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: asutherland at asutherland dot org @ 2010-10-14 12:23 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
--- Comment #6 from Andrew Sutherland <asutherland at asutherland dot org> 2010-10-14 12:22:51 UTC ---
Created attachment 5061
--> http://sourceware.org/bugzilla/attachment.cgi?id=5061
bad run's stap -v -v output (note: now with latencytap included)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (5 preceding siblings ...)
2010-10-14 12:23 ` asutherland at asutherland dot org
@ 2010-10-14 12:24 ` asutherland at asutherland dot org
2010-10-14 12:25 ` asutherland at asutherland dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: asutherland at asutherland dot org @ 2010-10-14 12:24 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
--- Comment #7 from Andrew Sutherland <asutherland at asutherland dot org> 2010-10-14 12:24:23 UTC ---
Created attachment 5062
--> http://sourceware.org/bugzilla/attachment.cgi?id=5062
systemtap script from runs (note: now with latencytap included)
Sorry if the latencytap kernel probes are cluttering things... I can revert if
needed...
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (6 preceding siblings ...)
2010-10-14 12:24 ` asutherland at asutherland dot org
@ 2010-10-14 12:25 ` asutherland at asutherland dot org
2010-10-14 18:13 ` jistone at redhat dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: asutherland at asutherland dot org @ 2010-10-14 12:25 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
Andrew Sutherland <asutherland at asutherland dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5058|0 |1
is obsolete| |
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (7 preceding siblings ...)
2010-10-14 12:25 ` asutherland at asutherland dot org
@ 2010-10-14 18:13 ` jistone at redhat dot com
2010-10-14 18:49 ` jistone at redhat dot com
2010-10-14 18:51 ` jistone at redhat dot com
10 siblings, 0 replies; 12+ messages in thread
From: jistone at redhat dot com @ 2010-10-14 18:13 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jistone at redhat dot com
--- Comment #8 from Josh Stone <jistone at redhat dot com> 2010-10-14 18:12:59 UTC ---
I managed to reproduce the non-determinism with a much smaller test:
$ cat xulcast.stp
probe begin {
println(@cast(0, "JSContext", @1)->regs)
println(@cast(0, "JSObject", @1)->fslots)
}
$ stap -vvv -p2 xulcast.stp $PWD/libxul.so
The success of this is extremely variable. The only consistency is that the
two @casts always succeed or fail together, never one without the other.
The difference I found with the extra verbosity is in these lines:
literal_stmt_for_pointer: finding value for JSContext(SRCFILE)
literal_stmt_for_pointer: finding value for JSObject(SRCFILE)
The SRCFILE varies from run to run, with only some apparently having good type
information. I still don't know why our choice of SRCFILE would vary, as I
would expect the iteration order to be consistent, but this seems to be the
key.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (8 preceding siblings ...)
2010-10-14 18:13 ` jistone at redhat dot com
@ 2010-10-14 18:49 ` jistone at redhat dot com
2010-10-14 18:51 ` jistone at redhat dot com
10 siblings, 0 replies; 12+ messages in thread
From: jistone at redhat dot com @ 2010-10-14 18:49 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
--- Comment #9 from Josh Stone <jistone at redhat dot com> 2010-10-14 18:49:12 UTC ---
It appears that this libxul.so may have some corruption:
$ dwarflint libxul.so
error: .debug_abbrev: abbr. attribute 0x4657e: invalid name 0x2107.
With bad abbrevs, it may be no surprise that stap/elfutils are behaving
strangely. I'll try to grab some compiler experts to help troubleshoot this
further...
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug translator/12121] Apparent non-determinism in DWARF symbol resolution
2010-10-14 3:37 [Bug translator/12121] New: Apparent non-determinism in DWARF symbol resolution asutherland at asutherland dot org
` (9 preceding siblings ...)
2010-10-14 18:49 ` jistone at redhat dot com
@ 2010-10-14 18:51 ` jistone at redhat dot com
10 siblings, 0 replies; 12+ messages in thread
From: jistone at redhat dot com @ 2010-10-14 18:51 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=12121
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |jistone at redhat dot com
|redhat.com |
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread