You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Will Ayd (Jira)" <ji...@apache.org> on 2021/12/31 15:52:00 UTC
[jira] [Updated] (ARROW-15228) StringBuilder UnsafeAppend causes EXC_BAD_ACCESS
[ https://issues.apache.org/jira/browse/ARROW-15228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Will Ayd updated ARROW-15228:
-----------------------------
Description:
It seems that StringBuilder->UnsafeAppend produces a memory violation. This is on macOS Monterey with an intel chip if it matters. Below is a sample program that will reproduce the error:
{code:java}
#include <arrow/api.h>
arrow::Status RunMain(int argc, char** argv)
{ auto builder = std::make_shared<arrow::StringBuilder>(); ARROW_RETURN_NOT_OK(builder->Reserve(1)); builder->UnsafeAppend(std::string("a")); return arrow::Status::OK(); }
int main(int argc, char** argv) {
arrow::Status st = RunMain(argc, argv);
if (!st.ok())
{ return 1; }
return 0;
} {code}
I could not reproduce with another builder type
was:
It seems that StringBuilder->UnsafeAppend produces a memory violation. This is on macOS Monterey with an intel chip if it matters. Below is a sample program that will reproduce the error:
```cpp
#include <arrow/api.h>
arrow::Status RunMain(int argc, char** argv) {
auto builder = std::make_shared<arrow::StringBuilder>();
ARROW_RETURN_NOT_OK(builder->Reserve(1));
builder->UnsafeAppend(std::string("a"));
return arrow::Status::OK();
}
int main(int argc, char** argv) {
arrow::Status st = RunMain(argc, argv);
if (!st.ok()) {
return 1;
}
return 0;
}
```
I could not reproduce with another builder type
Issue Type: Bug (was: Improvement)
> StringBuilder UnsafeAppend causes EXC_BAD_ACCESS
> ------------------------------------------------
>
> Key: ARROW-15228
> URL: https://issues.apache.org/jira/browse/ARROW-15228
> Project: Apache Arrow
> Issue Type: Bug
> Reporter: Will Ayd
> Priority: Minor
>
> It seems that StringBuilder->UnsafeAppend produces a memory violation. This is on macOS Monterey with an intel chip if it matters. Below is a sample program that will reproduce the error:
> {code:java}
> #include <arrow/api.h>
> arrow::Status RunMain(int argc, char** argv)
> { auto builder = std::make_shared<arrow::StringBuilder>(); ARROW_RETURN_NOT_OK(builder->Reserve(1)); builder->UnsafeAppend(std::string("a")); return arrow::Status::OK(); }
> int main(int argc, char** argv) {
> arrow::Status st = RunMain(argc, argv);
> if (!st.ok())
> { return 1; }
> return 0;
> } {code}
>
> I could not reproduce with another builder type
--
This message was sent by Atlassian Jira
(v8.20.1#820001)