pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: PG10 Segfault 11 on default Ubuntu 16.04 installs
6+ messages / 4 participants
[nested] [flat]
* Re: PG10 Segfault 11 on default Ubuntu 16.04 installs
@ 2017-11-08 11:50 Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 12:59 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Amit Kapila <amit.kapila16@gmail.com>
2017-11-08 13:30 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
0 siblings, 2 replies; 6+ messages in thread
From: Stefan Tzeggai @ 2017-11-08 11:50 UTC (permalink / raw)
To: pgsql-bugs
Hi
The segfaults thrown when I run my application on PG10 got worse. I have
found more segfaults even when max_parallel_workers_per_gather is left
default.
I have been able to create a 6Mb PG10 dump that I can be imported into a
vigin PG10 install on Ubuntu 16.04 and I have a query that segfaults
PG10 100% (on my mashines at least).
The dataset has been wiped of sensitive data, but it still should not go
public. I will send a password by email to all PG-hackers interested.
https://oc.empirica-systeme.de/index.php/s/0XLKObTrUjRlCV7
The dump contains a
* a table with lots of columns called "basedata", 56k rows
* a mat view created as select * from basedata called "mv", 56k rows
* Lots of btree indexes on most of the mv-colums
I do the following on my laptop running latest Ubuntu 16.04 with the
PG-APT-Repository:
#!PURGING ALL PG STUFF HERE TO GET A CLEAN START!!
sudo apt-get purge postgresql-9.6 postgresql-10
postgresql-10-postgis-2.4-scripts postgresql-10-postgis-2.4
sudo rm /etc/postgresql -rf
# Installing 10.0-1.pgdg16.04+1
sudo apt install postgresql-10
sudo su postgres
dropdb analyst
createdb analyst
SELECT count(1) FROM mv WHERE
((nachfrageart IN (1)) AND (oadr_gkz IN (6611000) OR oadr_kkz IN
(3152,5111,5113,5158,5162,5314,5315,5362,5378,5382,5515,5711,6411,6412,6413,6414,6431,6432,6433,6434,6435,6436,6438,6439,6440,6531,6532,6534,6535,6631,6632,6633,6634,6635,6636,7315,8125,8215,8221,8222,9663))
AND (objekttyp_grob IN (1,2)) AND (startdate>='2012-01-01' OR enddate IS
NULL OR enddate>='2012-01-01'))
OR
((nachfrageart IN (0)) AND (nutzungsart IN (0)) AND (oadr_gkz IN
(6611000,8121000,8212000) OR oadr_kkz IN
(3152,5111,5113,5158,5162,5314,5315,5362,5378,5382,5515,5711,6411,6412,6413,6414,6431,6432,6433,6434,6435,6436,6438,6439,6440,6531,6532,6534,6631,6633,7315,8125,8221,8222,9663))
AND (objekttyp_grob IN (1,2,3)) AND (startdate>='2012-01-01' OR enddate
IS NULL OR enddate>='2012-01-01'));
100% of the times segfault when running above query. Tested on thrwew
Ubuntu 16.04 servers and one Ubuntu 16.04 Desktop.
Where data comes from: The data is created on a PG9.6 mashine daily,
dumped, and imported into PG10. The whole dataflow is stable with PG9.6.
I have seen the problem with every fresh dataset.
I hope this finally makes the bug reproducable to you. If it does not
segfault on your mashine, please try to increase
max_parallel_workers_per_gather to 5.
I am very sorry that I didn't test PG10 earlier when it was beta. I
guess the current bughunt makes it more likely that I will test PG11
beta with my application. Promised!
Greetings,
Steve
Am 25.10.2017 um 22:41 schrieb Tom Lane:
> Stefan Tzeggai <tzeggai@empirica-systeme.de> writes:
>> I also tried to get a sensible stack trace. I attached 9 gdb to all
>> postgres-pids and when I triggered the crash, two of the gdb had some
>> output and produced something on 'bt'. Attached..
>
> Those look like normal operation --- SIGUSR1 isn't a crash condition,
> it's what PG normally uses to wake up a sleeping process. If you
> want to attach gdb before provoking the crash, you need to tell it
> to ignore SIGUSR1 (I think "handle SIGUSR1 pass nostop noprint"
> is the right incantation).
>
> It might be easier to enable core files ("ulimit -c unlimited" before
> starting the postmaster) and then gdb the core files.
>
>> If I would be able to dump the relevant data from my db and I would be
>> able to reproduce the crash with it on a fresh PG10 install - Would
>> anyone have time to look at it? I guess its would no more than 50Mb...
>
> Sure, I or somebody else would look at it.
>
> regards, tom lane
>
>
--
Stefan Tzeggai
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: PG10 Segfault 11 on default Ubuntu 16.04 installs
2017-11-08 11:50 Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
@ 2017-11-08 12:59 ` Amit Kapila <amit.kapila16@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Amit Kapila @ 2017-11-08 12:59 UTC (permalink / raw)
To: Stefan Tzeggai <tzeggai@empirica-systeme.de>; +Cc: pgsql-bugs
On Wed, Nov 8, 2017 at 5:20 PM, Stefan Tzeggai
<tzeggai@empirica-systeme.de> wrote:
> Hi
>
> The segfaults thrown when I run my application on PG10 got worse. I have
> found more segfaults even when max_parallel_workers_per_gather is left
> default.
>
> I have been able to create a 6Mb PG10 dump that I can be imported into a
> vigin PG10 install on Ubuntu 16.04 and I have a query that segfaults
> PG10 100% (on my mashines at least).
>
> The dataset has been wiped of sensitive data, but it still should not go
> public. I will send a password by email to all PG-hackers interested.
>
Can you share the password with me? My guess is that this is related
to Parallel Bitmap Heap Scan as that is a newly introduced feature in
PG10 and the previous email shows that in the plan.
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: PG10 Segfault 11 on default Ubuntu 16.04 installs
2017-11-08 11:50 Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
@ 2017-11-08 13:30 ` Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 15:15 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Dilip Kumar <dilipbalaut@gmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Tzeggai @ 2017-11-08 13:30 UTC (permalink / raw)
To: pgsql-bugs
Sorry, I missed a line:
> # Installing 10.0-1.pgdg16.04+1
> sudo apt install postgresql-10
> sudo su postgres
> dropdb analyst
> createdb analyst
AND THEN pg_restore -U postgres -v -d analyst -Fc
dumpSegfaultSmaller.backup
Sorry
Am 08.11.2017 um 12:50 schrieb Stefan Tzeggai:
> Hi
>
> The segfaults thrown when I run my application on PG10 got worse. I have
> found more segfaults even when max_parallel_workers_per_gather is left
> default.
>
> I have been able to create a 6Mb PG10 dump that I can be imported into a
> vigin PG10 install on Ubuntu 16.04 and I have a query that segfaults
> PG10 100% (on my mashines at least).
>
> The dataset has been wiped of sensitive data, but it still should not go
> public. I will send a password by email to all PG-hackers interested.
>
> https://oc.empirica-systeme.de/index.php/s/0XLKObTrUjRlCV7
>
> The dump contains a
> * a table with lots of columns called "basedata", 56k rows
> * a mat view created as select * from basedata called "mv", 56k rows
> * Lots of btree indexes on most of the mv-colums
>
> I do the following on my laptop running latest Ubuntu 16.04 with the
> PG-APT-Repository:
>
> #!PURGING ALL PG STUFF HERE TO GET A CLEAN START!!
> sudo apt-get purge postgresql-9.6 postgresql-10
> postgresql-10-postgis-2.4-scripts postgresql-10-postgis-2.4
> sudo rm /etc/postgresql -rf
>
> # Installing 10.0-1.pgdg16.04+1
> sudo apt install postgresql-10
> sudo su postgres
> dropdb analyst
> createdb analyst
>
>
> SELECT count(1) FROM mv WHERE
> ((nachfrageart IN (1)) AND (oadr_gkz IN (6611000) OR oadr_kkz IN
> (3152,5111,5113,5158,5162,5314,5315,5362,5378,5382,5515,5711,6411,6412,6413,6414,6431,6432,6433,6434,6435,6436,6438,6439,6440,6531,6532,6534,6535,6631,6632,6633,6634,6635,6636,7315,8125,8215,8221,8222,9663))
> AND (objekttyp_grob IN (1,2)) AND (startdate>='2012-01-01' OR enddate IS
> NULL OR enddate>='2012-01-01'))
> OR
> ((nachfrageart IN (0)) AND (nutzungsart IN (0)) AND (oadr_gkz IN
> (6611000,8121000,8212000) OR oadr_kkz IN
> (3152,5111,5113,5158,5162,5314,5315,5362,5378,5382,5515,5711,6411,6412,6413,6414,6431,6432,6433,6434,6435,6436,6438,6439,6440,6531,6532,6534,6631,6633,7315,8125,8221,8222,9663))
> AND (objekttyp_grob IN (1,2,3)) AND (startdate>='2012-01-01' OR enddate
> IS NULL OR enddate>='2012-01-01'));
>
> 100% of the times segfault when running above query. Tested on thrwew
> Ubuntu 16.04 servers and one Ubuntu 16.04 Desktop.
>
> Where data comes from: The data is created on a PG9.6 mashine daily,
> dumped, and imported into PG10. The whole dataflow is stable with PG9.6.
> I have seen the problem with every fresh dataset.
>
> I hope this finally makes the bug reproducable to you. If it does not
> segfault on your mashine, please try to increase
> max_parallel_workers_per_gather to 5.
>
> I am very sorry that I didn't test PG10 earlier when it was beta. I
> guess the current bughunt makes it more likely that I will test PG11
> beta with my application. Promised!
>
> Greetings,
> Steve
>
>
> Am 25.10.2017 um 22:41 schrieb Tom Lane:
>> Stefan Tzeggai <tzeggai@empirica-systeme.de> writes:
>>> I also tried to get a sensible stack trace. I attached 9 gdb to all
>>> postgres-pids and when I triggered the crash, two of the gdb had some
>>> output and produced something on 'bt'. Attached..
>>
>> Those look like normal operation --- SIGUSR1 isn't a crash condition,
>> it's what PG normally uses to wake up a sleeping process. If you
>> want to attach gdb before provoking the crash, you need to tell it
>> to ignore SIGUSR1 (I think "handle SIGUSR1 pass nostop noprint"
>> is the right incantation).
>>
>> It might be easier to enable core files ("ulimit -c unlimited" before
>> starting the postmaster) and then gdb the core files.
>>
>>> If I would be able to dump the relevant data from my db and I would be
>>> able to reproduce the crash with it on a fresh PG10 install - Would
>>> anyone have time to look at it? I guess its would no more than 50Mb...
>>
>> Sure, I or somebody else would look at it.
>>
>> regards, tom lane
>>
>>
>
--
empirica-systeme GmbH
Stefan Tzeggai
Brunsstr. 31
72074 Tübingen
email tzeggai@empirica-systeme.de
phone +49 7071 6392922
mobile +49 176 40 38 9559
"Wer nichts zu verbergen hat, braucht auch keine Hose!"
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: PG10 Segfault 11 on default Ubuntu 16.04 installs
2017-11-08 11:50 Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 13:30 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
@ 2017-11-08 15:15 ` Dilip Kumar <dilipbalaut@gmail.com>
2017-11-08 15:46 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
0 siblings, 1 reply; 6+ messages in thread
From: Dilip Kumar @ 2017-11-08 15:15 UTC (permalink / raw)
To: Stefan Tzeggai <tzeggai@empirica-systeme.de>; +Cc: pgsql-bugs
On Wed, Nov 8, 2017 at 7:00 PM, Stefan Tzeggai
<tzeggai@empirica-systeme.de> wrote:
> Sorry, I missed a line:
>
>> # Installing 10.0-1.pgdg16.04+1
>> sudo apt install postgresql-10
>> sudo su postgres
>> dropdb analyst
>> createdb analyst
>
> AND THEN pg_restore -U postgres -v -d analyst -Fc
> dumpSegfaultSmaller.backup
>
Thanks for the information, I could reproduce the issue at v10 stamp
commit[1] and
it's fixed at [2], I have also verified from the core dump that issue
is same what
got fixed at [2]
[1]
commit 5df0e99bea1c3e5fbffa7fbd0982da88ea149bb6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Mon Oct 2 17:09:15 2017 -0400
Stamp 10.0.
[2]
commit a3b1c221893f739950e9232b4b789750f247cee5
Author: Robert Haas <rhaas@postgresql.org>
Date: Fri Oct 13 14:53:28 2017 -0400
Fix possible crash with Parallel Bitmap Heap Scan.
--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: PG10 Segfault 11 on default Ubuntu 16.04 installs
2017-11-08 11:50 Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 13:30 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 15:15 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Dilip Kumar <dilipbalaut@gmail.com>
@ 2017-11-08 15:46 ` Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 16:30 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Tzeggai @ 2017-11-08 15:46 UTC (permalink / raw)
To: pgsql-bugs
Dear Dilip
Am 08.11.2017 um 16:15 schrieb Dilip Kumar:
> Thanks for the information, I could reproduce the issue at v10 stamp
> commit[1] and
> it's fixed at [2], I have also verified from the core dump that issue
> is same what
> got fixed at [2]
>
> [1]
> commit 5df0e99bea1c3e5fbffa7fbd0982da88ea149bb6
> Author: Tom Lane <tgl@sss.pgh.pa.us>
> Date: Mon Oct 2 17:09:15 2017 -0400
>
> Stamp 10.0.
>
> [2]
> commit a3b1c221893f739950e9232b4b789750f247cee5
> Author: Robert Haas <rhaas@postgresql.org>
> Date: Fri Oct 13 14:53:28 2017 -0400
>
> Fix possible crash with Parallel Bitmap Heap Scan.
>
Thats great news!
Just a pitty that I invested all afternoon yesterday to fiddle together
that tiny dataset to redprouce the bug. But thats how live goes ;-)
It was still a great experience to see how prefessional and fast you
guys look at the bugs! +1 And I will test 11 RC next year!
Last question before I downgrade my PG 10 installations... The fix will
be released this week with 10.1 ?
https://www.postgresql.org/developer/roadmap/
Thanks again
Steve
--
Stefan Tzeggai
"Wer nichts zu verbergen hat, braucht auch keine Hose!"
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: PG10 Segfault 11 on default Ubuntu 16.04 installs
2017-11-08 11:50 Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 13:30 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 15:15 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Dilip Kumar <dilipbalaut@gmail.com>
2017-11-08 15:46 ` Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
@ 2017-11-08 16:30 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 6+ messages in thread
From: Tom Lane @ 2017-11-08 16:30 UTC (permalink / raw)
To: Stefan Tzeggai <tzeggai@empirica-systeme.de>; +Cc: pgsql-bugs
Stefan Tzeggai <tzeggai@empirica-systeme.de> writes:
> Last question before I downgrade my PG 10 installations... The fix will
> be released this week with 10.1 ?
Yes, it's in 10.1.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2017-11-08 16:30 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 11:50 Re: PG10 Segfault 11 on default Ubuntu 16.04 installs Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 12:59 ` Amit Kapila <amit.kapila16@gmail.com>
2017-11-08 13:30 ` Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 15:15 ` Dilip Kumar <dilipbalaut@gmail.com>
2017-11-08 15:46 ` Stefan Tzeggai <tzeggai@empirica-systeme.de>
2017-11-08 16:30 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox