pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7667: Segmentation fault
4+ messages / 3 participants
[nested] [flat]
* BUG #7667: Segmentation fault
@ 2012-11-16 14:16 j.domagalski@bsskierniewice.pl
2012-11-16 20:30 ` Re: BUG #7667: Segmentation fault Euler Taveira <euler@timbira.com>
0 siblings, 1 reply; 4+ messages in thread
From: j.domagalski@bsskierniewice.pl @ 2012-11-16 14:16 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 7667
Logged by: Jacek Domagalski
Email address: j.domagalski@bsskierniewice.pl
PostgreSQL version: 9.2.1
Operating system: OracleLinux6 x64, Windows Server 2008 R2 x64
Description:
When I execute SQL Query server crash with Code 11 Segmentation fault. I
tried two diffrents environments (Oracle Linux on Vsphere and Windows 2008
Server),database restored from backup, and got the same error. Previous
version 9.0 was OK with this database and query.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #7667: Segmentation fault
2012-11-16 14:16 BUG #7667: Segmentation fault j.domagalski@bsskierniewice.pl
@ 2012-11-16 20:30 ` Euler Taveira <euler@timbira.com>
2012-11-17 17:55 ` Re: BUG #7667: Segmentation fault Euler Taveira <euler@timbira.com>
0 siblings, 1 reply; 4+ messages in thread
From: Euler Taveira @ 2012-11-16 20:30 UTC (permalink / raw)
To: j.domagalski@bsskierniewice.pl; +Cc: pgsql-bugs
On 16-11-2012 12:16, j.domagalski@bsskierniewice.pl wrote:
> When I execute SQL Query server crash with Code 11 Segmentation fault. I
> tried two diffrents environments (Oracle Linux on Vsphere and Windows 2008
> Server),database restored from backup, and got the same error. Previous
> version 9.0 was OK with this database and query.
>
Could you provide additional details [1] and a reproducible test case?
[1] http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
--
Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #7667: Segmentation fault
2012-11-16 14:16 BUG #7667: Segmentation fault j.domagalski@bsskierniewice.pl
2012-11-16 20:30 ` Re: BUG #7667: Segmentation fault Euler Taveira <euler@timbira.com>
@ 2012-11-17 17:55 ` Euler Taveira <euler@timbira.com>
2012-11-18 13:20 ` Re: BUG #7667: Segmentation fault Jacek Domagalski <j.domagalski@bsskierniewice.pl>
0 siblings, 1 reply; 4+ messages in thread
From: Euler Taveira @ 2012-11-17 17:55 UTC (permalink / raw)
To: Jacek Domagalski <j.domagalski@bsskierniewice.pl>; +Cc: pgsql-bugs
On 17-11-2012 07:03, Jacek Domagalski wrote:
[keep the list CC'ed]
> Scenario to produce error.
>
> 1. OS - Windows 7 x64 PL, Regional settings in regional.jpg
> 2. Installation of postgres-server (postgresql-9.2.1-1-windows-x64.exe) with default settings
> 3. DB scheme in up.backup
> 4. Query in error_query.sql
>
I can confirm that that bug is in 9.2.1 but I couldn't reproduce it in
REL9_2_STABLE. It seems a bug in the planner that what fixed a few days ago.
Could you test it in REL9_2_STABLE [1]?
Just to be archived the backtrace is:
Core was generated by `postgres: euler bug [local] SEL'.
Program terminated with signal 11, Segmentation fault.
#0 examine_simple_variable (vardata=0x7fff864ebaa0, root=<optimized out>,
var=<optimized out>) at selfuncs.c:4531
4531 selfuncs.c: Arquivo ou diretório não encontrado.
(gdb) bt
#0 examine_simple_variable (vardata=0x7fff864ebaa0, root=<optimized out>,
var=<optimized out>) at selfuncs.c:4531
#1 examine_variable (root=root@entry=0x145b8d0, node=<optimized out>,
varRelid=varRelid@entry=0, vardata=vardata@entry=0x7fff864ebaa0)
at selfuncs.c:4308
#2 0x00000000006c5d98 in get_restriction_variable (varonleft=<optimized out>,
other=<optimized out>, vardata=0x7fff864ebaa0, varRelid=0,
args=<optimized out>, root=0x145b8d0) at selfuncs.c:4173
#3 get_restriction_variable (root=0x145b8d0, args=<optimized out>,
varRelid=0, vardata=0x7fff864ebaa0, other=<optimized out>,
varonleft=<optimized out>) at selfuncs.c:4154
#4 0x00000000006c5edf in scalargtsel (fcinfo=<optimized out>)
at selfuncs.c:1050
#5 0x000000000072030d in OidFunctionCall4Coll (functionId=<optimized out>,
collation=collation@entry=0, arg1=arg1@entry=21346512,
arg2=arg2@entry=419, arg3=arg3@entry=21490216, arg4=arg4@entry=0)
at fmgr.c:1682
#6 0x0000000000606f54 in restriction_selectivity (root=root@entry=0x145b8d0,
operatorid=419, args=0x147ea28, inputcollid=0, varRelid=varRelid@entry=0)
at plancat.c:1026
#7 0x00000000005da2b0 in clause_selectivity (root=root@entry=0x145b8d0,
clause=0x147eac8, clause@entry=0x1485490, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:668
#8 0x00000000005da48c in clauselist_selectivity (root=root@entry=0x145b8d0,
clauses=<optimized out>, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:123
#9 0x00000000005d9ed5 in clause_selectivity (root=root@entry=0x145b8d0,
clause=0x1485ec0, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:623
#10 0x00000000005da177 in clause_selectivity (root=root@entry=0x145b8d0,
clause=<optimized out>, clause@entry=0x1485f40, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:642
#11 0x00000000005e73a6 in create_or_index_quals (root=root@entry=0x145b8d0,
rel=rel@entry=0x14803c0) at orindxpath.c:176
#12 0x00000000005d8bac in set_plain_rel_size (rel=0x14803c0, root=0x145b8d0,
rte=<optimized out>) at allpaths.c:364
#13 set_rel_size (root=root@entry=0x145b8d0, rel=0x14803c0, rti=rti@entry=1,
rte=0x1458b90) at allpaths.c:250
#14 0x00000000005d9c5a in set_base_rel_sizes (root=<optimized out>)
at allpaths.c:175
#15 make_one_rel (root=root@entry=0x145b8d0, joinlist=joinlist@entry=0x14827c8)
at allpaths.c:133
#16 0x00000000005f0b6e in query_planner (root=root@entry=0x145b8d0,
tlist=tlist@entry=0x147ad68, tuple_fraction=0,
tuple_fraction@entry=<error reading variable: Could not find type for
DW_OP_GNU_const_type>, limit_tuples=-1,
cheapest_path=cheapest_path@entry=0x7fff864ec3c0,
sorted_path=sorted_path@entry=0x7fff864ec3c8,
num_groups=num_groups@entry=0x7fff864ec3b8) at planmain.c:259
#17 0x00000000005f2488 in grouping_planner (root=root@entry=0x145b8d0,
tuple_fraction=0,
tuple_fraction@entry=<error reading variable: Could not find type for
DW_OP_GNU_const_type>) at planner.c:1221
#18 0x00000000005f4421 in subquery_planner (glob=glob@entry=0x1399898,
parse=parse@entry=0x1458a80, parent_root=parent_root@entry=0x0,
hasRecursion=hasRecursion@entry=0 '\000', tuple_fraction=0,
subroot=subroot@entry=0x7fff864ec558) at planner.c:525
#19 0x00000000005f46d7 in standard_planner (parse=0x1458a80, cursorOptions=0,
boundParams=0x0) at planner.c:196
#20 0x00000000006563bc in pg_plan_query (querytree=<optimized out>,
cursorOptions=cursorOptions@entry=0, boundParams=boundParams@entry=0x0)
at postgres.c:751
#21 0x00000000006564b4 in pg_plan_queries (querytrees=<optimized out>,
cursorOptions=cursorOptions@entry=0, boundParams=boundParams@entry=0x0)
at postgres.c:810
#22 0x0000000000656cc2 in exec_simple_query (
query_string=0x141ac30
"SELECT\n\t\t\t\t\t\t\t\"hlpIssue\".*,\n\t\t\t\t\t\t\t\"LastModifyTimeSet\".\"LastModifyTime\"\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\"hlpIssue\"
LEFT OUTER
JOIN\n\t\n\t\t\t\t\t\t(SELECT\n\t\t\t\t\t\t\t\"hlpIssueChange\".\"IdIssue\",\n\t\t\t\t\t\t\tMAX(\"hlpIssueChange\".\"Mod"...)
at postgres.c:975
#23 PostgresMain (argc=<optimized out>, argv=argv@entry=0x1373eb0,
username=<optimized out>) at postgres.c:3968
#24 0x00000000006184c0 in BackendRun (port=0x1399960) at postmaster.c:3619
#25 BackendStartup (port=0x1399960) at postmaster.c:3304
#26 ServerLoop () at postmaster.c:1367
#27 0x000000000061909c in PostmasterMain (argc=argc@entry=1,
argv=argv@entry=0x1371df0) at postmaster.c:1127
#28 0x0000000000464b9d in main (argc=1, argv=0x1371df0) at main.c:199
[1]
http://git.postgresql.org/gitweb/?p=postgresql.git;a=snapshot;h=refs/heads/REL9_2_STABLE;sf=tgz
--
Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #7667: Segmentation fault
2012-11-16 14:16 BUG #7667: Segmentation fault j.domagalski@bsskierniewice.pl
2012-11-16 20:30 ` Re: BUG #7667: Segmentation fault Euler Taveira <euler@timbira.com>
2012-11-17 17:55 ` Re: BUG #7667: Segmentation fault Euler Taveira <euler@timbira.com>
@ 2012-11-18 13:20 ` Jacek Domagalski <j.domagalski@bsskierniewice.pl>
0 siblings, 0 replies; 4+ messages in thread
From: Jacek Domagalski @ 2012-11-18 13:20 UTC (permalink / raw)
To: 'Euler Taveira' <euler@timbira.com>; +Cc: pgsql-bugs
I can confirm that REL9_2_STABLE works fine. Thanks for quick help.
Regards/Pozdrawiam
Jacek Domagalski
-----Original Message-----
From: Euler Taveira [mailto:euler@timbira.com]
Sent: Saturday, November 17, 2012 6:56 PM
To: Jacek Domagalski
Cc: PostgreSQL Bugs
Subject: Re: [BUGS] BUG #7667: Segmentation fault
On 17-11-2012 07:03, Jacek Domagalski wrote:
[keep the list CC'ed]
> Scenario to produce error.
>
> 1. OS - Windows 7 x64 PL, Regional settings in regional.jpg 2.
> Installation of postgres-server (postgresql-9.2.1-1-windows-x64.exe)
> with default settings 3. DB scheme in up.backup 4. Query in
> error_query.sql
>
I can confirm that that bug is in 9.2.1 but I couldn't reproduce it in REL9_2_STABLE. It seems a bug in the planner that what fixed a few days ago.
Could you test it in REL9_2_STABLE [1]?
Just to be archived the backtrace is:
Core was generated by `postgres: euler bug [local] SEL'.
Program terminated with signal 11, Segmentation fault.
#0 examine_simple_variable (vardata=0x7fff864ebaa0, root=<optimized out>,
var=<optimized out>) at selfuncs.c:4531
4531 selfuncs.c: Arquivo ou diretório não encontrado.
(gdb) bt
#0 examine_simple_variable (vardata=0x7fff864ebaa0, root=<optimized out>,
var=<optimized out>) at selfuncs.c:4531
#1 examine_variable (root=root@entry=0x145b8d0, node=<optimized out>,
varRelid=varRelid@entry=0, vardata=vardata@entry=0x7fff864ebaa0)
at selfuncs.c:4308
#2 0x00000000006c5d98 in get_restriction_variable (varonleft=<optimized out>,
other=<optimized out>, vardata=0x7fff864ebaa0, varRelid=0,
args=<optimized out>, root=0x145b8d0) at selfuncs.c:4173
#3 get_restriction_variable (root=0x145b8d0, args=<optimized out>,
varRelid=0, vardata=0x7fff864ebaa0, other=<optimized out>,
varonleft=<optimized out>) at selfuncs.c:4154
#4 0x00000000006c5edf in scalargtsel (fcinfo=<optimized out>)
at selfuncs.c:1050
#5 0x000000000072030d in OidFunctionCall4Coll (functionId=<optimized out>,
collation=collation@entry=0, arg1=arg1@entry=21346512,
arg2=arg2@entry=419, arg3=arg3@entry=21490216, arg4=arg4@entry=0)
at fmgr.c:1682
#6 0x0000000000606f54 in restriction_selectivity (root=root@entry=0x145b8d0,
operatorid=419, args=0x147ea28, inputcollid=0, varRelid=varRelid@entry=0)
at plancat.c:1026
#7 0x00000000005da2b0 in clause_selectivity (root=root@entry=0x145b8d0,
clause=0x147eac8, clause@entry=0x1485490, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:668
#8 0x00000000005da48c in clauselist_selectivity (root=root@entry=0x145b8d0,
clauses=<optimized out>, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:123
#9 0x00000000005d9ed5 in clause_selectivity (root=root@entry=0x145b8d0,
clause=0x1485ec0, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:623
#10 0x00000000005da177 in clause_selectivity (root=root@entry=0x145b8d0,
clause=<optimized out>, clause@entry=0x1485f40, varRelid=varRelid@entry=0,
jointype=jointype@entry=JOIN_INNER, sjinfo=sjinfo@entry=0x0)
at clausesel.c:642
#11 0x00000000005e73a6 in create_or_index_quals (root=root@entry=0x145b8d0,
rel=rel@entry=0x14803c0) at orindxpath.c:176
#12 0x00000000005d8bac in set_plain_rel_size (rel=0x14803c0, root=0x145b8d0,
rte=<optimized out>) at allpaths.c:364
#13 set_rel_size (root=root@entry=0x145b8d0, rel=0x14803c0, rti=rti@entry=1,
rte=0x1458b90) at allpaths.c:250
#14 0x00000000005d9c5a in set_base_rel_sizes (root=<optimized out>)
at allpaths.c:175
#15 make_one_rel (root=root@entry=0x145b8d0, joinlist=joinlist@entry=0x14827c8)
at allpaths.c:133
#16 0x00000000005f0b6e in query_planner (root=root@entry=0x145b8d0,
tlist=tlist@entry=0x147ad68, tuple_fraction=0,
tuple_fraction@entry=<error reading variable: Could not find type for DW_OP_GNU_const_type>, limit_tuples=-1,
cheapest_path=cheapest_path@entry=0x7fff864ec3c0,
sorted_path=sorted_path@entry=0x7fff864ec3c8,
num_groups=num_groups@entry=0x7fff864ec3b8) at planmain.c:259
#17 0x00000000005f2488 in grouping_planner (root=root@entry=0x145b8d0,
tuple_fraction=0,
tuple_fraction@entry=<error reading variable: Could not find type for
DW_OP_GNU_const_type>) at planner.c:1221
#18 0x00000000005f4421 in subquery_planner (glob=glob@entry=0x1399898,
parse=parse@entry=0x1458a80, parent_root=parent_root@entry=0x0,
hasRecursion=hasRecursion@entry=0 '\000', tuple_fraction=0,
subroot=subroot@entry=0x7fff864ec558) at planner.c:525
#19 0x00000000005f46d7 in standard_planner (parse=0x1458a80, cursorOptions=0,
boundParams=0x0) at planner.c:196
#20 0x00000000006563bc in pg_plan_query (querytree=<optimized out>,
cursorOptions=cursorOptions@entry=0, boundParams=boundParams@entry=0x0)
at postgres.c:751
#21 0x00000000006564b4 in pg_plan_queries (querytrees=<optimized out>,
cursorOptions=cursorOptions@entry=0, boundParams=boundParams@entry=0x0)
at postgres.c:810
#22 0x0000000000656cc2 in exec_simple_query (
query_string=0x141ac30
"SELECT\n\t\t\t\t\t\t\t\"hlpIssue\".*,\n\t\t\t\t\t\t\t\"LastModifyTimeSet\".\"LastModifyTime\"\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\"hlpIssue\"
LEFT OUTER
JOIN\n\t\n\t\t\t\t\t\t(SELECT\n\t\t\t\t\t\t\t\"hlpIssueChange\".\"IdIssue\",\n\t\t\t\t\t\t\tMAX(\"hlpIssueChange\".\"Mod"...)
at postgres.c:975
#23 PostgresMain (argc=<optimized out>, argv=argv@entry=0x1373eb0,
username=<optimized out>) at postgres.c:3968
#24 0x00000000006184c0 in BackendRun (port=0x1399960) at postmaster.c:3619
#25 BackendStartup (port=0x1399960) at postmaster.c:3304
#26 ServerLoop () at postmaster.c:1367
#27 0x000000000061909c in PostmasterMain (argc=argc@entry=1,
argv=argv@entry=0x1371df0) at postmaster.c:1127
#28 0x0000000000464b9d in main (argc=1, argv=0x1371df0) at main.c:199
[1]
http://git.postgresql.org/gitweb/?p=postgresql.git;a=snapshot;h=refs/heads/REL9_2_STABLE;sf=tgz
--
Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2012-11-18 13:20 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-11-16 14:16 BUG #7667: Segmentation fault j.domagalski@bsskierniewice.pl
2012-11-16 20:30 ` Euler Taveira <euler@timbira.com>
2012-11-17 17:55 ` Euler Taveira <euler@timbira.com>
2012-11-18 13:20 ` Jacek Domagalski <j.domagalski@bsskierniewice.pl>
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