You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I am working on the first PR to print basic extent info, got delayed due to a health issue. Will post my current dev environment in case anyone wants to catch up along with all the resources I found useful.
The text was updated successfully, but these errors were encountered:
cd "$(dirname "$0")"
filename=test
rm -f $filename
gcc -g -O0 $filename.cpp -o $filename `jemalloc-config --libdir`/libjemalloc.a `jemalloc-config --libs`
# if argument y is passed if n then run simple else nothing
if [ "$1" == "y" ]; then
gdb -ex run --args $filename
elif [ "$1" == "n" ]; then
./$filename
fi
Sample test file:
#include <stdlib.h>
#include <iostream>
#include <jemalloc/jemalloc.h>
void breakhere(){}
int main(void)
{
char *block;
for(int i=0; i<(4096/8); i++){
block = (char *)malloc(8);
for (int i = 0; i < 8; i++){
block[i] = 'A' + (i % 26);
}
// breakhere();
}
breakhere();
return 0;
}
Looks like you're off to a great start 👍
Don't sweat the small delay, we're technically still in the community bonding period.
If you open a draft PR with your basic setup (jemalloc installed via setup-dev.sh, test binary etc.) I can clone that so we're on the same page.
Opening this issue to discuss and keep track of development for jemalloc support in pwndbg. This project is a part of my GSoC 24 proposal.
Original Details of the project: #2014 (comment)
Currently I am working on the first PR to print basic extent info, got delayed due to a health issue. Will post my current dev environment in case anyone wants to catch up along with all the resources I found useful.
The text was updated successfully, but these errors were encountered: