Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to get a bigger stacktrace
Forum Updated to NodeBB v4.3 + New Features

How to get a bigger stacktrace

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 476 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marc_Van_Daele
    wrote on last edited by
    #1

    I get some crash reports from Google Play with only a single line in the backtrace. This is not a 'root' function so the stacktrace should be bigger. Is there a way (different compile options?) to get a bigger stacktrace?
    FWIW, the crashes (currently) occur on two devices, both running Android 9

    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    pid: 0, tid: 0 >>> com.xxx.yyy <<<
    
    backtrace:
      #00  pc 0000000000080bee  /data/app/com.xxx.yyy-ZqFsiKjv33JpJct6CfC72w==/lib/arm/libAppZZZ.so (some_function+232)
    
    kshegunovK 1 Reply Last reply
    0
    • M Marc_Van_Daele

      I get some crash reports from Google Play with only a single line in the backtrace. This is not a 'root' function so the stacktrace should be bigger. Is there a way (different compile options?) to get a bigger stacktrace?
      FWIW, the crashes (currently) occur on two devices, both running Android 9

      signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
      *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
      pid: 0, tid: 0 >>> com.xxx.yyy <<<
      
      backtrace:
        #00  pc 0000000000080bee  /data/app/com.xxx.yyy-ZqFsiKjv33JpJct6CfC72w==/lib/arm/libAppZZZ.so (some_function+232)
      
      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      Using a debug build should provide you with more. As I assume this is a release build for distribution, then perhaps a release with debug info (what is usually done for profiling) is a compromise of sorts.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Marc_Van_Daele
        wrote on last edited by Marc_Van_Daele
        #3

        For testing purposes, I trigger a segfault myself.
        When I run this code on Linux I get a complete stacktrace
        When I run this on Android (debug and release mode) I just get one frame in the "./adb logcat -b crash" output
        Any ideas?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved