Project

General

Profile

Actions

Feature #4212

closed

TTCN3 docker containers: tell glibc to print segfault output to stderr

Added by pespin over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/18/2019
Due date:
% Done:

100%

Spec Reference:

Description

According to links below, glibc has a feature to log crash related output to stderr instead of /dev/tty (which in the case of running udner docker gets lost afaiu). The feature can be enabled by env var: LIBC_FATAL_STDERR_=1

The idea is to enable that var in docker containers we use to run osmo-* during TTCN3 tests (and unit tests) in order to be able to easily see that the program is crashing, and hopefully also get a backtrace.

We should also enable that in osmo-gsm-tester.

[1] https://stackoverflow.com/a/32057301
[2] https://stackoverflow.com/questions/32056387/catching-libc-error-messages-redirecting-from-dev-tty
[3] https://stackoverflow.com/questions/4290336/how-to-redirect-runtime-errors-to-stderr

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)