Обсуждение: strange segfault with 8.3.8

Поиск
Список
Период
Сортировка

strange segfault with 8.3.8

От
Filip Rembiałkowski
Дата:
hello,

from kernel log:

Dec  7 07:24:45 nsXXXXXX kernel: postgres[22481]: segfault at 7fda5e1d5000 ip 00007fda604553c3 sp 00007fffe41faf28 error 4 in libc-2.9.so[7fda603d1000+168000]
Dec  7 07:24:45 nsXXXXXX kernel: grsec: From XX.YY.ZZ.51: Segmentation fault occurred at 00007fda5e1d5000 in /usr/lib/postgresql/8.3/bin/postgres[postgres:22481] uid/euid:103/103 gid/egid:114/114, parent /usr/lib/postgresql/8.3/bin/postgres[postgres:29857] uid/euid:103/103 gid/egid:114/114

This is on 8.3.8, latest Ubuntu distribution, server under quite heavy load.

afterwards we had some corrupted pages ("ERROR: compressed data is corrupt").

any clues / directions welcome.



--
Filip Rembiałkowski
JID,mailto:filip.rembialkowski@gmail.com
http://filip.rembialkowski.net/

Re: strange segfault with 8.3.8

От
Greg Smith
Дата:
Filip Rembiałkowski wrote:
Dec  7 07:24:45 nsXXXXXX kernel: postgres[22481]: segfault at 7fda5e1d5000 ip 00007fda604553c3 sp 00007fffe41faf28 error 4 in libc-2.9.so[7fda603d1000+168000]
Dec  7 07:24:45 nsXXXXXX kernel: grsec: From XX.YY.ZZ.51: Segmentation fault occurred at 00007fda5e1d5000 in /usr/lib/postgresql/8.3/bin/postgres[postgres:22481] uid/euid:103/103 gid/egid:114/114, parent /usr/lib/postgresql/8.3/bin/postgres[postgres:29857] uid/euid:103/103 gid/egid:114/114

This is on 8.3.8, latest Ubuntu distribution, server under quite heavy load.

afterwards we had some corrupted pages ("ERROR: compressed data is corrupt").
Random segfaults only under heavy load with corrupted pages afterwards normally means bad RAM.  I'd suggest a round of memtest86+ on the system if it's PC hardware.

-- 
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com

Re: strange segfault with 8.3.8

От
Filip Rembiałkowski
Дата:

W dniu 7 grudnia 2009 17:43 użytkownik Greg Smith <greg@2ndquadrant.com> napisał:
Filip Rembiałkowski wrote:
Dec  7 07:24:45 nsXXXXXX kernel: postgres[22481]: segfault at 7fda5e1d5000 ip 00007fda604553c3 sp 00007fffe41faf28 error 4 in libc-2.9.so[7fda603d1000+168000]
Dec  7 07:24:45 nsXXXXXX kernel: grsec: From XX.YY.ZZ.51: Segmentation fault occurred at 00007fda5e1d5000 in /usr/lib/postgresql/8.3/bin/postgres[postgres:22481] uid/euid:103/103 gid/egid:114/114, parent /usr/lib/postgresql/8.3/bin/postgres[postgres:29857] uid/euid:103/103 gid/egid:114/114

This is on 8.3.8, latest Ubuntu distribution, server under quite heavy load.

afterwards we had some corrupted pages ("ERROR: compressed data is corrupt").
Random segfaults only under heavy load with corrupted pages afterwards normally means bad RAM.  I'd suggest a round of memtest86+ on the system if it's PC hardware.

Just a note for all other who may encouter this problem:

This was not a vanilla Ubuntu - this was vendor-modified version, witch custom grsecurity patched kernel and probably with custom patched libc.

# uname -a
Linux nsXXXXXX.ovh.net 2.6.31.5-grsec-xxxx-grs-ipv4-64 #2 SMP Thu Nov 5 12:36:20 UTC 2009 x86_64 GNU/Linux



--
Filip Rembiałkowski
JID,mailto:filip.rembialkowski@gmail.com
http://filip.rembialkowski.net/