-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coredump when run the example #40
Comments
Hi @louishust, Case: Are we speeking about the example from https://memtt.github.io/numaprof/example.html ? I tried on my laptop and do not see the issue (ubuntu 22.04). More arch infos Can you give more infos on your setup so I can try to reproduce. Your kernel is a bit more recent than mine what distribution are you using ? What memory architecture ? Cpu version, NUMA configuration ? If you want to GDB In case you have time, you can patch the -${PINTOOL_PIN} -t ${NUMAPROF_PREFIX}/lib/libnumaprof-pintool.so -- "$@" &
+${PINTOOL_PIN} -appdebug -t ${NUMAPROF_PREFIX}/lib/libnumaprof-pintool.so -- "$@" & And then after launching connect via GDB to the GDB server launched by pintool:
|
Hi @svalat , I use the Basic OpenMP example @ https://memtt.github.io/numaprof/example.html cpu info:
NUMA INFO:
OS INFO:
|
I tried to debug it. The numaprof session:
and the gdb session:
The core debug:
|
Hi, numaprof -V ./omp-loop Is it starting to run the program ? Or, is the issue happening during the topology loading ? |
|
Hum, Can I ask you to try adding some printfs in the program you run (the example) to see at which stage it crashed ? Can you also build the example without openmp and tells me if it is working with a sequential example ? |
I modified the omp-loop.cpp source file like below:
Then i run it again with openmp:
Then run it without openmp
|
I pushed a more verbose version in branch git checkout debug/verbose In case, you can also make a more verbose run (maybe a bit too much) by printing each read/write by de-commenting: -//#define NUMAPROF_TRACE_RW
+#define NUMAPROF_TRACE_RW In If you make this most verbose run, send me just the last ~10 lines it is enougth. |
|
Damn, If you can run again. Sorry for the inconvenience, I need to find a way to get this stack trace with symbols it will be far simpler :(. |
?? Did you What is wearied is that now you have more Read/Write messages, which says the bug happens a bit randomly. |
Damn, i miss the last commit you made! |
Opps, sorry, I forgot to answer beginning of the week. |
Hum, sorry, I cannot access the log file. Is it too big for github ? If it is you can compress it or keep only the head and tail of the fail: logfile=20221202.log
smaller=20221202-summary.log
head -n 1000 $logfile > $smaller
echo "=========== TRUNCATE ===========" >> $smaller
tail -n 250 $logfile >> $smaller |
…de is -1 (working on #40) Currently the -1 is multiplied by the number of nodes which make us goind outside of the array. We need to return strictly -1 is one of the entering numa value is -1 and not multiply.
Ah, yes, don't know why by chance it didn't crashed on some previous tests I made with similar servers. |
It works! But I can not view it with browser.
I can not login with username : greatdb, password: lemYEq3Ce/yj6 |
Cool for the profiling. For the GUI, did you used the user/password which was asked in the terminal the first time you launched the numaprof-webview command ? In case you can change it or add another users via:
|
When run the example: get the coredump
The text was updated successfully, but these errors were encountered: