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

Ticket 4331 #376

Closed
wants to merge 1 commit into from
Closed

Ticket 4331 #376

wants to merge 1 commit into from

Conversation

Komzpa
Copy link
Member

@Komzpa Komzpa commented Feb 25, 2019

ST_3DMakeBox crash on EMPTY input.

PR to get trace from Travis.

@Komzpa
Copy link
Member Author

Komzpa commented Feb 25, 2019

@Komzpa
Copy link
Member Author

Komzpa commented Feb 25, 2019

So, it's a recently added out-of-bounds assert:

Thread 1 (Thread 0x7f3525cce740 (LWP 8253)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        set = {__val = {0, 93937056487504, 0, 139866244691687, 140724530937856, 93937056487504, 93937056487504, 93937056487504, 93937056487504, 93937056487599, 93937056487604, 93937056487504, 93937056487604, 0, 0, 0}}
        pid = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
#1  0x00007f3525cf5535 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x556f6ce21850, sa_sigaction = 0x556f6ce21850}, sa_mask = {__val = {0, 139866246016064, 139866245750400, 0, 0, 0, 21474836480, 140722169085512, 140722169085360, 139866245806768, 139866245791456, 0, 4558911474614471424, 139866245776314, 0, 139866245791456}}, sa_flags = 484968205, sa_restorer = 0x7f351ce80773}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007f3525cf540f in __assert_fail_base (fmt=0x7f3525e57ee0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f351ce80773 "n < pa->npoints", file=0x7f351ce8070d "lwgeom_api.c", line=222, function=<optimized out>) at assert.c:92
        str = 0x556f6ce21850 "P/\322loU"
        total = 4096
#3  0x00007f3525d030f2 in __GI___assert_fail (assertion=0x7f351ce80773 "n < pa->npoints", file=0x7f351ce8070d "lwgeom_api.c", line=222, function=0x7f351ce80b60 <__PRETTY_FUNCTION__.6759> "getPoint3dz_p") at assert.c:101
No locals.
#4  0x00007f351cdca391 in getPoint3dz_p (pa=0x556f6cde28f0, n=0, op=0x7ffc6ee67f80) at lwgeom_api.c:222
        ptr = 0x10e6000010e6 <error: Cannot access memory at address 0x10e6000010e6>
        __PRETTY_FUNCTION__ = "getPoint3dz_p"
#5  0x00007f351cd0b686 in BOX3D_construct (fcinfo=0x556f6cd50640) at lwgeom_box3d.c:570
        min = 0x556f6cdcacc8
        max = 0x556f6cdcaee8
        result = 0x556f6cde2870
        minpoint = 0x556f6cde28c0
        maxpoint = 0x556f6cde2920
        minp = {x = 0, y = 4.6411072058205719e-310, z = 1.1857575500189917e-322}
        maxp = {x = 0, y = 0, z = 0}
        __func__ = "BOX3D_construct"
#6  0x0000556f6ad192c2 in ExecInterpExpr ()
No symbol table info available.
#7  0x0000556f6adc2bba in evaluate_expr ()
No symbol table info available.
#8  0x0000556f6adc4c83 in simplify_function ()
No symbol table info available.
#9  0x0000556f6adc573a in eval_const_expressions_mutator ()
No symbol table info available.
#10 0x0000556f6adc5959 in eval_const_expressions_mutator ()
No symbol table info available.
#11 0x0000556f6ad63bb1 in expression_tree_mutator ()
No symbol table info available.
#12 0x0000556f6adc545a in eval_const_expressions_mutator ()
No symbol table info available.
#13 0x0000556f6ad641fb in expression_tree_mutator ()
No symbol table info available.
#14 0x0000556f6adc545a in eval_const_expressions_mutator ()
No symbol table info available.
#15 0x0000556f6adc68a1 in eval_const_expressions ()
No symbol table info available.
#16 0x0000556f6adaeb68 in preprocess_expression ()
No symbol table info available.
#17 0x0000556f6adb4fc6 in subquery_planner ()
No symbol table info available.
#18 0x0000556f6adb62c6 in standard_planner ()
No symbol table info available.
#19 0x0000556f6ae5b30d in pg_plan_query ()
No symbol table info available.
#20 0x0000556f6ae5b3ee in pg_plan_queries ()
No symbol table info available.
#21 0x0000556f6ae5b85b in exec_simple_query ()
No symbol table info available.
#22 0x0000556f6ae5cf47 in PostgresMain ()
No symbol table info available.
#23 0x0000556f6aded5a3 in ServerLoop ()
No symbol table info available.
#24 0x0000556f6adee42f in PostmasterMain ()
No symbol table info available.
#25 0x0000556f6ab93c86 in main ()
No symbol table info available.
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
travis_time:end:085b2ba4:start=1551092654940677365,finish=1551092772389093158,duration=117448415793

@Komzpa Komzpa closed this Feb 26, 2019
@Komzpa Komzpa deleted the ticket-4331 branch February 26, 2019 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant