Skip to content

RuntimeError: redex-all crashed with exit code -11! #696

Open

Description

@JusticeOfHeaven

redex --sign -s debug.jks -a android -p android -c redex.config --android-sdk-path $ANDROID_HOME -P app/proguard-rules.pro -o $app/build/outputs/redex/redex.apk $file

0 redex-all 0x000000010a90ea21 _Z23crash_backtrace_handleri + 81
1 libsystem_platform.dylib 0x00007fff2064dd7d _sigtramp + 29
2 ??? 0x00007fb67260b790 0x0 + 140421579716496
3 redex-all 0x000000010a4f18e1 _ZN8interdex8InterDex16emit_primary_dexERKNSt3__16vectorIP8DexClassNS1_9allocatorIS4_EEEERKNS2_IP7DexTypeNS5_ISB_EEEERKNS1_13unordered_setIS4_NS1_4hashIS4_EENS1_8equal_toIS4_EES6_EE + 801
4 redex-all 0x000000010a4f6734 _ZN8interdex8InterDex3runEv + 3236
5 redex-all 0x000000010a4fe58e _ZN8interdex12InterDexPass8run_passERKNSt3__16vectorIP8DexClassNS1_9allocatorIS4_EEEERK10XStoreRefsRKN12init_classes26InitClassesWithSideEffectsERNS2_I8DexStoreNS5_ISH_EEEERNS2_IS7_NS5_IS7_EEEERNS2_INS1_10unique_ptrINS_18InterDexPassPluginENS1_14default_deleteISP_EEEENS5_ISS_EEEER11ConfigFilesR11PassManagerRKNS_15ReserveRefsInfoE + 1038
6 redex-all 0x000000010a4ff8e8 _ZN8interdex12InterDexPass8run_passERNSt3__16vectorI8DexStoreNS1_9allocatorIS3_EEEER11ConfigFilesR11PassManager + 584
7 redex-all 0x000000010aa8cee3 _ZN11PassManager10run_passesERNSt3__16vectorI8DexStoreNS0_9allocatorIS2_EEEER11ConfigFiles + 15923
8 redex-all 0x000000010a884281 main + 2465
9 libdyld.dylib 0x00007fff20623f5d start + 1
10 ??? 0x0000000000000021 0x0 + 33
Traceback (most recent call last):
File "/tmp/redex.1PvRvO/redex.py", line 1259, in
with_temp_cleanup(lambda: run_redex(args), args.always_clean_up)
File "/private/tmp/redex.1PvRvO/pyredex/utils.py", line 62, in with_temp_cleanup
fn()
File "/tmp/redex.1PvRvO/redex.py", line 1259, in
with_temp_cleanup(lambda: run_redex(args), args.always_clean_up)
File "/tmp/redex.1PvRvO/redex.py", line 1238, in run_redex
run_redex_binary(state, exception_formatter, output_line_handler)
File "/tmp/redex.1PvRvO/redex.py", line 374, in run_redex_binary
run()
File "/tmp/redex.1PvRvO/redex.py", line 367, in run
raise RuntimeError(msg)
RuntimeError: redex-all crashed with exit code -11! You can re-run it under gdb by running /tmp/redex.1PvRvO/redex-gdb-jlvtmrbg.sh or under lldb by running /tmp/redex.1PvRvO/redex-lldb-20s5d11a.sh

