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

coredump when build with CXXFLAG -Wp,-D_GLIBCXX_ASSERTIONS #966

Closed
samchugit opened this issue Jan 25, 2024 · 4 comments
Closed

coredump when build with CXXFLAG -Wp,-D_GLIBCXX_ASSERTIONS #966

samchugit opened this issue Jan 25, 2024 · 4 comments

Comments

@samchugit
Copy link

coredump when build and test sentencepiece 0.1.99 with CXXFLAG -Wp,-D_GLIBCXX_ASSERTIONS

This is when it crashed.
image

This is gdb back trace.
image

I wonder if this line will access out of bounds of the vector.

const char32 *begin = &array[offset];

@taku910
Copy link
Collaborator

taku910 commented Jan 28, 2024

Thank you for the report. Wil fix it in the next release.

@taku910
Copy link
Collaborator

taku910 commented Feb 19, 2024

Fixed in v0.2.0

@taku910 taku910 closed this as completed Feb 19, 2024
@Henry-ZHR
Copy link

I still face coredump with v0.2.0.

Seems the same place?

@Henry-ZHR
Copy link

@taku910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants