Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG11 / travis #262

Closed
wants to merge 15 commits into from

Conversation

@Komzpa
Copy link
Member

commented Jun 19, 2018

Based on branch of @alesuiss
Let's start from just getting PG11 on travis, without SP-GiST patches.

Komzpa added 5 commits Jun 19, 2018
@alesuiss

This comment has been minimized.

Copy link

commented Jun 19, 2018

In case that is useful, I did a few more tests in the meantime.

  • On a Ubuntu "trusty" test system, I do get the same error with "make check"
  • On a Ubuntu "xenial" test system, I do NOT get the error
  • I tried to make a travis build with xenial; it does build but the problem still shows up

It looks like some kind of library compatibility issue to me...

EDIT: again in case that is useful, I remember that a quick stack trace on the trusty system showed the crash happening in GEOS.

@Komzpa

This comment has been minimized.

Copy link
Member Author

commented Jun 19, 2018

okaaay, now we've got a trace:

warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `postgres: 11/main: travis postgis_reg [local] SELECT                          '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8a20ee7401 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1

Thread 1 (Thread 0x7f8a259d7780 (LWP 30057)):
#0  0x00007f8a20ee7401 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#1  0x00007f8a20ee791d in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#2  0x00007f8a20ee81c2 in _Unwind_Find_FDE () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#3  0x00007f8a20ee5507 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#4  0x00007f8a20ee5e65 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#5  0x00007f8a20ee629e in _Unwind_RaiseException () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#6  0x00007f8a2114a915 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x000055d811686d00 in ?? ()
#8  0x00007ffe33d6bb70 in ?? ()
#9  0x00007ffe33d6bb60 in ?? ()
#10 0x00007f8a11ad58da in geos::geom::LinearRing::validateConstruction() () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#11 0x00007f8a11ad5a4b in geos::geom::LinearRing::LinearRing(geos::geom::CoordinateSequence*, geos::geom::GeometryFactory const*) () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#12 0x00007f8a11ad34c5 in geos::geom::GeometryFactory::createLinearRing(geos::geom::CoordinateSequence*) const () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#13 0x00007f8a12e49f02 in GEOSGeom_createLinearRing_r () from /usr/lib/x86_64-linux-gnu/libgeos_c.so.1
#14 0x00007f8a130e1ffa in LWGEOM2GEOS (lwgeom=0x55d811546af8, autofix=<optimized out>) at lwgeom_geos.c:384
#15 0x00007f8a130e1ef0 in LWGEOM2GEOS (lwgeom=lwgeom@entry=0x55d811546a90, autofix=<optimized out>, autofix@entry=0 '\000') at lwgeom_geos.c:425
#16 0x00007f8a13083654 in isvalid (fcinfo=0x55d8115a65f0) at lwgeom_geos.c:1414
#17 0x000055d8103fc1e2 in ?? ()
#18 0x000055d8104ae578 in ?? ()
#19 0x000055d8104b1e73 in ?? ()
#20 0x000055d8104b0b6c in ?? ()
#21 0x000055d81044c85f in expression_tree_mutator ()
#22 0x000055d8104b08a2 in ?? ()
#23 0x000055d81044d3db in expression_tree_mutator ()
#24 0x000055d8104b08a2 in ?? ()
#25 0x000055d8104b1ce0 in eval_const_expressions ()
#26 0x000055d8104999c7 in ?? ()
#27 0x000055d81049fe1e in subquery_planner ()
#28 0x000055d8104a121d in standard_planner ()
#29 0x000055d81054a784 in pg_plan_query ()
#30 0x000055d81054a866 in pg_plan_queries ()
#31 0x000055d81054ad97 in ?? ()
#32 0x000055d81054bfda in PostgresMain ()
#33 0x000055d81026e112 in ?? ()
#34 0x000055d8104dad64 in PostmasterMain ()
#35 0x000055d81026f0a6 in main ()

travis_time:end:0016bfe6:start=1529445013010678800,finish=1529445038341740282,duration=25331061482
@Komzpa

This comment has been minimized.

Copy link
Member Author

commented Jun 19, 2018

image

Komzpa added 3 commits Jun 19, 2018
@Komzpa

This comment has been minimized.

Copy link
Member Author

commented Jun 19, 2018

with Postgres debug symbols:

warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `postgres: 11/main: travis postgis_reg [local] SELECT                          '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f71335f3401 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1

