[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2014-08-04 Thread Ian Nicholson
For the record, this error occurs when I tried to run the default C++ project.  
Ubuntu is shipping a development environment that is broken for a common use 
case.  Is there some way to just disable ptrace so that I can build and run a 
project?  Maybe that could be set as default.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2014-05-13 Thread Zoltan Balogh
Following the discussion I am not sure if we as the distro can and will
fix this issue.

If you think it is a bug in the upstream code then please file a bug
against the upstream project. Or please suggest a doable change in the
Ubuntu release.

** Changed in: qtcreator (Ubuntu)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2014-03-26 Thread Geier
Thanks for your suggestions, omkar, but both are not acceptable fixes
for the end user.

Option 1 means running QtCreator and the spawned application as root,
which is frowned upon for good reasons. Debugging should work without
sudo.

Option 2 is already outlined in the link I posted in the original bug
submission, so it's nothing new. But it disables the security feature
for all application, which is also not desirable.

Even if option 1 or 2 were acceptable, it's certainly not acceptable
that the user has to change the system configuration by herself to get
debugging to work. It should work out of the box. So it's definitaly a
bug.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2014-03-25 Thread omkar ashok kulkarni
First of all it's not bug. It's for security purposes.

Some things about PTRACE:
1)The PTRACE system is used for debugging.  
2)With it, a single user process  can attach to any other dumpable process 
owned by the same user. A PTRACE scope of 0 is the more permissive mode. A 
scope of 1 limits PTRACE only to direct child processes.

This is the stuff from /etc/sysctl.d/10-ptrace.conf file.

So for successful debugging with Qt Creator you have two options:
Option 1:
1. Open Qt Creator with superuser privileges. For this open terminal type 
command sudo  -s , then enter password.
2.Then enter command qtcreator. 


Option 2:
1.Open terminal type sudo -s, then enter password.
2.Then go to directory /proc/sys/kernel/yama/ by using cd command.
3.In this directory open ptrace_scope file by using gedit ptrace_scope 
command. (You can use any editor to edit file I've used here gedit).
4.In this file default value is 1 , so change this value to 0.
5.Save this file and then close it.

Now you can surely do debugging in Qt Creator.

That's it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-11-17 Thread Max Beikirch
I confirm this behaviour.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-09-17 Thread Ian Nicholson
The solution by Simon K stops the ptrace error, but I then I would get prompted 
that: 
The debugger could not load the debugging helper library.
The debugging helper is used to nicely format the values of some Qt and 
Standard Library data types. It must be compiled for each used Qt version 
separately. In the Qt Creator Build and Run preferences page, select a Qt 
version, expand the Details section and click Build All. with options to open 
qt options, turn off helper usage, show details, and continue anyway.
If I selected continue anyway, the project appears to begin debugging, but 
does not execute.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-09-07 Thread Simon K
The ptrace error is a result of running your app in an terminal.

To be able to debug you could either deactivate the ptrace-restrictions or 
disable the terminal.
To disable the terminal you click:
 1. Projects (in the side menu between Debug and Packaging)
 2. Run (in the second line from the top, it says: Desktop Build _Run_)
 3. Empty the check box Run in terminal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-05-02 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: qtcreator (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-04-28 Thread Paulo Sequeira
Found this bug recorded upstream: https://bugreports.qt-
project.org/browse/QTCREATORBUG-3509

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qtcreator in Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-03-25 Thread Felix Geyer
** Changed in: qtcreator (Ubuntu)
   Status: Invalid = New

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qtcreator in Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-03-19 Thread Geier
** Description changed:

  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://www.deder.at/wordpress/?p=307
+ 
+ More info on the error cause:
+ https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace
  
  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
  ProcVersionSignature: Ubuntu 3.8.0-11.20-generic 3.8.2
  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)

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qtcreator in Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-03-19 Thread Felix Geyer
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.

** Changed in: qtcreator (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qtcreator in Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 1156674] Re: QtCreator: ptrace: Operation not permitted. in Debug mode

2013-03-19 Thread Geier
No.

As explained in my How to reproduce section, Debugging does *not* work
when you start the application from Qt Creator.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1156674

Title:
  QtCreator: ptrace: Operation not permitted. in Debug mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1156674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs