asan_device_setup.sh错误:“没有这样的文件或目录”;但确实存在

时间:2017-11-21 17:34:37

标签: android android-ndk adb address-sanitizer leak-sanitizer

我正在尝试设置一个模拟的Android设备来使用Google的清理程序调试一些本机代码。 在使用准备设备运行已清理代码所需的asan_device_setup脚本时,会出现以下内容:

输出:

      Peter Logan@DESKTOP-PLN /cygdrive/c/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin          
      $ sh asan_device_setup 
      >> Remounting /system rw
      remount succeeded
      Target architecture: i686
      >> Copying files from the device
      adb: error: cannot create file/directory '/tmp/tmp.8fXB5R9Db6/old': No such file or directory
      adb: error: cannot create file/directory '/tmp/tmp.8fXB5R9Db6/old': No such file or directory
      adb: error: cannot create file/directory '/tmp/tmp.8fXB5R9Db6/old': No such file or directory
      adb: error: cannot create file/directory '/tmp/tmp.8fXB5R9Db6/old': No such file or directory
      >> New installation
      >> Generating wrappers
      Only in new/: app_process.wrap
      Only in new/: asanwrapper
      Only in new/: libclang_rt.asan-i686-android.so
      >> Pushing files to the device
      Installing /system/lib/libclang_rt.asan-i686-android.so 644
      adb: error: cannot stat '/tmp/tmp.8fXB5R9Db6/new/libclang_rt.asan-i686-android.so': No such file or directory

脚本为第一组错误运行的代码是:

      adb_pull /system/lib/"$ASAN_RT" "$TMPDIROLD" || true
      adb_pull /system/bin/app_process32 "$TMPDIROLD" || true
      adb_pull /system/bin/app_process.wrap "$TMPDIROLD" || true
      adb_pull /system/bin/asanwrapper "$TMPDIROLD" || true      

我检查过,源文件和“$ TMPDIROLD”文件夹的存在与错误信息的建议相反。

任何有助于弄清楚其原因的帮助将不胜感激。

终端:Cygwin

模拟器:Android API21,Rooted

0 个答案:

没有答案