fakeroot-ng can't ptrace since maverick

Bug #699744 reported by Todd Lipcon
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
fakeroot-ng (Ubuntu)
Fix Released
Undecided
Shachar Shemesh

Bug Description

Binary package hint: fakeroot-ng

Maverick changed the default for the kernel.yama.ptrace_scope sysctl to 1, which makes fakeroot-ng not work. I tried to write a patch using prctl / PR_SET_PTRACER but couldn't quite get it to work right.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fakeroot-ng (Ubuntu):
status: New → Confirmed
Revision history for this message
Stephan Wienczny (stephan-wienczny) wrote :

This bug is still valid for oneric.

1. There should be a error message, because currently fakeroot silently closes.
2. There should also be a comment in README.Debian about this issue.

summary: - fakeroot-ng can't ptrace in maverick
+ fakeroot-ng can't ptrace since maverick
Revision history for this message
Shachar Shemesh (shachar-shemesh) wrote :

SVN for upstream has a fix for this issue. It will be incorporated into the next official release.

Changed in fakeroot-ng (Ubuntu):
assignee: nobody → Shachar Shemesh (shachar-shemesh)
status: Confirmed → Fix Committed
Revision history for this message
Shachar Shemesh (shachar-shemesh) wrote :

Version 0.18 has the fix. As soon as it is integrated into Ubuntu, everything should work again.

Revision history for this message
Shachar Shemesh (shachar-shemesh) wrote :

Ubuntu 13.10 has the fix for this problem. I have confirmed that it is working.

Changed in fakeroot-ng (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Hibou57 (Yannick Duchêne) (yannick-duchene) wrote :

Not sure it's the same case (it looks like); if not, tell me, and I will open another bug report.

Using Ubuntu 12.04 32 bits, `fakeroot-ng` does not work at all, do nothing, without even an error message, and always returns `2` as the exist status.

Example:

    fakeroot-ng -llog.txt sh; echo $?

… prints `2`, and:

    cat cat log.txt

… prints:

    Debugger started
    Could not start trace of process 13832: Operation not permitted
    Begin the process loop

I check `fakeroot` (not the one from `fakeroot-ng`, the other, the legacy one), works normally, so it's really specific to `fakeroot-ng`.

Revision history for this message
Hibou57 (Yannick Duchêne) (yannick-duchene) wrote :

The fix is not released as erroneously stated by the report's current status. The latest is fakeroot-ng version 0.16-1ubuntu1, and the issue is still there with this version.

Revision history for this message
Shachar Shemesh (shachar-shemesh) wrote :

Ubuntu's current version is 14.04. Version 12.04 is two years out of date. The comment clearly states that the fix was released in version 13.10.

I see no error in the report's current status. If you believe the fix should be back ported to 12.04 as part of the LTS, then I'm not sure what the procedure to do that is. It is, however, outside my powers to do so.

Shachar

Revision history for this message
Hibou57 (Yannick Duchêne) (yannick-duchene) wrote :

OK, I missed this point. Just that 12.04 is not two years out of date, it's an LTS, until 2017 (or may be LTS does not mean what I thought it means).

So I will get the source package for version 0.18 and try to compile it (if it does not fail).

Thanks anyway for your concern.

Revision history for this message
Hibou57 (Yannick Duchêne) (yannick-duchene) wrote :

If ever someone has the same issue as me on Ubuntu Precise, you can try to build it from source using CLang. I used `fakeroot‑ng` sources version 0.18-4 (don't forget to apply the patches!), and built it with CLang-3.4 (don't forget to set and export `CC` and `CXX` environment variable before running `./configure --prefix=$HOME/.local`), and it looks to be OK so far (just tried some quick tests).

I tried with GCC, but it failed, as it requires GCC 4.7 and Ubuntu 12.04 is stuck with GCC 4.6. The only way to go, is with latest available Clang.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.