Get crash dump for .NET CORE application
Posted: Tue Jul 24, 2018 6:26 am
I have an console application that just open 8 tcp connections for read and write, the data rate for each connection is about 200Byte/second, in most time it runs well until like 7 or 8 hours later ,it randomly crashes, I have attached the with logging but in these cases it never get called, and I have seem some extra info shown in console right at application crashes and quit, they are:
but I've never see my application created that dump though crashes happens everyday, also, I've even tried manually kill myApp to simulate a crash by:, but still no luck to see any dump files.
Later, I've add my app to daemon mode, and this time I also can see sth in syslog:
Jul 17 08:30:51 raspberrypi systemd[1]: myApp.service: Main process exited, code=killed, status=6/ABRT
Jul 17 08:30:51 raspberrypi systemd[1]: myApp.service: Unit entered failed state.
Jul 17 08:30:51 raspberrypi systemd[1]: myApp.service: Failed with result 'signal'.
Jul 17 08:31:01 raspberrypi systemd[1]: myApp.service: Service hold-off time over, scheduling restart.
But still, never see any dump files generated at path.
Could anyone help?
Code: Select all
AppDomain.CurrentDomain.UnhandledExceptionand./myApp: relocation error: /pathToMyApp/libclrjit.so: symbol pthread_, version GLIBC_2.4 not defined in file libpthread.so.0 with link time reference
andBus error
for further debug, I've then followed https://sigquit.wordpress.com/2009/03/1 ... e-pattern/ to enable core dumps, what I've done:Aborted
for test, I've keyed in command:$> mkdir -p /tmp/cores
$> chmod a+rwx /tmp/cores
$> echo "/tmp/cores/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
I can see dumps created at /tmp/cores/core.bash.1284.raspberrypi.1532411173$> kill -s SIGSEGV $$
but I've never see my application created that dump though crashes happens everyday, also, I've even tried manually kill myApp to simulate a crash by:
Code: Select all
kill [i]myAppProcessId[/i]Later, I've add my app to daemon mode, and this time I also can see sth in syslog:
Jul 17 08:30:51 raspberrypi systemd[1]: myApp.service: Main process exited, code=killed, status=6/ABRT
Jul 17 08:30:51 raspberrypi systemd[1]: myApp.service: Unit entered failed state.
Jul 17 08:30:51 raspberrypi systemd[1]: myApp.service: Failed with result 'signal'.
Jul 17 08:31:01 raspberrypi systemd[1]: myApp.service: Service hold-off time over, scheduling restart.
But still, never see any dump files generated at path.
Could anyone help?