Skip to content

[GLUTEN-9163][VL][FOLLOWUP] Fix segfault triggered by fixed-width inputs#9766

Merged
marin-ma merged 1 commit intoapache:mainfrom
marin-ma:fix-sort-shuffle-segfault
May 29, 2025
Merged

[GLUTEN-9163][VL][FOLLOWUP] Fix segfault triggered by fixed-width inputs#9766
marin-ma merged 1 commit intoapache:mainfrom
marin-ma:fix-sort-shuffle-segfault

Conversation

@marin-ma
Copy link
Copy Markdown
Contributor

Fixed the issue reported here

@github-actions github-actions bot added the VELOX label May 27, 2025
@github-actions
Copy link
Copy Markdown

#9163

@marin-ma
Copy link
Copy Markdown
Contributor Author

@wangyum Could you try this patch? Thanks!

@wangyum
Copy link
Copy Markdown
Member

wangyum commented May 27, 2025

Thank you @marin-ma. will try it later.

@wangyum
Copy link
Copy Markdown
Member

wangyum commented May 29, 2025

Thank you @marin-ma. It works after applying this patch.

Copy link
Copy Markdown
Member

@zhouyuan zhouyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


if (fixedRowSize_.has_value()) {
rowSize_.resize(inputRows, fixedRowSize_.value() + sizeof(RowSizeType));
rowSize_.resize(inputRows, fixedRowSize_.value());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the real issue is due to rowSize is resized 4 more rows?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rowSize_ was wrong for fixed-widths input. It was over calculated by 4 bytes.

@marin-ma marin-ma merged commit 7431a9c into apache:main May 29, 2025
45 checks passed
marin-ma added a commit to marin-ma/gluten that referenced this pull request Jul 16, 2025
warrenzhu25 pushed a commit to warrenzhu25/gluten that referenced this pull request Jan 10, 2026
…uts (apache#9766)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Change-Id: I14a42017e729dc202fa58c46147512fa39e0d299
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants