• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

app keeps shuting down

my app keeps shutting down when it hits this line "tv.setText(stringFromJNI());" i"m trying to send a string to c and then send it back to java and print it in a textview. here is my code

Code:
   [USER=1021285]@override[/USER]
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv = (TextView) findViewById(R.id.sample_text);

        tv.setText(stringFromJNI());    // this is the line that it shuts down
        stringFromJNI("hello");

    }

    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public native String stringFromJNI();
    //public static native double stringFromJNI( String javastring);
    public native String stringFromJNI(String javastring);
}

here is my c code

Code:
extern "C"
JNIEXPORT jstring

JNICALL
Java_tony_c2_MainActivity_stringFromJNI(JNIEnv *env, jobject, jstring filename /* this */) {

    const char *javastring = env->GetStringUTFChars(filename , NULL ) ;
    env->ReleaseStringUTFChars(filename, javastring);
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}
 
Last edited by a moderator:
Are you running this from Android Studio? If so please post the stack trace from the Logcat view.
 
03-10 17:43:34.370 28103-28103/? D/dalvikvm: Late-enabling CheckJNI
03-10 17:43:34.598 28103-28103/tony.c2 D/dalvikvm: Trying to load lib /data/data/tony.c2/lib/libnative-lib.so 0xa6d13bc8
03-10 17:43:34.614 28103-28103/tony.c2 D/dalvikvm: Added shared lib /data/data/tony.c2/lib/libnative-lib.so 0xa6d13bc8
03-10 17:43:34.666 28103-28103/tony.c2 D/dalvikvm: No JNI_OnLoad found in /data/data/tony.c2/lib/libnative-lib.so 0xa6d13bc8, skipping init
03-10 17:43:34.670 28103-28103/tony.c2 I/dalvikvm: Could not find method android.view.Window$Callback.onPointerCaptureChanged, referenced from method android.support.v7.view.WindowCallbackWrapper.onPointerCaptureChanged
03-10 17:43:34.670 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve interface method 15988: Landroid/view/Window$Callback;.onPointerCaptureChanged (Z)V
03-10 17:43:34.670 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
03-10 17:43:34.670 28103-28103/tony.c2 I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
03-10 17:43:34.670 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve interface method 15990: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
03-10 17:43:34.670 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
03-10 17:43:34.670 28103-28103/tony.c2 W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
03-10 17:43:34.670 28103-28103/tony.c2 I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
03-10 17:43:34.670 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve interface method 15992: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
03-10 17:43:34.670 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
03-10 17:43:34.670 28103-28103/tony.c2 I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
03-10 17:43:34.670 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve interface method 15996: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
03-10 17:43:34.670 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
03-10 17:43:34.670 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
03-10 17:43:34.670 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 704: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
03-10 17:43:34.670 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
03-10 17:43:34.670 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
03-10 17:43:34.670 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 726: Landroid/content/res/TypedArray;.getType (I)I
03-10 17:43:34.670 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 485: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 491: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 492: Landroid/content/Context;.getColor (I)I
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 493: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 495: Landroid/content/Context;.getDataDir ()Ljava/io/File;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 496: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getExternalCacheDirs, referenced from method android.support.v4.content.ContextCompat.getExternalCacheDirs
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 498: Landroid/content/Context;.getExternalCacheDirs ()[Ljava/io/File;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getExternalFilesDirs, referenced from method android.support.v4.content.ContextCompat.getExternalFilesDirs
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 500: Landroid/content/Context;.getExternalFilesDirs (Ljava/lang/String;)[Ljava/io/File;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 503: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getObbDirs, referenced from method android.support.v4.content.ContextCompat.getObbDirs
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 505: Landroid/content/Context;.getObbDirs ()[Ljava/io/File;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 516: Landroid/content/Context;.isDeviceProtectedStorage ()Z
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.678 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.startForegroundService, referenced from method android.support.v4.content.ContextCompat.startForegroundService
03-10 17:43:34.678 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 531: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
03-10 17:43:34.678 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.730 28103-28103/tony.c2 I/dalvikvm: Could not find method android.support.v7.view.ContextThemeWrapper.createConfigurationContext, referenced from method android.support.v7.view.ContextThemeWrapper.getResourcesInternal
03-10 17:43:34.730 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 12005: Landroid/support/v7/view/ContextThemeWrapper;.createConfigurationContext (Landroid/content/res/Configuration;)Landroid/content/Context;
03-10 17:43:34.730 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0019
03-10 17:43:34.750 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.FrameLayout.startActionModeForChild, referenced from method android.support.v7.widget.ActionBarContainer.startActionModeForChild
03-10 17:43:34.770 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16457: Landroid/widget/FrameLayout;.startActionModeForChild (Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
03-10 17:43:34.778 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0002
03-10 17:43:34.794 28103-28103/tony.c2 I/dalvikvm: Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged
03-10 17:43:34.794 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 15889: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
03-10 17:43:34.794 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0007
03-10 17:43:34.794 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
03-10 17:43:34.794 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 493: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
03-10 17:43:34.794 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
03-10 17:43:34.794 28103-28103/tony.c2 W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/graphics/drawable/Icon;)
03-10 17:43:34.794 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.ImageButton.setImageIcon, referenced from method android.support.v7.widget.AppCompatImageButton.setImageIcon
03-10 17:43:34.794 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16480: Landroid/widget/ImageButton;.setImageIcon (Landroid/graphics/drawable/Icon;)V
03-10 17:43:34.794 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0000
03-10 17:43:34.794 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
03-10 17:43:34.794 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 667: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-10 17:43:34.798 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
03-10 17:43:34.798 28103-28103/tony.c2 I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
03-10 17:43:34.798 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 669: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-10 17:43:34.798 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
03-10 17:43:34.798 28103-28103/tony.c2 E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
03-10 17:43:34.798 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve instanceof 193 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
03-10 17:43:34.798 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeMaxTextSize, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeMaxTextSize
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16776: Landroid/widget/TextView;.getAutoSizeMaxTextSize ()I
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeMinTextSize, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeMinTextSize
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16777: Landroid/widget/TextView;.getAutoSizeMinTextSize ()I
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeStepGranularity, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeStepGranularity
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16778: Landroid/widget/TextView;.getAutoSizeStepGranularity ()I
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeTextAvailableSizes, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeTextAvailableSizes
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16779: Landroid/widget/TextView;.getAutoSizeTextAvailableSizes ()[I
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeTextType, referenced from method android.support.v7.widget.AppCompatTextView.getAutoSizeTextType
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16780: Landroid/widget/TextView;.getAutoSizeTextType ()I
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0008
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.setAutoSizeTextTypeUniformWithConfiguration, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeUniformWithConfiguration
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16823: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithConfiguration (IIII)V
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.setAutoSizeTextTypeUniformWithPresetSizes, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeUniformWithPresetSizes
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16824: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithPresetSizes ([II)V
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
03-10 17:43:34.802 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.setAutoSizeTextTypeWithDefaults, referenced from method android.support.v7.widget.AppCompatTextView.setAutoSizeTextTypeWithDefaults
03-10 17:43:34.802 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16825: Landroid/widget/TextView;.setAutoSizeTextTypeWithDefaults (I)V
03-10 17:43:34.802 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0006
03-10 17:43:34.806 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.getAutoSizeStepGranularity, referenced from method android.support.v7.widget.AppCompatTextHelper.loadFromAttributes
03-10 17:43:34.806 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16778: Landroid/widget/TextView;.getAutoSizeStepGranularity ()I
03-10 17:43:34.806 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0197
03-10 17:43:34.806 28103-28103/tony.c2 I/dalvikvm: Could not find method android.text.StaticLayout$Builder.obtain, referenced from method android.support.v7.widget.AppCompatTextViewAutoSizeHelper.createStaticLayoutForMeasuring
03-10 17:43:34.806 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve static method 15266: Landroid/text/StaticLayout$Builder;.obtain (Ljava/lang/CharSequence;IILandroid/text/TextPaint;I)Landroid/text/StaticLayout$Builder;
03-10 17:43:34.806 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x71 at 0x0014
03-10 17:43:34.806 28103-28103/tony.c2 I/dalvikvm: Could not find method android.widget.TextView.isInLayout, referenced from method android.support.v7.widget.AppCompatTextViewAutoSizeHelper.setRawTextSize
03-10 17:43:34.806 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 16815: Landroid/widget/TextView;.isInLayout ()Z
03-10 17:43:34.806 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6e at 0x0021
03-10 17:43:34.830 28103-28106/tony.c2 D/dalvikvm: GC_CONCURRENT freed 211K, 3% free 10916K/11207K, paused 19ms+0ms, total 23ms
03-10 17:43:34.838 28103-28103/tony.c2 I/dalvikvm: Could not find method android.view.ViewGroup$MarginLayoutParams.resolveLayoutDirection, referenced from method android.support.constraint.ConstraintLayout$LayoutParams.resolveLayoutDirection
03-10 17:43:34.874 28103-28103/tony.c2 W/dalvikvm: VFY: unable to resolve virtual method 15838: Landroid/view/ViewGroup$MarginLayoutParams;.resolveLayoutDirection (I)V
03-10 17:43:34.886 28103-28103/tony.c2 D/dalvikvm: VFY: replacing opcode 0x6f at 0x0002
03-10 17:43:34.906 28103-28103/tony.c2 W/dalvikvm: Invalid indirect reference 0xa032dcec in decodeIndirectRef
03-10 17:43:34.906 28103-28103/tony.c2 E/dalvikvm: VM aborting
03-10 17:43:34.906 28103-28103/tony.c2 A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 28103 (tony.c2)
 
What makes you think that particular line of code is causing problems?
 
Back
Top Bottom