Re: [HACKERS] strange segfault with 8.3.8

2009-12-10 Thread Filip Rembiałkowski
W dniu 7 grudnia 2009 17:43 użytkownik Greg Smith g...@2ndquadrant.comnapisał:

  Filip Rembiałkowski wrote:

 Dec  7 07:24:45 nsXX kernel: postgres[22481]: segfault at 7fda5e1d5000
 ip 7fda604553c3 sp 7fffe41faf28 error 4 in libc-2.9.so
 [7fda603d1000+168000]
 Dec  7 07:24:45 nsXX kernel: grsec: From XX.YY.ZZ.51: Segmentation
 fault occurred at 7fda5e1d5000 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 nsXX.ovh.net
 2.6.31.5-grsec--grs-ipv4-64 #2 SMP Thu Nov 5 12:36:20 UTC 2009
x86_64 GNU/Linux



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


[HACKERS] strange segfault with 8.3.8

2009-12-07 Thread Filip Rembiałkowski
hello,

from kernel log:

Dec  7 07:24:45 nsXX kernel: postgres[22481]: segfault at 7fda5e1d5000
ip 7fda604553c3 sp 7fffe41faf28 error 4 in libc-2.9.so
[7fda603d1000+168000]
Dec  7 07:24:45 nsXX kernel: grsec: From XX.YY.ZZ.51: Segmentation fault
occurred at 7fda5e1d5000 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.rembialkow...@gmail.com
http://filip.rembialkowski.net/


Re: [HACKERS] strange segfault with 8.3.8

2009-12-07 Thread Greg Smith

Filip Rembiałkowski wrote:
Dec  7 07:24:45 nsXX kernel: postgres[22481]: segfault at 
7fda5e1d5000 ip 7fda604553c3 sp 7fffe41faf28 error 4 in 
libc-2.9.so http://libc-2.9.so/[7fda603d1000+168000]
Dec  7 07:24:45 nsXX kernel: grsec: From XX.YY.ZZ.51: Segmentation 
fault occurred at 7fda5e1d5000 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 Smith2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
g...@2ndquadrant.com  www.2ndQuadrant.com