Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'/usr/bin/sudo /bin/su' #8

Closed
ghost opened this issue Dec 4, 2013 · 8 comments
Closed

'/usr/bin/sudo /bin/su' #8

ghost opened this issue Dec 4, 2013 · 8 comments

Comments

@ghost
Copy link

ghost commented Dec 4, 2013

用完之後 GCOV 會失敗
老師之前看到的結果是之前沒刪除的舊結果

@skhuang
Copy link

skhuang commented Dec 4, 2013

殺檔案的地方也要 sudo su penobody 來殺?

@ghost
Copy link
Author

ghost commented Dec 4, 2013

time out的才會殺檔案
但是沒TIME OUT的也從能跑變不能跑了...

@skhuang
Copy link

skhuang commented Dec 4, 2013

gcc 也要 sudo 執行,這樣執行時 gcov 相關檔才能寫。

@ghost
Copy link
Author

ghost commented Dec 4, 2013

是'/usr/bin/sudo /bin/su gcc -fprofile-arcs -ftest-coverage ....'嗎
如果是的話 我加了以後好像連COMPILE的東西都變沒跑出來...

@skhuang
Copy link

skhuang commented Dec 5, 2013

Please use diff to see my revisions:
diff faultloc_abpath.py faultloc_abpath.py.orig
diff FL.php FL-orig.php

Several modifications

  1. I appended randinfo to the filename to use different path for each session.
  2. chmod 1777 to ufiles.
  3. add back sudo to change user to run target programs.

@ghost
Copy link
Author

ghost commented Dec 11, 2013

time out殺檔案的2行
os.system("bash -c 'kill -s SIGUSR1 %i'" %p.pid)
os.system('kill %i' %p.pid)
貌似沒執行到?
或許也要加'/usr/bin/sudo /bin/su'

@ghost
Copy link
Author

ghost commented Dec 25, 2013

無窮迴圈刪不掉還是存在

/bin/kill -s SIGUSR1 說command not found

/bin/kill 則是沒權限的樣子

@skhuang
Copy link

skhuang commented Jan 8, 2014

用 pgrep -u penobody -l

pgrep -u penobody 470430732loop
可取得所有 pid

@ghost ghost closed this as completed Jan 18, 2014
@ghost ghost pinned this issue Jun 24, 2022
@ghost ghost unpinned this issue Jun 24, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant