promeG / XLog

Method call logging based on dexposed.
Apache License 2.0
313 stars 68 forks source link

signal 11 (SIGSEGV) after adding XLog #15

Open connexion2000 opened 8 years ago

connexion2000 commented 8 years ago

Hi, after adding XLog to my project, it no longer runs. I added also following lines to my project:

debug {
            minifyEnabled false
        }

Here is stacktrace:

02-16 22:29:09.829 25638-25638/? E/Zygote: MountEmulatedStorage()
02-16 22:29:09.829 25638-25638/? E/Zygote: v2
02-16 22:29:09.829 25638-25638/? I/libpersona: KNOX_SDCARD checking this for 10365
02-16 22:29:09.829 25638-25638/? I/libpersona: KNOX_SDCARD not a persona
02-16 22:29:09.834 25638-25638/? I/SELinux: Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-N910C_5.0.1 ver=27
02-16 22:29:09.834 25638-25638/? I/SELinux: Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-N910C_5.1.1_0039
02-16 22:29:09.834 25638-25638/? E/Zygote: accessInfo : 0
02-16 22:29:09.839 25638-25638/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
02-16 22:29:09.839 25638-25638/? I/art: Late-enabling -Xcheck:jni
02-16 22:29:09.864 25638-25638/? D/TimaKeyStoreProvider: TimaSignature is unavailable
02-16 22:29:09.864 25638-25638/? D/ActivityThread: Added TimaKeyStore provider
02-16 22:29:10.289 25638-25638/pl.hydroid.android.podcatcher D/hotpatch: device support is truecheckedfalse
02-16 22:29:10.289 25638-25638/pl.hydroid.android.podcatcher I/art: dexposed: now initializing, Found Dexposed class com/taobao/android/dexposed/DexposedBridge
02-16 22:29:10.289 25638-25638/pl.hydroid.android.podcatcher I/art: dexposed: com_taobao_android_dexposed_DexposedBridge_initNative
02-16 22:29:10.374 25638-25638/pl.hydroid.android.podcatcher D/MultiDexHelper: getXLogSetting() called with context = [pl.hydroid.android.podcatcher.PodcatcherApplication@195e75aa], xLogPkgName = [com.promegu.xlogger]  time: 83
02-16 22:29:10.654 25638-25638/pl.hydroid.android.podcatcher D/MultiDexHelper: getAllMethodsWithAnnoation() called with context = [pl.hydroid.android.podcatcher.PodcatcherApplication@195e75aa], annoationClass = [interface com.promegu.xlog.base.XLog], xLogSetting = [com.promegu.xlog.base.XLogSetting@3833db50]  time: 279
02-16 22:29:10.654 25638-25638/pl.hydroid.android.podcatcher I/art: dexposed: >>> hookMethodNative
02-16 22:29:10.654 25638-25638/pl.hydroid.android.podcatcher A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x3fecccd4 in tid 25638 (roid.podcatcher)
connexion2000 commented 8 years ago

For additional info here are my configs:

build.gradle from project:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

and build.gradle from module:

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'com.jakewharton.hugo'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "pl.hydroid.android.podcatcher"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE.txt'
    }

    dataBinding {
        enabled = true
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'com.android.support:support-v4:23.+'
    compile 'com.google.dagger:dagger:2.0.2'
    apt 'com.google.dagger:dagger-compiler:2.0.2'
    provided 'org.glassfish:javax.annotation:10.0-b28'
    compile 'com.android.support:recyclerview-v7:23.+'
    compile 'org.apache.commons:commons-lang3:3.4'
    compile 'joda-time:joda-time:2.8.+'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
    compile 'com.squareup.okhttp:okhttp:2.0.0'
    compile 'com.jakewharton:butterknife:7.+'
    compile 'com.marshalchen.ultimaterecyclerview:library:+'
    compile 'com.android.support:cardview-v7:23.+'
    compile 'com.facebook.fresco:fresco:0.9.+'
    compile 'com.github.dmytrodanylyk:android-morphing-button:e271da6fd524d8f8855d1016d72f6b69dfcbae8c'
}
Piasy commented 8 years ago

+1

With Samsung Note 3, Android 5.0 API 21

Crashed with log:

04-06 21:27:43.177 2014-2014/? E/audit: type=1701 msg=audit(1459949263.177:215): auid=4294967295 uid=10057 gid=10057 ses=4294967295 subj=u:r:untrusted_app:s0 pid=14494 comm=".layoutperfdemo" reason="memory violation" sig=11