Comments (3)
I've had the same problem, running locally without Docker, with PyPanda installed from source Why is dlerror null? The error originates in callbacks.c:198, with the call to dlopen (see below). I'm not familiar enough with dlopen to understand the implications of using those three flags together:
Line 198 in 5fb3952
from panda.
I've been running into this problem as well when running locally in Ubuntu 22 installed from source.
As a small test of dlopen
, the use of the RTLD_NOLOAD
flag means that if it is the first time libpanda-x86_64.so
is being loaded, then dlopen
will return NULL.
As an example POC:
#include <stdio.h>
#include <dlfcn.h>
int main() {
void * rv = dlopen("/usr/local/lib/python3.10/dist-packages/pandare/data//x86_64-softmmu/libpanda-x86_64.so", RTLD_LAZY | RTLD_NOLOAD | RTLD_GLOBAL);
void * rv2 = dlopen("/usr/local/lib/python3.10/dist-packages/pandare/data//x86_64-softmmu/libpanda-x86_64.so", RTLD_LAZY | RTLD_LOCAL);
void * rv3 = dlopen("/usr/local/lib/python3.10/dist-packages/pandare/data//x86_64-softmmu/libpanda-x86_64.so", RTLD_LAZY | RTLD_NOLOAD | RTLD_GLOBAL);
printf("rv = %p\n", rv);
printf("rv2 = %p\n", rv2);
printf("rv3 = %p\n", rv3);
return 0;
}
$ gcc test_dlopen.c
$ ./a.out
rv = (nil)
rv2 = 0x55ac517ea300
rv3 = 0x55ac517ea300
from panda.
My workaround right now is just to use the Panda
API like in run_dbg.py instead of using snake_hook
.
from panda.
Related Issues (20)
- Volatility functionality broken HOT 9
- panda.get_system_memory() does not work HOT 2
- physical_memory_read() segmentation fault if discontinous MMIO region
- dump-guest-memory with paging is broken
- OSI_Linux Assertion `can_read_current(cpu) && "Couldn't find current task struct at first syscall"' failed. HOT 2
- Record replay breaks with virtio
- Invalid path in pandare.qcows HOT 2
- Rewrite panda_expect.py
- Wrong Repo
- Windows osi: program name resolution broken on current dev tree HOT 1
- gdb plugin: Remote communication error. Target disconnected.: Connection reset by peer. HOT 1
- memorymap: parameters look like ranges instead of lists
- Definitive command line args to get networking 'working' with docker container. HOT 2
- crash on memory-read in syscalls_logger pandalog_write_entry HOT 1
- How can I forward the port of the virtual machine? HOT 6
- How can I use panda to interact with a program. HOT 3
- race condition in python callback function? HOT 2
- some suggestions
- How to get the number of instructions in a replay file in Python Panda? HOT 1
- "ValueError: Unsupported ANSI command ?" in pandare/panda_expect.py
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 panda.