I have a problem using screen command on Ubuntu 16.04. I am working on a C++ project, and using servers with Ubuntu to simulate my code. Segmentation faults started to appear after updating from Ubuntu 14.04 to 16.04. When trying to simulate the same code on different servers with Ubuntu 14 and 16.04, a segmentation fault appears on the server with Ubuntu 16.04 after a certain time (usually 12 hours of simulation) knowing that no problems show up at Ubuntu 14.04. In addition, the same simulation can be conducted on Ubuntu 16.04 without any problem if the simulation command is directly operated on the shell terminal without using the screen command. I am wondering if there is any timeout option for the screen command in Ubuntu 16.04 that stops my simulations.
We found a solution, I post if it can help someone with the same kind of problem.
The problem was kerberos ticket expiration within the screen or tmux session. The kerberos ticket was use to mount nfsv4 folder where some file were written by the program, so after 12hrs the ticket expired and the program tried to write in unreachable file and get a segfault. nfsv4 was used for our server on ubuntu 16.04, nfsv3 on ubuntu 14.04...
The solution, in the screen/tmux session, lauch the program with the following command : krenew -K 60 ./a.out