Skip to content

Breakpad Symbol Generation Failed (exit=1) #4280

Closed

Description

@mmillington

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Android Studio 4.0
    Build #AI-193.6911.18.40.6514223, built on May 20, 2020
  • Firebase Component: Firebase Crashlytics NDK
  • Component version:
    firebase-crashlytics-gradle: 2.9.1
    firebase-crashlytics-ndk: 18.2.11

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

run app:generateCrashlyticsSymbolFile[AnyBuildType]

It seems to be a similar situation to this Issue: #3338
Although our exit code is 1, compared to theirs which was 126.

We are using the Unreal Engine, and have been doing so with Crashlytics integrated into our app for multiple years now without ever encountering such an issue. We managed to track it down to a particular commit, which was quite a large change in the codebase, and without any particular clues from the failure itself it's hard for us to know where to start to diagnose the problem.

It will be nearly impossible for us to create a MCVE since that would probably include the Unreal Engine, and since we don't really know why it is failing we don't know what would be required in the MCVE to reproduce the issue.

This is the output I receive:
output.txt
stderr.txt

I've tried following the suggestions in the thread above to get more information, but having a bit of trouble.

If I run the dump_syms.exe manually on the specific .so file that is causing the failure (libue4.so) with the -v option I get the following output only:

'Failed to mmap ELF file 'app\build\intermediates\merged_native_libs\release\out\lib\armeabi-v7a\libUE4.so': No error
Failed to write symbol file.'

However I'm not sure I'm supplying the correct parameters to dump_syms. I'm trying to follow the instructions here:
https://www.chromium.org/developers/decoding-crash-dumps/
where it mentions running:

dump_syms /lib/libfoo.so /usr/debug/lib > /tmp/libfoo.so.sym

But even with the .so files that the symbol generation succeeds on (libplaycore.so for example) I get the error:

libplaycore.so: file contains no debugging information (no ".stab" or ".debug_info" sections)

So I think I'm doing something wrong.

As with the poster in the linked thread, I'd expect more information about the failure itself in order to diagnose the issue properly. As it stands I'm not 100% where the problem lies.

