Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • decode_stacktrace.sh
Find file BlameHistoryPermalink
  • Bjorn Andersson's avatar
    scripts/decode_stacktrace.sh: strip unexpected CR from lines · 436efd9e
    Bjorn Andersson authored Dec 25, 2023
    When the kernel log is acquired over a serial cable it is not uncommon for
    the log to contain carriage return characters, in addition to the expected
    line feeds.
    
    When this output is feed into decode_stacktrace.sh, handle_line() fails to
    strip the trailing ']' off the module name, which results in find_module()
    not being able to find the referred to kernel module.  This is reported to
    the user as:
    
      WARNING! Modules path isn't set, but is needed to parse this symbol
    
    The solution is to reconfigure the serial port, or to strip the carriage
    returns from the log, but this isn't obvious from the error reported by
    the script.
    
    Instead, make decode_stacktrace.sh more user friendly by stripping the
    trailing carriage return.
    
    Link: https://lkml.kernel.org/r/20231225-decode-stacktrace-cr-v1-1-9f306f38cdde@quicinc.com
    
    
    Signed-off-by: default avatarBjorn Andersson <quic_bjorande@quicinc.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    436efd9e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7