QtCreator: "ptrace: Operation not permitted." in Debug mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Debugging with Qt Creator does not work. Upon entering debug mode, the error message in the attached screenshot is presented (translation: ptrace: Operation not permitted). The associated console window stays open without any possibility of interaction.
More info and a temporary fix for users can be found here: http://
More info on the error cause: https:/
How to reproduce:
- In QtCreator, create a new "Plain C" or "Plain C++" project.
- Set a breakpoint in the generated main function
- click the Debug-button in the lower left bar.
Expected: Debug mode opens with the ability to set breakpoints, edit watches and step through the source code.
What happens: See attached screenshot. Debugging doesn't work.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: qtcreator 2.7.0~beta-0ubuntu2
ProcVersionSign
Uname: Linux 3.8.0-11-generic x86_64
ApportVersion: 2.9.1-0ubuntu1
Architecture: amd64
Date: Mon Mar 18 16:18:47 2013
InstallationDate: Installed on 2013-03-08 (9 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130308)
MarkForUpload: True
SourcePackage: qtcreator
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
summary: |
- QtCreator: "ptrace: operation not allowed" in Debug mode + QtCreator: "ptrace: Operation not permitted." in Debug mode |
description: | updated |
Changed in qtcreator (Ubuntu): | |
status: | Invalid → New |
This is a security feature not a bug.
The wiki page you linked has instructions on how to disable it if you wish to do so.
Debugging works when you start the application from Qt Creator as opposed to attaching it to an already running process.