Thread 1 (Thread 0x7f71380e3780 (LWP 29740)):
#0  0x00007f71335f3401 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#1  0x00007f71335f391d in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#2  0x00007f71335f41c2 in _Unwind_Find_FDE () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#3  0x00007f71335f1507 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#4  0x00007f71335f1e65 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#5  0x00007f71335f229e in _Unwind_RaiseException () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#6  0x00007f7133856915 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x0000564e629fffc0 in ?? ()
#8  0x00007fffbde65850 in ?? ()
#9  0x00007fffbde65840 in ?? ()
#10 0x00007f71241e18da in geos::geom::LinearRing::validateConstruction() () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#11 0x00007f71241e1a4b in geos::geom::LinearRing::LinearRing(geos::geom::CoordinateSequence*, geos::geom::GeometryFactory const*) () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#12 0x00007f71241df4c5 in geos::geom::GeometryFactory::createLinearRing(geos::geom::CoordinateSequence*) const () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#13 0x00007f7125555f02 in GEOSGeom_createLinearRing_r () from /usr/lib/x86_64-linux-gnu/libgeos_c.so.1
#14 0x00007f71257edffa in LWGEOM2GEOS (lwgeom=0x564e62892af8, autofix=<optimized out>) at lwgeom_geos.c:384
#15 0x00007f71257edef0 in LWGEOM2GEOS (lwgeom=lwgeom@entry=0x564e62892a90, autofix=<optimized out>, autofix@entry=0 '\000') at lwgeom_geos.c:425
#16 0x00007f712578f654 in isvalid (fcinfo=0x564e628f25f0) at lwgeom_geos.c:1414
#17 0x0000564e61f951e2 in ExecInterpExpr (state=0x564e628f2510, econtext=0x564e628f2e10, isnull=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/executor/execExprInterp.c:678
#18 0x0000564e62047578 in ExecEvalExprSwitchContext (isNull=0x7fffbde65bdc, econtext=<optimized out>, state=0x564e628f2510) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/include/executor/executor.h:304
#19 evaluate_expr (expr=<optimized out>, result_type=result_type@entry=16, result_typmod=result_typmod@entry=-1, result_collation=result_collation@entry=0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4880
#20 0x0000564e6204ae73 in evaluate_function (func_tuple=0x7f713803f408, context=0x7fffbde65f40, funcvariadic=false, args=0x564e62921418, input_collid=0, result_collid=0, result_typmod=-1, result_type=16, funcid=16896) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4422
#21 simplify_function (funcid=16896, result_type=16, result_typmod=-1, result_collid=result_collid@entry=0, input_collid=input_collid@entry=0, args_p=args_p@entry=0x7fffbde65d50, funcvariadic=funcvariadic@entry=false, process_args=process_args@entry=true, allow_non_const=allow_non_const@entry=true, context=context@entry=0x7fffbde65f40) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4062
#22 0x0000564e62049b6c in eval_const_expressions_mutator (node=0x564e627ba460, context=0x7fffbde65f40) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:2674
#23 0x0000564e61fe585f in expression_tree_mutator (node=node@entry=0x564e62920370, mutator=mutator@entry=0x564e62049850 <eval_const_expressions_mutator>, context=context@entry=0x7fffbde65f40) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/nodes/nodeFuncs.c:3033
#24 0x0000564e620498a2 in eval_const_expressions_mutator (node=0x564e62920370, context=0x7fffbde65f40) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:3669
#25 0x0000564e61fe63db in expression_tree_mutator (node=node@entry=0x564e627b9680, mutator=mutator@entry=0x564e62049850 <eval_const_expressions_mutator>, context=context@entry=0x7fffbde65f40) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/nodes/nodeFuncs.c:2914
#26 0x0000564e620498a2 in eval_const_expressions_mutator (node=0x564e627b9680, context=context@entry=0x7fffbde65f40) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:3669
#27 0x0000564e6204ace0 in eval_const_expressions (root=root@entry=0x564e627ba050, node=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:2472
#28 0x0000564e620329c7 in preprocess_expression (root=root@entry=0x564e627ba050, expr=<optimized out>, kind=kind@entry=1) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:1041
#29 0x0000564e62038e1e in subquery_planner (glob=glob@entry=0x564e62921a68, parse=parse@entry=0x564e627b94b0, parent_root=parent_root@entry=0x0, hasRecursion=hasRecursion@entry=false, tuple_fraction=tuple_fraction@entry=0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:732
#30 0x0000564e6203a21d in standard_planner (parse=0x564e627b94b0, cursorOptions=256, boundParams=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:405
#31 0x0000564e620e3784 in pg_plan_query (querytree=querytree@entry=0x564e627b94b0, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:809
#32 0x0000564e620e3866 in pg_plan_queries (querytrees=<optimized out>, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:875
#33 0x0000564e620e3d97 in exec_simple_query (query_string=0x564e6292a398 "SELECT '#408.3', st_isvalid('0106000020BB0B000001000000010300000005000000D6", '0' <repeats 12 times>, "C0F1A138410AD7A3103190524114AE4721F7A138410000000030905241713D0A57FAA1384185EB51982C9052417B14AE87FAA138410000004"...) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:1050
#34 0x0000564e620e4fda in PostgresMain (argc=<optimized out>, argv=argv@entry=0x564e62802348, dbname=0x564e62802250 "postgis_reg", username=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:4153
#35 0x0000564e61e07112 in BackendRun (port=0x564e627fa880) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:4361
#36 BackendStartup (port=0x564e627fa880) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:4033
#37 ServerLoop () at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:1706
#38 0x0000564e62073d64 in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:1379
#39 0x0000564e61e080a6 in main (argc=5, argv=0x564e627b3210) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/main/main.c:228

