Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filename and line number to backtrace #3343

Merged
merged 65 commits into from
Aug 25, 2023

Commits on Feb 16, 2023

  1. Configuration menu
    Copy the full SHA
    7b19254 View commit details
    Browse the repository at this point in the history
  2. WIP: generate dwarf metadata

    keynmol committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    72b9575 View commit details
    Browse the repository at this point in the history
  3. Try anything at this point

    keynmol committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    270d0e8 View commit details
    Browse the repository at this point in the history
  4. Quick, commit while it works

    keynmol committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    33695fd View commit details
    Browse the repository at this point in the history
  5. Formatting

    keynmol committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    648e4a0 View commit details
    Browse the repository at this point in the history
  6. Handle unit return types

    keynmol committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    147bfd1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9fd664e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    654835e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8655222 View commit details
    Browse the repository at this point in the history
  10. Fix compilation errors

    keynmol committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    c843ba0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    702eae9 View commit details
    Browse the repository at this point in the history
  12. WIP

    keynmol committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    d14c74d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8d67657 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. Configuration menu
    Copy the full SHA
    483aeaa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e884a1 View commit details
    Browse the repository at this point in the history
  3. chore: run clangfmt

    keynmol committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    ee966f6 View commit details
    Browse the repository at this point in the history
  4. chore: scalafmt

    keynmol committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    f01161b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    543ef98 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8aeb2c6 View commit details
    Browse the repository at this point in the history
  7. Try to satisfy JVM 8

    keynmol committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    deb5e03 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9b2c0dc View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b4482ab View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Configuration menu
    Copy the full SHA
    d785864 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Code review comments

    keynmol committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    f55c49b View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. Configuration menu
    Copy the full SHA
    c4dc4b3 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

  1. Configuration menu
    Copy the full SHA
    bd92200 View commit details
    Browse the repository at this point in the history
  2. Ensure dereferenceable_or_null is always using i64 type as an argum…

    …ent (fixes linux-x86 builds)
    WojciechMazur committed May 18, 2023
    Configuration menu
    Copy the full SHA
    4cf6888 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. Copy macho-elf-coff-parser to scala-native

    https://github.com/indoorvivants/macho-elf-coff-parser
    
    Co-authored-by: Anton Sviridov <keynmol@gmail.com>
    tanishiking and keynmol committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    43f535d View commit details
    Browse the repository at this point in the history
  2. Make dwarf parser compile

    tanishiking committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    ac88a4c View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. WIP

    tanishiking committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    4cedf1a View commit details
    Browse the repository at this point in the history
  2. Test with no-pie

    java.lang.Error: test
            at java.lang.StackTrace$.$anonfun$currentStackTrace$1(Throwables.scala:54)
            at java.lang.StackTrace$$$Lambda$3.apply(Throwables.scala:54)
            at scala.scalanative.unsafe.Zone$.apply(Zone.scala:27)
            at java.lang.StackTrace$.currentStackTrace(Throwables.scala:50)
            at java.lang.Throwable.fillInStackTrace(Throwables.scala:125)
            at Test$.minus(Test.scala:9)
            at Test$.main(Test.scala:1)
            at Test.main(Test.scala:1)
            at <none>.main(Unknown Source)
            at <none>.start(Unknown Source)
    tanishiking committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    7130e59 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. Configuration menu
    Copy the full SHA
    2a91827 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. Read separate dSYM file

    tanishiking committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4fba5cc View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Configuration menu
    Copy the full SHA
    22d3cf8 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. binary search

    tanishiking committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    6bb042e View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    6b03563 View commit details
    Browse the repository at this point in the history
  2. Seekable buffer

    tanishiking committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    ba8b21b View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Configuration menu
    Copy the full SHA
    0a690c6 View commit details
    Browse the repository at this point in the history
  2. Clean up

    tanishiking committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    f31e196 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. scalafmt

    tanishiking committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    79b4589 View commit details
    Browse the repository at this point in the history
  2. Add some documentation

    tanishiking committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    dc4ab4b View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Configuration menu
    Copy the full SHA
    edd3034 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. Fix: do not stack overflow when exception occurs in Backtrace.decodeF…

    …ileline
    
    When analyzing the stack trace, if the entry "currentStackTrace" appears more than once, it indicates that a Throwable object
    was generated within the same "currentStackTrace" method, causing recursive calls. This recursive behavior can lead to an
    infinite loop, ultimately resulting in a stack overflow exception.
    
    To prevent excessive recursion, it's preferable to minimize multiple consecutive calls to the "currentStackTrace" method.
    
    The "currentStackTrace" process is straightforward and typically doesn't trigger exceptions.
    On the other hand, the "BackTrace.decodeFileline" is intricate, and if an exception thrown, it's likely to originate from that method.
    
    Consequently, to mitigate the risk of cascading recursive exceptions,
    skip executing "BackTrace.decodeFileline" if "currentStackTrace" is already being invoked recursively.
    tanishiking committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    0e2c67a View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Retrieve image offset of myself using dyld in OSX

    Previously we used `vmmap` and grep the stdout of the vmmap process.
    It worked fine, but it has a few problems:
    
    - vmmap is slow
    - Code is fragile to change in vmmap output
    - vmmap sometimes fail if resource are busy
    
    https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/dyld.3.html
    https://stackoverflow.com/questions/10301542/getting-process-base-address-in-mac-osx
    tanishiking committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    5892f90 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3bcd8ce View commit details
    Browse the repository at this point in the history
  3. Fix CI

    tanishiking committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    ad42fba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1b85b08 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Configuration menu
    Copy the full SHA
    8b623af View commit details
    Browse the repository at this point in the history
  2. Run dsymutil only on Mac

    tanishiking committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    04d7f6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    38cb60e View commit details
    Browse the repository at this point in the history
  4. Remove unused getpid

    tanishiking committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    69ab6a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. Configuration menu
    Copy the full SHA
    35eb304 View commit details
    Browse the repository at this point in the history
  2. Use try-catch block instead of util.Try

    Since it is really low level part of the code, and it might
    be better to use `try-catch`?
    
    Also, skip decoding if the elem already has an filename
    tanishiking committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    8223e68 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a08556b View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. try noinline

    tanishiking committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    ebdf020 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. Configuration menu
    Copy the full SHA
    11d3e46 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    82335e8 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. Configuration menu
    Copy the full SHA
    7d2e3eb View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. Configuration menu
    Copy the full SHA
    dda0271 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Configuration menu
    Copy the full SHA
    51527c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b32df9 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. Configuration menu
    Copy the full SHA
    aa87156 View commit details
    Browse the repository at this point in the history
  2. Remove unused method

    tanishiking committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    7c41c00 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    042abed View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c5ccc3e View commit details
    Browse the repository at this point in the history