Commit Graph
89 Commits
Author SHA1 Message Date
Nicholas Nethercote 49b2a5ed33 Bug 1331310 - Remove unbufferedLineConverter in fix_linux_stacks.py. r=glandium.
subprocess.Popen is much simpler. Also, addr2line's stderr is now ignored,
which avoids some intermittent problems with DMD output.
2017-01-18 13:57:39 +11:00
Ralph Giles 8828087183 Bug 1275630 - Update breakpad documentation links. r=ted
These locations have changed since the end of Google Code.

MozReview-Commit-ID: FSGhFBDaTCq
2016-05-25 10:01:52 -07:00
Ralph Giles b01f7d3c80 Bug 1270091 - Handle missing function names. r=dminor
If the symbols file doesn't give a function name, substitute
'unnamed_function'. A more complete fix would be to catch
all ValueError exceptions and continue sensibly, but this
addresses the immediate issue with the output from `rustc -g`.

MozReview-Commit-ID: 666ruvLlJ5t
2016-05-10 16:15:17 -07:00
Henry Chang 708c050d9c Bug 1270002 - Use sliced array to ignore trailing tokens. r=mccr8 2016-05-04 00:17:00 -04:00
Chris Manchester f19ac6c12a Bug 1216681 - Add a windows version of fileid to extract a guid from windows binaries. r=jimm,ted
This patch introduces a small utility program to extract a guid from a shared library
or executable on windows to identify the correct symbol file to read in fix_stack_using_bpsyms.py.
In order for this to work correctly on windows, the library name provided by
MozDescribeCodeAddress needs to be a full path, so the LoadedImageName field
from the IMAGEHLP_MODULE64 structure is used here instead of the ModuleName
field.

MozReview-Commit-ID: 8zkfLWjKVs2
2015-10-29 13:25:03 -07:00
Phil Ringnalda 7bbec0cdde Back out ff446e81eaf5 (bug 1216681) for Linux PGO bustage
CLOSED TREE
2016-02-11 20:27:36 -08:00
Chris Manchester 00c5024ff2 Bug 1216681 - Add a windows version of fileid to extract a guid from windows binaries. r=jimm,ted
This patch introduces a small utility program to extract a guid from a shared library
or executable on windows to identify the correct symbol file to read in fix_stack_using_bpsyms.py.
In order for this to work correctly on windows, the library name provided by
MozDescribeCodeAddress needs to be a full path, so the LoadedImageName field
from the IMAGEHLP_MODULE64 structure is used here instead of the ModuleName
field.
2015-10-29 13:25:03 -07:00
Chris Manchester 55ed206720 Bug 1216681 - Add a fileid utility to extract the breakpad GUID from object files for identification in fix_stack_using_bpsyms. r=ted
fix_stack_using_bpsyms.py locates a .sym file based on file name only, not uuid or full path,
which causes a failure if a duplicate leaf file name is introduced. This patch introduces a
small utility program on mac and linux to extract a breakpad guid from a shared library or
executable to identify the correct symbol file when this ambiguity occurs. A subsequent commit
implements this for windows.
2015-10-21 16:37:42 -07:00
Aidin Gharibnavaz 758f1f5422 Bug 1190466 - tools/rb/find-leakers.pl re-written in Python r=mccr8 2015-08-20 14:18:20 -07:00
Nicholas Nethercote f4f8d38546 Bug 1089441 - Update the refcount-balancer docs link. r=dbaron.
DONTBUILD because NPOTB.
2014-11-13 14:02:21 -08:00
Nicholas Nethercote 9b106da562 Bug 1089441 - Move bloattable.pl and bloatdiff.pl into tools/bloatview/. r=dbaron.
DONTBUILD because NPOTB.
2014-11-13 14:02:11 -08:00
L. David Baron 36f5fdb632 Bug 914253 patch 10 - Two more comment tweaks. No review.
DONTBUILD
2014-10-15 14:50:58 -07:00
Nicholas Nethercote ca7b761d18 Bug 1062709 (part 2, attempt 2) - Clean up stack printing and fixing. r=dbaron. 2014-09-01 22:56:05 -07:00
Ed Morley e379fd79fc Backed out changeset 7a1b7d7eba12 (bug 1062709) 2014-10-03 15:05:26 +01:00
Nicholas Nethercote 0d0952d622 Bug 1062709 (part 2) - Clean up stack printing and fixing. r=dbaron. 2014-09-01 22:56:05 -07:00
Nicholas Nethercote 13091a5eb7 Bug 1062689 - Run local mochitest and reftest output through fix_macosx_stack.py on Mac. r=ted. 2014-09-04 22:19:42 -07:00
Nicholas Nethercote f30e108c5e Bug 1050601 - Remove fix-linux-stack.pl. r=ted. 2014-09-03 09:24:38 -07:00
L. David Baron 55a9ac0d86 Bug 914253 patch 10 - Revert inadvertent change from previous commit. No review. DONTBUILD 2014-08-06 19:23:54 -07:00
L. David Baron 224807e91d Bug 914253 patch 9 - Implement CRC checking for .gnu_debuglink section. No review.
This is needed to avoid regressions relative to the perl version because
the perl version failed, due to a missing /, to properly examine two of
the paths, one of which often yields the same filename as the original
file (but whose CRC will fail).

