Valgrind cannot create temporary files

I am trying to run my app with valgrind on Android, but I am getting the error VG_ (mkstemp): Could not create temporary file. I read that the problem occurs frequently on Android, but I haven't found any solution. I do everything as per this post , with one difference in the second script I am using a non-bash package.

08-28 12:13:53.820: I/dalvikvm(19303): Exec: /system/bin/sh -c logwrapper sh /data/local/hellojni_valgrind.sh /system/bin/app_process /system/bin --application '--nice-name=com.example.hellojni' com.android.internal.os.WrapperInit 28 3 'android.app.ActivityThread' 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): ==19315== VG_(mkstemp): failed to create temp file: /data/data/com.example.hellojni 08-28 12:13:53.850: I/sh(19312): valgrind: Startup or configuration error: 08-28 12:13:53.850: I/sh(19312): valgrind: Can't create client cmdline file in ??8L?8 08-28 12:13:53.850: I/sh(19312): valgrind: Unable to start up properly. Giving up. 08-28 12:13:53.850: I/logwrapper(19312): sh terminated by exit(1)

+3


source to share





All Articles