travis_time:end:056a60d1:start=1529448485548111721,finish=1529448511603558428,duration=26055446707
�[0K
@Komzpa

This comment has been minimized.

Copy link
Member Author

commented Jun 19, 2018

with even more debug symbols:

[logbt] Found corefile (non-tracked) at /tmp/logbt-coredumps/core.30190.!usr!lib!postgresql!11!bin!postgres
[logbt] Processing cores...
[New LWP 30190]

warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: the debug information found in "/lib64/ld-2.19.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

Core was generated by `postgres: 11/main: travis postgis_reg [local] SELECT                          '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  classify_object_over_fdes (ob=ob@entry=0x561a58369cc0, this_fde=0x7f242601a008) at ../../../src/libgcc/unwind-dw2-fde.c:613
613	../../../src/libgcc/unwind-dw2-fde.c: No such file or directory.

Thread 1 (Thread 0x7f2426001780 (LWP 30190)):
#0  classify_object_over_fdes (ob=ob@entry=0x561a58369cc0, this_fde=0x7f242601a008) at ../../../src/libgcc/unwind-dw2-fde.c:613
#1  0x00007f242151291d in init_object (ob=0x561a58369cc0) at ../../../src/libgcc/unwind-dw2-fde.c:749
#2  search_object (ob=ob@entry=0x561a58369cc0, pc=pc@entry=0x7f242151129d <_Unwind_RaiseException+61>) at ../../../src/libgcc/unwind-dw2-fde.c:961
#3  0x00007f24215131c2 in _Unwind_Find_registered_FDE (bases=0x7ffd98eeefc8, pc=0x7f242151129d <_Unwind_RaiseException+61>) at ../../../src/libgcc/unwind-dw2-fde.c:1025
#4  _Unwind_Find_FDE (pc=0x7f242151129d <_Unwind_RaiseException+61>, bases=bases@entry=0x7ffd98eeefc8) at ../../../src/libgcc/unwind-dw2-fde-dip.c:450
#5  0x00007f2421510507 in uw_frame_state_for (context=context@entry=0x7ffd98eeef20, fs=fs@entry=0x7ffd98eeed70) at ../../../src/libgcc/unwind-dw2.c:1245
#6  0x00007f2421510e65 in uw_init_context_1 (context=context@entry=0x7ffd98eeef20, outer_cfa=outer_cfa@entry=0x7ffd98eef2d0, outer_ra=0x7f2421775915) at ../../../src/libgcc/unwind-dw2.c:1566
#7  0x00007f242151129e in _Unwind_RaiseException (exc=0x561a58370bf0) at ../../../src/libgcc/unwind.inc:88
#8  0x00007f2421775915 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x0000561a58370c10 in ?? ()
#10 0x00007ffd98eef310 in ?? ()
#11 0x00007ffd98eef300 in ?? ()
#12 0x00007f24120f48da in geos::geom::LinearRing::validateConstruction() () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#13 0x00007f24120f4a4b in geos::geom::LinearRing::LinearRing(geos::geom::CoordinateSequence*, geos::geom::GeometryFactory const*) () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#14 0x00007f24120f24c5 in geos::geom::GeometryFactory::createLinearRing(geos::geom::CoordinateSequence*) const () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#15 0x00007f2413468f02 in GEOSGeom_createLinearRing_r () from /usr/lib/x86_64-linux-gnu/libgeos_c.so.1
#16 0x00007f241370f69a in ptarray_to_GEOSLinearRing (pa=<optimized out>, autofix=0 '\000') at lwgeom_geos.c:262
#17 LWGEOM2GEOS (lwgeom=0x561a58230b08, autofix=<optimized out>) at lwgeom_geos.c:384
#18 0x00007f241370f580 in LWGEOM2GEOS (lwgeom=lwgeom@entry=0x561a58230aa0, autofix=<optimized out>, autofix@entry=0 '\000') at lwgeom_geos.c:425
#19 0x00007f24136a326d in isvalid (fcinfo=0x561a58290600) at lwgeom_geos.c:1414
#20 0x0000561a563e01e2 in ExecInterpExpr (state=0x561a58290520, econtext=0x561a58290e20, isnull=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/executor/execExprInterp.c:678
#21 0x0000561a56492578 in ExecEvalExprSwitchContext (isNull=0x7ffd98eef69c, econtext=<optimized out>, state=0x561a58290520) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/include/executor/executor.h:304
#22 evaluate_expr (expr=<optimized out>, result_type=result_type@entry=16, result_typmod=result_typmod@entry=-1, result_collation=result_collation@entry=0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4880
#23 0x0000561a56495e73 in evaluate_function (func_tuple=0x7f2425f5d408, context=0x7ffd98eefa00, funcvariadic=false, args=0x561a582bf428, input_collid=0, result_collid=0, result_typmod=-1, result_type=16, funcid=16896) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4422
#24 simplify_function (funcid=16896, result_type=16, result_typmod=-1, result_collid=result_collid@entry=0, input_collid=input_collid@entry=0, args_p=args_p@entry=0x7ffd98eef810, funcvariadic=funcvariadic@entry=false, process_args=process_args@entry=true, allow_non_const=allow_non_const@entry=true, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4062
#25 0x0000561a56494b6c in eval_const_expressions_mutator (node=0x561a58158470, context=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:2674
#26 0x0000561a5643085f in expression_tree_mutator (node=node@entry=0x561a582be380, mutator=mutator@entry=0x561a56494850 <eval_const_expressions_mutator>, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/nodes/nodeFuncs.c:3033
#27 0x0000561a564948a2 in eval_const_expressions_mutator (node=0x561a582be380, context=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:3669
#28 0x0000561a564313db in expression_tree_mutator (node=node@entry=0x561a58157690, mutator=mutator@entry=0x561a56494850 <eval_const_expressions_mutator>, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/nodes/nodeFuncs.c:2914
#29 0x0000561a564948a2 in eval_const_expressions_mutator (node=0x561a58157690, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:3669
#30 0x0000561a56495ce0 in eval_const_expressions (root=root@entry=0x561a58158060, node=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:2472
#31 0x0000561a5647d9c7 in preprocess_expression (root=root@entry=0x561a58158060, expr=<optimized out>, kind=kind@entry=1) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:1041
#32 0x0000561a56483e1e in subquery_planner (glob=glob@entry=0x561a582bfa78, parse=parse@entry=0x561a581574c0, parent_root=parent_root@entry=0x0, hasRecursion=hasRecursion@entry=false, tuple_fraction=tuple_fraction@entry=0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:732
#33 0x0000561a5648521d in standard_planner (parse=0x561a581574c0, cursorOptions=256, boundParams=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:405
#34 0x0000561a5652e784 in pg_plan_query (querytree=querytree@entry=0x561a581574c0, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:809
#35 0x0000561a5652e866 in pg_plan_queries (querytrees=<optimized out>, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:875
#36 0x0000561a5652ed97 in exec_simple_query (query_string=0x561a583c0718 "SELECT '#408.3', st_isvalid('0106000020BB0B000001000000010300000005000000D6", '0' <repeats 12 times>, "C0F1A138410AD7A3103190524114AE4721F7A138410000000030905241713D0A57FAA1384185EB51982C9052417B14AE87FAA138410000004"...) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:1050
#37 0x0000561a5652ffda in PostgresMain (argc=<optimized out>, argv=argv@entry=0x561a581a0358, dbname=0x561a581a0260 "postgis_reg", username=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:4153
#38 0x0000561a56252112 in BackendRun (port=0x561a58198890) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:4361
#39 BackendStartup (port=0x561a58198890) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:4033
#40 ServerLoop () at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:1706
#41 0x0000561a564bed64 in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:1379
#42 0x0000561a562530a6 in main (argc=5, argv=0x561a58151220) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/main/main.c:228

travis_time:end:1d126eb0:start=1529449300295860414,finish=1529449325315661150,duration=25019800736
�[0K
@Komzpa

This comment has been minimized.

Copy link
Member Author

commented Jun 19, 2018

[logbt] Found corefile (non-tracked) at /tmp/logbt-coredumps/core.30190.!usr!lib!postgresql!11!bin!postgres
[logbt] Processing cores...
[New LWP 30190]

warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: the debug information found in "/lib64/ld-2.19.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

Core was generated by `postgres: 11/main: travis postgis_reg [local] SELECT                          '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  classify_object_over_fdes (ob=ob@entry=0x561a58369cc0, this_fde=0x7f242601a008) at ../../../src/libgcc/unwind-dw2-fde.c:613
613	../../../src/libgcc/unwind-dw2-fde.c: No such file or directory.

Thread 1 (Thread 0x7f2426001780 (LWP 30190)):
#0  classify_object_over_fdes (ob=ob@entry=0x561a58369cc0, this_fde=0x7f242601a008) at ../../../src/libgcc/unwind-dw2-fde.c:613
#1  0x00007f242151291d in init_object (ob=0x561a58369cc0) at ../../../src/libgcc/unwind-dw2-fde.c:749
#2  search_object (ob=ob@entry=0x561a58369cc0, pc=pc@entry=0x7f242151129d <_Unwind_RaiseException+61>) at ../../../src/libgcc/unwind-dw2-fde.c:961
#3  0x00007f24215131c2 in _Unwind_Find_registered_FDE (bases=0x7ffd98eeefc8, pc=0x7f242151129d <_Unwind_RaiseException+61>) at ../../../src/libgcc/unwind-dw2-fde.c:1025
#4  _Unwind_Find_FDE (pc=0x7f242151129d <_Unwind_RaiseException+61>, bases=bases@entry=0x7ffd98eeefc8) at ../../../src/libgcc/unwind-dw2-fde-dip.c:450
#5  0x00007f2421510507 in uw_frame_state_for (context=context@entry=0x7ffd98eeef20, fs=fs@entry=0x7ffd98eeed70) at ../../../src/libgcc/unwind-dw2.c:1245
#6  0x00007f2421510e65 in uw_init_context_1 (context=context@entry=0x7ffd98eeef20, outer_cfa=outer_cfa@entry=0x7ffd98eef2d0, outer_ra=0x7f2421775915) at ../../../src/libgcc/unwind-dw2.c:1566
#7  0x00007f242151129e in _Unwind_RaiseException (exc=0x561a58370bf0) at ../../../src/libgcc/unwind.inc:88
#8  0x00007f2421775915 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x0000561a58370c10 in ?? ()
#10 0x00007ffd98eef310 in ?? ()
#11 0x00007ffd98eef300 in ?? ()
#12 0x00007f24120f48da in geos::geom::LinearRing::validateConstruction() () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#13 0x00007f24120f4a4b in geos::geom::LinearRing::LinearRing(geos::geom::CoordinateSequence*, geos::geom::GeometryFactory const*) () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#14 0x00007f24120f24c5 in geos::geom::GeometryFactory::createLinearRing(geos::geom::CoordinateSequence*) const () from /usr/lib/x86_64-linux-gnu/libgeos-3.5.0.so
#15 0x00007f2413468f02 in GEOSGeom_createLinearRing_r () from /usr/lib/x86_64-linux-gnu/libgeos_c.so.1
#16 0x00007f241370f69a in ptarray_to_GEOSLinearRing (pa=<optimized out>, autofix=0 '\000') at lwgeom_geos.c:262
#17 LWGEOM2GEOS (lwgeom=0x561a58230b08, autofix=<optimized out>) at lwgeom_geos.c:384
#18 0x00007f241370f580 in LWGEOM2GEOS (lwgeom=lwgeom@entry=0x561a58230aa0, autofix=<optimized out>, autofix@entry=0 '\000') at lwgeom_geos.c:425
#19 0x00007f24136a326d in isvalid (fcinfo=0x561a58290600) at lwgeom_geos.c:1414
#20 0x0000561a563e01e2 in ExecInterpExpr (state=0x561a58290520, econtext=0x561a58290e20, isnull=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/executor/execExprInterp.c:678
#21 0x0000561a56492578 in ExecEvalExprSwitchContext (isNull=0x7ffd98eef69c, econtext=<optimized out>, state=0x561a58290520) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/include/executor/executor.h:304
#22 evaluate_expr (expr=<optimized out>, result_type=result_type@entry=16, result_typmod=result_typmod@entry=-1, result_collation=result_collation@entry=0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4880
#23 0x0000561a56495e73 in evaluate_function (func_tuple=0x7f2425f5d408, context=0x7ffd98eefa00, funcvariadic=false, args=0x561a582bf428, input_collid=0, result_collid=0, result_typmod=-1, result_type=16, funcid=16896) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4422
#24 simplify_function (funcid=16896, result_type=16, result_typmod=-1, result_collid=result_collid@entry=0, input_collid=input_collid@entry=0, args_p=args_p@entry=0x7ffd98eef810, funcvariadic=funcvariadic@entry=false, process_args=process_args@entry=true, allow_non_const=allow_non_const@entry=true, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:4062
#25 0x0000561a56494b6c in eval_const_expressions_mutator (node=0x561a58158470, context=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:2674
#26 0x0000561a5643085f in expression_tree_mutator (node=node@entry=0x561a582be380, mutator=mutator@entry=0x561a56494850 <eval_const_expressions_mutator>, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/nodes/nodeFuncs.c:3033
#27 0x0000561a564948a2 in eval_const_expressions_mutator (node=0x561a582be380, context=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:3669
#28 0x0000561a564313db in expression_tree_mutator (node=node@entry=0x561a58157690, mutator=mutator@entry=0x561a56494850 <eval_const_expressions_mutator>, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/nodes/nodeFuncs.c:2914
#29 0x0000561a564948a2 in eval_const_expressions_mutator (node=0x561a58157690, context=context@entry=0x7ffd98eefa00) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:3669
#30 0x0000561a56495ce0 in eval_const_expressions (root=root@entry=0x561a58158060, node=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/util/clauses.c:2472
#31 0x0000561a5647d9c7 in preprocess_expression (root=root@entry=0x561a58158060, expr=<optimized out>, kind=kind@entry=1) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:1041
#32 0x0000561a56483e1e in subquery_planner (glob=glob@entry=0x561a582bfa78, parse=parse@entry=0x561a581574c0, parent_root=parent_root@entry=0x0, hasRecursion=hasRecursion@entry=false, tuple_fraction=tuple_fraction@entry=0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:732
#33 0x0000561a5648521d in standard_planner (parse=0x561a581574c0, cursorOptions=256, boundParams=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/optimizer/plan/planner.c:405
#34 0x0000561a5652e784 in pg_plan_query (querytree=querytree@entry=0x561a581574c0, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:809
#35 0x0000561a5652e866 in pg_plan_queries (querytrees=<optimized out>, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:875
#36 0x0000561a5652ed97 in exec_simple_query (query_string=0x561a583c0718 "SELECT '#408.3', st_isvalid('0106000020BB0B000001000000010300000005000000D6", '0' <repeats 12 times>, "C0F1A138410AD7A3103190524114AE4721F7A138410000000030905241713D0A57FAA1384185EB51982C9052417B14AE87FAA138410000004"...) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:1050
#37 0x0000561a5652ffda in PostgresMain (argc=<optimized out>, argv=argv@entry=0x561a581a0358, dbname=0x561a581a0260 "postgis_reg", username=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/tcop/postgres.c:4153
#38 0x0000561a56252112 in BackendRun (port=0x561a58198890) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:4361
#39 BackendStartup (port=0x561a58198890) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:4033
#40 ServerLoop () at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:1706
#41 0x0000561a564bed64 in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/postmaster/postmaster.c:1379
#42 0x0000561a562530a6 in main (argc=5, argv=0x561a58151220) at /build/postgresql-11-IdL03C/postgresql-11-11~beta1/build/../src/backend/main/main.c:228

travis_time:end:1d126eb0:start=1529449300295860414,finish=1529449325315661150,duration=25019800736
�[0K
Komzpa added 4 commits Jun 19, 2018
@Algunenano

This comment has been minimized.

Copy link
Member

commented Jul 5, 2018

Has there been any progress with this bug? I was thinking on creating a matrix to tests the PRs with several PG releases (similar to this) at some point.

@dbaston

This comment has been minimized.

Copy link
Member

commented Jul 5, 2018

@Algunenano very fast to do a matrix with prebuilt Docker images. GitLab CI example here but similar technique would be possible with Travis. I tried this on Travis a couple years ago and it shaved a couple minutes off the build time. Only barrier to committing it was that I don't have access to postgis organization on Docker Hub, and it seemed weird to pull build images from my personal account.

@strk

This comment has been minimized.

Copy link
Member

commented Jul 5, 2018

@strk

This comment has been minimized.

Copy link
Member

commented Jul 23, 2018

@strk

This comment has been minimized.

Copy link
Member

commented Jul 23, 2018

@Komzpa Komzpa closed this Sep 4, 2018

@Komzpa Komzpa reopened this Sep 4, 2018

Komzpa added 2 commits Sep 9, 2018

@strk strk closed this in c694687 Sep 11, 2018

@Komzpa Komzpa deleted the Komzpa-patch-2 branch Oct 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.