Bug 337531

Summary: frameworks (pn5): gdb in dr. konqi doesnt work
Product: [Applications] drkonqi Reporter: Simon Andric <simonandric5>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: david.narvaez, mail, simonandric5
Priority: NOR    
Version: 2.1.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Simon Andric 2014-07-17 08:46:54 UTC
whello!

when in project-neon-5 i try to debug a crash in gdb i get the following output in konsole, which dr. konqi opens:

GNU gdb (Ubuntu 7.7.1-0ubuntu4) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/project-neon5/bin/plasmashell...Reading symbols from /usr/lib/debug//opt/project-neon5/bin/plasmashell...done.
done.
Attaching to program: /opt/project-neon5/bin/plasmashell, process 2664
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
(gdb) 


-----------------------------

nice day!

Simon :)
Comment 1 Simon Andric 2014-07-17 08:48:05 UTC
what i wanted to sday is: dr.konqi DOES NOT open as root, and/or you click on "debugi n gdb" the window for passowrd to enter root privledges should open but doesnt...

nice day
Simon:)
Comment 2 David E. Narvaez 2014-08-27 05:14:58 UTC
(In reply to Simon Andric from comment #1)
> what i wanted to sday is: dr.konqi DOES NOT open as root, and/or you click
> on "debugi n gdb" the window for passowrd to enter root privledges should
> open but doesnt...

Why would drkonqi run as root?
Comment 3 Simon Andric 2014-08-27 09:29:56 UTC
hello!

if i quote my first comment:

...Attaching to program: /opt/project-neon5/bin/plasmashell, process 2664
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted....


i believe gdb needs for a root privledge.... but never asks to enter the password... and thats why then gdb doesnt process the error...

maybe im mistaken.... but the message seemed to me that way...


thank you for your reply!

nice day

simon
Comment 4 David E. Narvaez 2014-08-27 12:53:25 UTC
(In reply to Simon Andric from comment #3)
> hello!
> 
> if i quote my first comment:
> 
> ...Attaching to program: /opt/project-neon5/bin/plasmashell, process 2664
> Could not attach to process.  If your uid matches the uid of the target
> process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
> again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
> ptrace: Operation not permitted....
> 
> 
> i believe gdb needs for a root privledge.... 

This is specific to your distro:

http://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process