Re: 9.4 beta1 crash on Debian sid/i386 - Mailing list pgsql-hackers

From Christoph Berg
Subject Re: 9.4 beta1 crash on Debian sid/i386
Date
Msg-id 20140518213553.GA3911@msgid.df7cb.de
Whole thread Raw
In response to Re: 9.4 beta1 crash on Debian sid/i386  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: 9.4 beta1 crash on Debian sid/i386
List pgsql-hackers
Re: Andres Freund 2014-05-18 <20140518091445.GU23662@alap3.anarazel.de>
> Did you measure how large the stack actually was when you got the
> SIGBUS? Should be possible to determine that by computing the offset
> using some local stack variable in one of the depeest stack frames.

Looking at /proc/*/maps, the stack is ffb38000-ffd1e000 = 1944kB for a
process that just got SIGBUS. This seems to be in line with
stack_base_ptr = 0xffd1c317 and the fcinfo address in

#0  hashname (fcinfo=fcinfo@entry=0xffb38024)   at
/build/postgresql-9.4-4lNBaG/postgresql-9.4-9.4~beta1/build/../src/backend/access/hash/hashfunc.c:143

(Things work fine when I set max_stack_depth = '1900kB'.)

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: %d in log_line_prefix doesn't work for bg/autovacuum workers
Next
From: Tom Lane
Date:
Subject: Re: 9.4 beta1 crash on Debian sid/i386