Activity

  1. NTillmann commented on Jun 1, 2022

    @NTillmann
    Contributor

    More information is needed to diagnose this. Line numbers in the stack trace would help, and more details instructions on how to reproduce.

  2. JusticeOfHeaven commented on Jun 2, 2022

    @JusticeOfHeaven
    Author

    More information is needed to diagnose this. Line numbers in the stack trace would help, and more details instructions on how to reproduce.

    run:

    redex --sign -s debug.jks -a android -p android -c redex.config --android-sdk-path $ANDROID_HOME -P app/proguard-rules.pro -o $app/build/outputs/redex/redex.apk $file
    

    the output:

    TRACE_CLASS_FILE=
    TRACE_CLASS_NAME=
    Trace settings:
    TRACEFILE=
    SHOW_TIMESTAMPS=
    SHOW_TRACEMODULE=
    TRACE_METHOD_FILTER=
    Unimplemented command (skipping): -dontskipnonpubliclibraryclassmembers at line 37
    36: # 指定不去忽略非公共库的类成员
    37: !>-dontskipnonpubliclibraryclassmembers<!
    39: # 不做预校验,preverify是proguard的四个步骤之一,Android不需要preverify,去掉这一步能够加快混淆速度。
    Unimplemented command (skipping): -ignorewarnings at line 679
    677: #-keep class com.qiniu.**{*;}
    678: #-keep class com.qiniu.**{public <init>();}
    679: !>-ignorewarnings<!
    681: #FFmpeg
            Parsed ProGuard config file completed in 0.0 seconds
            Load classes from dexes completed in 2.1 seconds
            Load library jars completed in 0.6 seconds
            Deobfuscating dex elements completed in 0.3 seconds
                Process keep for whyareyoukeeping completed in 0.0 seconds
                Process keep for classes and members completed in 2.1 seconds
                Process keep for assumenosideeffects completed in 0.0 seconds
            Processing proguard rules completed in 2.2 seconds
            No Optimizations Rules completed in 0.0 seconds
                Mark keep-methods completed in 0.0 seconds
                Computing XML reachability completed in 0.1 seconds
                Computing native reachability completed in 0.7 seconds
                Analyzing reflection completed in 0.1 seconds
                Analyzing Serializable completed in 0.0 seconds
                Initializing for json serde completed in 0.0 seconds
            Initializing reachable classes completed in 1.0 seconds
        Redex_frontend completed in 6.2 seconds
            API Level Checker completed in 0.1 seconds
    WARNING: No inliner config
    Evaluating StripDebugInfoPass...
            StripDebugInfoPass (eval) completed in 0.0 seconds
    Evaluating InterDexPass...
            InterDexPass (eval) completed in 0.0 seconds
    Evaluating RegAllocPass...
            RegAllocPass (eval) completed in 0.0 seconds
    Note: input type checking is turned off!
    Running StripDebugInfoPass...
            StripDebugInfoPass 1 (run) completed in 0.2 seconds
    Running InterDexPass...
                InitClassesWithSideEffects completed in 0.2 seconds
    0   redex-all                           0x000000010a90ea21 _Z23crash_backtrace_handleri + 81
    1   libsystem_platform.dylib            0x00007fff2064dd7d _sigtramp + 29
    2   ???                                 0x00007fb67260b790 0x0 + 140421579716496
    3   redex-all                           0x000000010a4f18e1 _ZN8interdex8InterDex16emit_primary_dexERKNSt3__16vectorIP8DexClassNS1_9allocatorIS4_EEEERKNS2_IP7DexTypeNS5_ISB_EEEERKNS1_13unordered_setIS4_NS1_4hashIS4_EENS1_8equal_toIS4_EES6_EE + 801
    4   redex-all                           0x000000010a4f6734 _ZN8interdex8InterDex3runEv + 3236
    5   redex-all                           0x000000010a4fe58e _ZN8interdex12InterDexPass8run_passERKNSt3__16vectorIP8DexClassNS1_9allocatorIS4_EEEERK10XStoreRefsRKN12init_classes26InitClassesWithSideEffectsERNS2_I8DexStoreNS5_ISH_EEEERNS2_IS7_NS5_IS7_EEEERNS2_INS1_10unique_ptrINS_18InterDexPassPluginENS1_14default_deleteISP_EEEENS5_ISS_EEEER11ConfigFilesR11PassManagerRKNS_15ReserveRefsInfoE + 1038
    6   redex-all                           0x000000010a4ff8e8 _ZN8interdex12InterDexPass8run_passERNSt3__16vectorI8DexStoreNS1_9allocatorIS3_EEEER11ConfigFilesR11PassManager + 584
    7   redex-all                           0x000000010aa8cee3 _ZN11PassManager10run_passesERNSt3__16vectorI8DexStoreNS0_9allocatorIS2_EEEER11ConfigFiles + 15923
    8   redex-all                           0x000000010a884281 main + 2465
    9   libdyld.dylib                       0x00007fff20623f5d start + 1
    10  ???                                 0x0000000000000021 0x0 + 33
    Traceback (most recent call last):
      File "/tmp/redex.1PvRvO/redex.py", line 1259, in <module>
        with_temp_cleanup(lambda: run_redex(args), args.always_clean_up)
      File "/private/tmp/redex.1PvRvO/pyredex/utils.py", line 62, in with_temp_cleanup
        fn()
      File "/tmp/redex.1PvRvO/redex.py", line 1259, in <lambda>
        with_temp_cleanup(lambda: run_redex(args), args.always_clean_up)
      File "/tmp/redex.1PvRvO/redex.py", line 1238, in run_redex
        run_redex_binary(state, exception_formatter, output_line_handler)
      File "/tmp/redex.1PvRvO/redex.py", line 374, in run_redex_binary
        run()
      File "/tmp/redex.1PvRvO/redex.py", line 367, in run
        raise RuntimeError(msg)
    RuntimeError: redex-all crashed with exit code -11! You can re-run it under gdb by running /tmp/redex.1PvRvO/redex-gdb-jlvtmrbg.sh or under lldb by running /tmp/redex.1PvRvO/redex-lldb-20s5d11a.sh
    

    the config:

    {
        "redex" : {
            "passes" : [
                "StripDebugInfoPass",
                "InterDexPass",
                "RegAllocPass"
            ]
        },
        "StripDebugInfoPass" : {
            "drop_all_dbg_info" : false,
            "drop_local_variables" : true,
            "drop_line_numbers" : false,
            "drop_src_files" : false,
            "use_whitelist" : false,
            "cls_whitelist" : [],
            "method_whitelist" : [],
            "drop_prologue_end" : true,
            "drop_epilogue_begin" : true,
            "drop_all_dbg_info_if_empty" : true
        },
        "InterDexPass" : {
            "minimize_cross_dex_refs": true,
            "minimize_cross_dex_refs_method_ref_weight": 100,
            "minimize_cross_dex_refs_field_ref_weight": 90,
            "minimize_cross_dex_refs_type_ref_weight": 100,
            "minimize_cross_dex_refs_string_ref_weight": 90
        },
        "RegAllocPass" : {
            "live_range_splitting": false
        },
        "string_sort_mode" : "class_order",
        "bytecode_sort_mode" : "class_order",
        "ir_type_checker": {
            "run_after_each_pass": false,
            "run_on_input": false
        }
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions