Comments (13)
This problem occurs when PINCE gets run with gksu. It may look retarded but running gksu sudo python3 PINCE.py
solves the issue for me, or you may try kdesudo instead, it works fine too. Did running gksu sudo python3 PINCE.py
solve the issue for you as well?
Also, it looks like there are shittons of problems with debian other than this problem. I'll investigate this further when I have got time.
from pince.
It solves the issue, but there is another one:
&"source /tmp/PINCE-connection/2016/gdb_command.txt\n"
&"/tmp/PINCE-connection/2016/gdb_command.txt:1: Error in sourced command file:\n"
&"Undefined command: \"pince-read-multiple-addresses\". Try \"help\".\n"
^error,msg="/tmp/PINCE-connection/2016/gdb_command.txt:1: Error in sourced command file:\nUndefined command: \"pince-read-multiple-addresses\". Try \"help\"."
Traceback (most recent call last):
File "PINCE.py", line 324, in update_address_table_manually
new_table_contents = GDB_Engine.read_multiple_addresses(table_contents)
File "/usr/share/PINCE/GDB_Engine.py", line 482, in read_multiple_addresses
recv_with_file=True)
File "/usr/share/PINCE/GDB_Engine.py", line 124, in send_command
output = pickle.load(open(recv_file, "rb"))
EOFError: Ran out of input
Content of /tmp/PINCE-connection/2016/gdb_command.txt:
pince-read-multiple-addresses
It also stopped the attached process.
from pince.
I just encountered the error above while testing. It happens because there's an import error in GDBCommandExtensions.py, which denies the use of custom gdb commands.
Btw, I realized that you could just use gksudo
instead of gksu sudo
. So it's just gksudo python3 PINCE.py
now
from pince.
The solution to import error is this:
1-)Locate the psutils package by running pip3 show psutil
2-)import psutil explicitly in SysUtils
So, I should write a bash script I guess... Do you have a better idea other than using regex to extract location information from output? I used regex so much in the project that I'm sick of it, there should be a more elegant solution to this problem.
from pince.
Sadly I don't.
This means that you have to import the package including the path to it?
from pince.
I finally found the real reason of the error above. I appended print(sys.path)
to SysUtils and saw that GDB imports only python 2.7 related libraries. So in debian 8, if you install gdb within default package, it gets installed with python2 support, not python3. So, there's no option other than to compile GDB from source with python3 support. I'll update this as soon as I compile it successfully.
from pince.
It's really strange the fact that Debian doesn't have a GDB package with Python 3 support.
from pince.
Yeah. Btw, you don't actually have to compile gdb with gcc-6, gdb needs libcc1.so
from gcc-6 to make compile command work. But PINCE doesn't use the compile command yet. So, you may want to compile gdb with default gcc version instead of gcc-6. I'm saying this because I've completely ruined my virtual machine while trying to install gcc and gdb from testing repos 😄 Time to stop trying to avoid compiling, compiling is the safest way to achieve functionality.
from pince.
Today I read on StackOverflow of a user that ruined Ubuntu in the same way you did... touching libc is dangerous, never mess with it!
I nearly ruined my virtual machine too one day, because I added the Ubuntu repository to sources.list to download a package that was not available on Debian; wonder what happened when I runned apt-get upgrade
😆
Luckily I fixed libc by taking the broken files from another Debian system, you could try to do the same 😉
from pince.
I finally successfully compiled gdb&installed PINCE on debian. Updated the instructions, just follow them. PINCE no longer requires gcc-6, as I've explained before, there's no need for the compile command yet. I'll think of something when compile command is needed, there should be another solution to getting the libcc1.so
other than installing/compiling the entire gcc-6
from pince.
I still can't believe that all of the problems are gone after a clean compiling&installation season 😄. With this commit PINCE now supports Debian 8.5
from pince.
I can confirm, everything works fine now 😄
from pince.
Then closing this issue for once and all
from pince.
Related Issues (20)
- Pince is screwing up with locals (decimal numeric values are not parsed correcty) HOT 4
- Issues with decreasing search after unknown search HOT 3
- UI Dark mode HOT 2
- cant start PINCE from terminal HOT 3
- Auto assembler like in Cheat Engine HOT 5
- Back again, opensuse 15.6 HOT 3
- Issues with proton/wine games HOT 5
- Game freezes when attach (no signal) HOT 6
- distorm3 import error HOT 9
- Unable to install an update on Arch Linux HOT 9
- Feature request: Notes to record and save bookmarked codes HOT 9
- Feature Request: Not option when "exact scanning" HOT 14
- Error gdb after selecting a process HOT 11
- Problem with scan in "unknown value" mode HOT 2
- Bug: String or AOB value types when selected still show incompatible scan types HOT 1
- Unable to stop the process after a trace session
- Absolute gdb path by default is unnecessary HOT 2
- Ubuntu 24.04 ModuleNotFoundError: No module named 'pip' and appimage issue HOT 6
- [Feature request] Add the ability to limit memory scanning to a specific memory range HOT 2
- Add pattern scanning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pince.