I've tested that this CRC calculation succeeds in cases where it should
succeed.

The observed CRC check failures (so far) on my Ubuntu 14.04 system are
the following links:
  /lib/x86_64-linux-gnu/libc.so.6 -> /lib/x86_64-linux-gnu/libc-2.19.so
  /lib/x86_64-linux-gnu/libpthread.so.0 -> /lib/x86_64-linux-gnu/libpthread-2.19.so
  /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 -> /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0.2400.23
  /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 -> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.23
which succeed on a later possibility in /usr/lib/debug/.  But optimizing
to check f != file before checking the CRC wouldn't help because of the
naming differences due to symlinks, so I didn't bother.  If we ever want
to optimize away the time doing the CRC checks for these failures, we
could do so by checking if the files are the same path *after* resolving
symlinks.

DONTBUILD
2014-08-06 19:21:44 -07:00
L. David Baron 85cae8fd5e Bug 914253 patch 8 - Ignore useless results from addr2line and keep what we had before, like fix-linux-stack.pl does. No review.
DONTBUILD
2014-08-06 19:21:43 -07:00
L. David Baron 31f139b455 Bug 914253 patch 7 - Remove some debugging code and the remnants of the old address adjustment code. No review.
DONTBUILD
2014-08-06 19:21:43 -07:00
L. David Baron 8f4bac4625 Bug 914253 patch 6 - Linux stacks are lowercase hexidecimal (although this was temporarily not true due to bug 939610, which is probably when mccr8 started fix_linux_stack.py). No review. 2014-08-06 15:52:49 -07:00
L. David Baron a469e9fd63 Bug 914253 patch 5 - Implement caching of addr2line results, like bug 812070 did for fix-linux-stack.pl. No review. 2014-08-06 15:52:49 -07:00
L. David Baron b7b9ca6f7f Bug 914253 patch 4 - Implement address adjustment for fix_linux_stack.py. No review. 2014-08-06 15:52:48 -07:00
L. David Baron fdce96913d Bug 914253 patch 3 - Implement separate debug info for fix_linux_stack.py, including the addition of support for .note.gnu.build-id sections that fix-linux-stack.pl did not support. No review. 2014-08-06 15:52:48 -07:00
L. David Baron 484085004b Bug 914253 patch 2 - Pull opening comment from fix-linux-stack.pl. No review. 2014-08-06 15:52:48 -07:00
Andrew McCreight 2231e505ed Bug 914253 patch 1 - Initial version of fix_linux_stack.py, based on slightly old version of fix_macosx_stack.py. No review. 2014-08-06 15:52:48 -07:00
L. David Baron dba3efaa58 Bug 976350 patch 2: Rename nsTraceRefcntImpl to nsTraceRefcnt. r=bsmedberg
Now that bug 975295 removed the obsolete wrapper class, we can rename
nsTraceRefcntImpl back to its correct pre-XPCOM-glue name,
nsTraceRefcnt.

