Debugging a crash on Linux / NVidia Jetson

#1

Hello all,
I’m debugging an app that crashes on my NVidia Nano with no errors reported in the console. The app compiles fine, but when I execute it, nothing happens, and the app crashes (i assume) and I see my command prompt again.

Can someone point me to where I can fine logs or other artifacts that can possibly reveal what’s happening and what is making the app crash, besides what’s in /var/log/syslog?

#2

Check dmesg, or the journal (sudo journalctl, or something similar)
Maybe it causes a coredump? I think coredumps are usually disabled by default - enable them with ulimit -c unlimited
Use coredumpctl and gdb to get a stacktrace. Not a pleasant job, but not too hard…

#3

Are you trying to compile it on a Jetson Nano?

I just got one, but it seems like maybe the compilation script needs a bit of a rewriting.
Not sure where to look for it…
How did you do it?

Found stuff here (Jetson TK1) and here.

Seems like the second one seem to be the one, as the Nano has a Armv8 and runs ubuntu 18.08.
Simple compilation give me the error : makefileCommon/config.shared.mk:86: *** recipe commences before first target. Stop.

Sorry if I’m hijacking the thread :sweat_smile:.

Best,

P

1 Like
#4

@jvcleave posted some instructions a while ago on how to compile for the nano. If i remember correctly the main thing is that the nano is arm64 so the libraries need to be recompiled using apothecary but there were also some minor changes required to the makefiles

2 Likes
#5

instructions are here:

1 Like
#6

perfect thanks, it worked.

++

#7

These are really great instructions @jvcleave — I expanded on them here and added how to get ofxKinect and ofxKinectV2 running: https://gist.github.com/madelinegannon/237733e6c114f156b31366f47c1f3d32

2 Likes