mapbox / mapbox/wagyu

test_lwgeom_clip_by_rect fails

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
197
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Hello,

I have issue with postgis test test_lwgeom_clip_by_rect on release build with gcc 12.2.0
and I have fixed it with the following code

https://github.com/mapbox/wagyu/blob/master/include/mapbox/geometry/wagyu/intersect_util.hpp#L89

```
on_intersection_swap(intersect_list& i) : intersects(i) {
intersects.reserve(2); // new line
}
```

Suppose this is happen due to bug in stdlib or compiler.

Can anybody point me to something related?

Contributor guide

Open the contributing guide

Research direction

Start with the failing test_lwgeom_clip_by_rect in the release build using GCC 12.2.0, then inspect include/mapbox/geometry/wagyu/intersect_util.hpp around line 89 and the reported reserve change. Confirm the failure and whether the test passes with the change, while determining whether the behavior is tied to the compiler or standard library.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.