The best part is that the one place where indentation should have needed
fixing, nsTraceRefcnt::DemangleSymbol, never had its indentation fixed
for the previous renaming.
2014-02-26 13:36:36 -08:00
L. David Baron ceb49d9a79 Back out changeset 72c0c955cf53 (no bug) now that bug 939610 is fixed. 2014-02-24 15:27:53 -08:00
L. David Baron 4900d6180a Make fix-linux-stack handle addresses with lowercase hexidecimal, since that seems to be the thing these days. No bug.
(mrbkap, I, and ehoogeveen have all seen lowercase lately.)
2014-02-17 20:07:45 -08:00
Andrew McCreight 47e4a7ba4a Bug 967215 - Fix fix_macosx_stack.py. r=njn DONTBUILD 2014-02-06 11:31:49 -08:00
Andrew McCreight 9d385c5f52 Bug 550335 - fix_macosx_stack for 64-bit. r=ted 2012-05-25 09:07:24 -07:00
Ted Mielczarek 302b8612b2 bug 751673 - fix Windows assertion stacks. r=dbaron 2013-03-11 14:21:53 -04:00
Nicholas Nethercote ff94f66852 Bug 819833 (part 3) - Fix fix_macosx_stack.py. 2012-12-10 21:24:55 -08:00
Nicholas Nethercote 1dfcd9f59a Bug 819833 (part 2) - Remove fix-macosx-stack.pl because it's unused. r=ted. 2012-12-10 21:19:18 -08:00
Nicholas Nethercote 4d59bf1854 Bug 812070 (part 2) - Speed up fix-linux-stack.pl by adding a cache for previously queried addresses. 2012-11-15 14:38:24 -08:00
Nicholas Nethercote d3d086c8a7 Bug 812070 (part 1) - Merge %pipes and %address_adjustment in fix-linux-stack.pl. 2012-11-15 14:38:21 -08:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Karl Tomlinson 73cec3baf7 b=647469 continue after crashes in addr2line r=dbaron 2011-05-02 08:33:16 +12:00
Benjamin Smedberg 64a36a80cf Revert the accidental change to make-tree.pl from revision 116abfbc71e5 2010-07-15 10:40:17 -04:00
Benjamin Smedberg d1626dc275 Merge mozilla-central to the bug 568691 branch. 2010-06-30 14:23:23 -04:00
Benjamin Smedberg ac4e827647 Merge mozilla-central into the branch for bug 568691, including fixup of the new jetpack binary module. 2010-06-25 19:41:09 -04:00
Benjamin Smedberg 015bf6116f Free the component-location arrays at shutdown. 2010-06-25 17:27:10 -04:00
Karl Tomlinson 2ce135a0bd temporarily dump some window state on mochitest time out to debug bug 569237 2010-06-23 11:14:24 +12:00
Jesse Ruderman 0a3b993883 Bug 570287 - New stack fixer that uses breakpad symbol files. r=ted 2010-06-25 14:47:19 -07:00
Jesse Ruderman adf7a73529 Revert d39bed41e215, because pty doesn't do the right thing when the process exits, creating a race condition 2010-06-08 20:55:43 -07:00
Karl Tomlinson 84c86436a0 revert b8ddc4e35f65 to remove temporary logging 2010-06-24 15:59:10 +12:00
Jesse Ruderman 8c7b3a3399 Try to fix 10.6 debug perma-orange that results from fix_macosx_stack.py not dealing with atos's complaint about lack of symbols 2010-04-20 17:19:20 -07:00
Jesse Ruderman bc934d1214 Fix bug 550388: avoid regexp perf issues in the stack fixer. r=dbaron 2010-03-20 23:08:47 -07:00
Jesse Ruderman 3462fd0c5d Bug 539516 - Switch automation.py to use the new python stack fixer. r=ted 2010-02-21 13:03:20 -08:00