title: kernel - postgres segfault error 15 in libc-2.19.so
body: <p>Yesterday we had crash of PostgreSQL 9.5.14 running on Debian 8 (Linux xxxxxx 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64 GNU/Linux) - Segmentation fault. Database closed all connections and reinitialized itself staying ~1 minute in recovery mode.</p>
  
  <p>PostgreSQL log:</p>
  
  <blockquote>
    <p>2018-10-xx xx:xx:xx UTC [580-2] LOG:  server process (PID 16461) was
    terminated by signal 11: Segmentation fault</p>
  </blockquote>
  
  <p>kern.log:</p>
  
  <blockquote>
    <p>Oct xx xx:xx:xx xxxxxxxx kernel: [117977.301353] postgres[16461]:
    segfault at 7efd3237db90 ip 00007efd3237db90 sp 00007ffd26826678 error
    15 in libc-2.19.so[7efd322a2000+1a1000]</p>
  </blockquote>
  
  <p>According to libc documentation (<a href="https://support.novell.com/docs/Tids/Solutions/10100304.html" rel="nofollow noreferrer">https://support.novell.com/docs/Tids/Solutions/10100304.html</a>) error code 15 means: 
  <code>NX_EDEADLK      15  resource deadlock would occur</code> - which does not tell me much. </p>
  
  <p>Could you tell me please if we can do something to avoid this problem in the future? Because this server is of course production one. 
  All packages are up to date currently. Upgrade of PG is unfortunately not the option. Server runs on Google Compute Engine.</p>