0

I use Command Line Interface (Tizen SDK 2.3) to build and create tpk packages for my tizen native project.

It may sound strange but I had a serious problem while building and packing. Suddenly all of my data were wiped out. I thought that it might happen because of virus or hardware issue and then I reinstalled my operating system to a new hard drive and tried to build and pack my project by CLI and unfortunately everything was wiped out again. Even bash in home directory. While building and packing, I was checking cpu and memory usage of processes, then I realized that top process was "rm" and it was using cpu around %95 and removing everything.

Any idea to solve this problem? Or anyone had some similar issue with Command Line Interface in Tizen SDK 2.3?

4

1 回答 1

0

很抱歉延迟回复。如果您仍然面临这个问题,如果您告诉我您正在使用哪个 sdk 版本将会很有帮助,我可以准确地告诉您发生了什么以及如何避免它。同时,这是我的分析,可能会有所帮助。

我正在使用 tizen sdk 2.3 rev2,虽然我无法用它重现此问题,但我在 CLI 构建期间分析了为项目生成的 makefile,发现有一种情况会发生这种情况,这需要满足以下条件.

  • CLI 构建使用 llvm 编译器。
  • 'SA_REPORT_PATH' 环境变量未定义。
  • 在构建期间,make 尝试构建“sa”或“clean”目标。

我没有遇到这个问题,因为 CLI 在我的 sdk 中构建工具,在构建项目之前将“SA_REPORT_PATH”环境变量定义为“ProjectFolder/SA_Report”文件夹。

要查看您的情况是否发生这种情况,您可以将“rm”重命名为其他名称以进行测试,并使用以下命令或类似命令将“echo”复制为“rm”。

> sudo mv /bin/rm /bin/rm_
> sudo cp /bin/echo /bin/rm

然后尝试使用 CLI 构建你的项目,如果你得到类似的行

-rf src/basic_ui.c.ast src/basic_ui.c.fn     /bin /boot /cdrom /dev /etc /home ......

那么这可能会导致删除所有文件,您可以通过在使用任何 CLI 工具之前将“SA_REPORT_PATH”定义为某个默认值来避免这种情况。

> export SA_REPORT_PATH=<absolute path to some empty directory>
于 2015-06-16T12:46:19.497 回答