Activity

  1. google-oss-bot commented on Nov 3, 2022

    @google-oss-bot
    Collaborator

    I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

  2. self-assigned this
    on Nov 16, 2022
  3. humanolaranja commented on Dec 8, 2022

    @humanolaranja

    Facing the same

  4. smg-daniell commented on Jan 9, 2023

    @smg-daniell

    I have exactly the same issue on windows, but I don't get this error on Mac

  5. mrober commented on Feb 3, 2023

    @mrober
    Contributor

    The dump_syms executable distributed with the Crashlytics gradle plugin is modified, can you try running that command manually again but use the dump_syms located in build/crashlytics/{debug|release}/dump_syms/? If that still does not work, would you be willing to share your symbols file with us? If so, please reach out to Firebase support, provide them with the symbols file, and mention my name mrober. Thanks!

  6. limjonguk commented on Feb 6, 2023

    @limjonguk

    I'm experiencing the same issue after updating Crashlytics.
    The test environment is as follows.

    [Build environment]

    • OS : Windows 10
    • Android SDK Build-Tool : v30.0.3
    • Android SDK Platform-Tools: v33.0.3
    • NDK : v21.4.7075529
    • JDK : 8 or 11
    • Build Environment : Unreal Engine 4.27

    [updated version]

    • Updated firebase-crashlytics-gradle library from v2.3.0 to v2.9.2
    • Updated firebase-crashlytics-ndk library from v17.2.1 to v18.2.3

    There were several processes, but the build was successful by changing the symbol file generator to cSYM. (The symbol file generator has been changed to 'breakped' since crashlytics-gradle v2.8.0)
    But still seems to be having issues. Null symbol file generated for.. message is displayed and the symbol file is not normally created.
    I've contacted Firebase support and are working on this issue with Marlon (Case 10215122). If there are any additional confirmations, we will share them.

  7. jpainam commented on Apr 17, 2023

    @jpainam

    Experiencing the same issue

  8. mrober commented on May 18, 2023

    @mrober
    Contributor

    I am trying to reproduce this issue on Windows. Would somebody be willing to send an example of their symbols file that experiences this issue to Firebase Support and mentioned my ldap mrober? Then I can look deeper.

  9. limjonguk commented on May 18, 2023

    @limjonguk

    @mrober Hello, we are still talking with Marlon about (firebase support : Case 10215122).
    We will reproduce the issue in a few days and share the symbol file. thank you.

  10. unpaleness commented on May 23, 2023

    @unpaleness

    Experiencing the same issue with our project, but we don't use UE, we have custom engine.

  11. 9 remaining items

  12. unpaleness commented on Jun 29, 2023

    @unpaleness

    Hi!
    I've tried to use 2.9.7-alpha as mentioned above but unfortunately the problem still persists. The difference is in the error code:
    > java.io.IOException: Breakpad symbol generation failed (exit=-1073741511), see STDERR
    It fails on the same big *.so file > 2GB

  13. mrober commented on Jun 29, 2023

    @mrober
    Contributor

    @unpaleness would you be able to send me the so file so I can look into it? You can reach out to Firebase Support and it will get routed to me. Thanks

  14. unpaleness commented on Jun 30, 2023

    @unpaleness

    I've also checked a weird approach and it works:

  15. danbachler commented on Jul 31, 2023

    @danbachler

    I am running into a very similar problem except my exit code is 134. (same error as #4699)

    The build environment is a Linux VM, managed by CircleCI, but the same build step also failed on a Linux machine (Mint 21.1 Cinnamon, Kernel 5.15.0-78-generic), and a Mac machine (Ventura 13.4.1).

    The issue is with a golang lib (.so), all other libs both internal and external process fine.

    We are running version 2.9.7 on all mentioned devices.

  16. rostyslavbur commented on Aug 4, 2023

    @rostyslavbur

    @mrober Hi, after update to 2.9.7(or 2.9.8) facing similar issue "java.io.IOException: Breakpad symbol generation failed (exit=-1073741511), see STDERR". When trying to launch dump_syms.exe, even .exe standalone(without specifying any arguments) it fails with an exception "the procedure entry point _ZSt28_throw_bad_array_new_lengthv could not be located in the dynamic link library", checked 2.9.6 version and below, everything is ok, as far as I understand "libstdc++-6.dll" must include that symbol, but it doesn't.

  17. mrober commented on Aug 4, 2023

    @mrober
    Contributor

    Thanks for reporting this everyone. I found there are three issues:

    1. Symbols failing to upload for large files on Windows
    2. Symbols failing to upload for some golang libs on all platforms
    3. The dump_syms binary itself failing to run on some machines due to an old libstdc++-6.dll on Windows since 2.9.7

    So 1. is fixed in 2.9.7, but some machines might not be able to utilize it due to 3. I will post a new version of dump_syms today. And that will be included in the next release in a couple weeks. And 2. is still in progress, I am not sure if it will make it into the next release or the next-next release.

  18. mrober commented on Aug 4, 2023

    @mrober
    Contributor

    @rostyslavbur Here is a dump_syms binary that I built to avoid the issue with libstdc++-6.dll. I am still not sure how we will resolve this for the next release, so just consider this a work in progress. Please let me know if you have any issues with this version or any questions.

  19. mrober commented on Aug 28, 2023

    @mrober
    Contributor

    The dump_syms binary for Windows is fixed in version 2.9.9 of the Crashlytics Gradle plugin. You may need to clean your build environment to ensure the plugin is using the latest version of the binary.

    We are working on a fix for the issue with symbols for some golang libs failing to upload.

  20. added
    triaged-accepted
    on Oct 17, 2023
  21. sergeiignatov commented on Oct 23, 2023

    @sergeiignatov

    @mrober could you please advice, how can I exclude one prebuilt *.so library from symbol file upload? It will be useful to exclude that golang lib temporarily until fix is released.

  22. mrober commented on Oct 23, 2023

    @mrober
    Contributor

    @sergeiignatov in the mean time you could disable uploading from your gradle build file by setting nativeSymbolUploadEnabled = false, and then use the Firebase CLI to upload symbols. You can specify each file if you want, or copy all but the golang into a dir and upload that. Sorry for the delay in this issue, we are working on other high priority issues right now, but I do plan to work on this soon.

  23. davidgalarza commented on Apr 16, 2024

    @davidgalarza

    Any update I'm facing the same issue to upload android symbols with my MAC M3 PRO:

    i  Generating symbols for build/app/outputs/symbols
    ⚠  [CRASHLYTICS LOG DEBUG] Crashlytics Buildtools initialized.
    [CRASHLYTICS LOG DEBUG] Skipping dumpsyms extraction, file exists: /Users/davidgalarzachacon/Documents/Sounter/App/sounter/.crashlytics/dump_syms.bin
    [CRASHLYTICS LOG DEBUG] Breakpad symbol generator initialized: /Users/davidgalarzachacon/Documents/Sounter/App/sounter/.crashlytics/dump_syms.bin
    [CRASHLYTICS LOG DEBUG] Generating native symbol files for /Users/davidgalarzachacon/Documents/Sounter/App/sounter/build/app/outputs/symbols; writing output to: /tmp/crashlytics-b4c1841c-3eb2-4af0-8fed-06f333fb9f6d/nativeSymbols/1-16353195526-android-3d90083307c68cc2/breakpad
    [CRASHLYTICS LOG DEBUG] 4 native libraries found at build/app/outputs/symbols
    [CRASHLYTICS LOG DEBUG] Crashlytics generating Breakpad Symbol file for: /Users/davidgalarzachacon/Documents/Sounter/App/sounter/build/app/outputs/symbols/app.android-x64.symbols
    [CRASHLYTICS LOG DEBUG] Extracting Breakpad symbols to temp file: /tmp/crashlytics-b4c1841c-3eb2-4af0-8fed-06f333fb9f6d/nativeSymbols/1-16353195526-android-3d90083307c68cc2/breakpad/app.android-x64.symbols2536240426155651774.tmp
    [CRASHLYTICS LOG DEBUG] GNU Build Id for /Users/davidgalarzachacon/Documents/Sounter/App/sounter/build/app/outputs/symbols/app.android-x64.symbols: ec84697026f909d65ad68741a25562d5
    [CRASHLYTICS LOG DEBUG] Renaming Breakpad symbol file to: /tmp/crashlytics-b4c1841c-3eb2-4af0-8fed-06f333fb9f6d/nativeSymbols/1-16353195526-android-3d90083307c68cc2/breakpad/app.android-x64-x86_64-ec84697026f909d65ad68741a25562d5.sym
    [CRASHLYTICS LOG DEBUG] Generated symbol file: /tmp/crashlytics-b4c1841c-3eb2-4af0-8fed-06f333fb9f6d/nativeSymbols/1-16353195526-android-3d90083307c68cc2/breakpad/app.android-x64-x86_64-ec84697026f909d65ad68741a25562d5.sym (6,094,369 bytes)
    [CRASHLYTICS LOG DEBUG] Crashlytics generating Breakpad Symbol file for: /Users/davidgalarzachacon/Documents/Sounter/App/sounter/build/app/outputs/symbols/app.ios-arm64.symbols
    [CRASHLYTICS LOG DEBUG] Extracting Breakpad symbols to temp file: /tmp/crashlytics-b4c1841c-3eb2-4af0-8fed-06f333fb9f6d/nativeSymbols/1-16353195526-android-3d90083307c68cc2/breakpad/app.ios-arm64.symbols8103815293564869336.tmp
    java.io.IOException: Breakpad symbol generation failed (exit=1), see STDERR
    	at com.google.firebase.crashlytics.buildtools.ndk.internal.breakpad.BreakpadSymbolGenerator.generateSymbols(BreakpadSymbolGenerator.java:133)
    	at com.google.firebase.crashlytics.buildtools.Buildtools.generateNativeSymbolFiles(Buildtools.java:273)
    	at com.google.firebase.crashlytics.buildtools.CommandLineHelper.executeGenerateSymbols(CommandLineHelper.java:185)
    	at com.google.firebase.crashlytics.buildtools.CommandLineHelper.executeCommand(CommandLineHelper.java:118)
    	at com.google.firebase.crashlytics.buildtools.CommandLineHelper.main(CommandLineHelper.java:65)
    	at com.google.firebase.crashlytics.buildtools.Buildtools.main(Buildtools.java:111)
    
    
    Error: java command failed with args: -jar,/Users/davidgalarzachacon/.cache/firebase/crashlytics/buildtools/crashlytics-buildtools-2.9.2.jar,-symbolGenerator,breakpad,-symbolFileCacheDir,/tmp/crashlytics-b4c1841c-3eb2-4af0-8fed-06f333fb9f6d/nativeSymbols/1-16353195526-android-3d90083307c68cc2/breakpad,-verbose,-generateNativeSymbols,-unstrippedLibrary,build/app/outputs/symbols,-clientName,firebase-cli;crashlytics-buildtools
    
    
  24. mrober commented on Apr 25, 2024

    @mrober
    Contributor

    We have a prerelease of the next major version of the Crashlytics Gradle plugin, you can find it in #5733. This has several improvements, including better support native apps. The prerelease comes with the latest upstream changes to Breakpad, which will resolve this problem. If the prerelease does not resolve this problem, please let me know on that issue.

  25. locked and limited conversation to collaborators on May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: crashlyticstriaged-accepted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions