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
Stringread example throws std::bad_alloc #283
Comments
I'm not able to reproduce this. Could you please run this in gdb and post a backtrace? |
The example seems to run in CI (on #284): https://github.com/abs-tudelft/fletcher/runs/5535140660?check_suite_focus=true#step:7:12 |
I'm not familiar with C++ . I test it in Centos7 And Arrow 7.0 |
Starting program: /usr/local/bin/fletchgen -r names.rb -s memory.srec -l vhdl --axi Program received signal SIGABRT, Aborted. |
Could you try to use the |
It does not work: |
My Gcc Version is 8.3.1 |
From the backtrace I see that somewhere deep down in the Arrow code its trying to allocate a very large array
This leads me to believe that the recordbatch file is somehow corrupt. Does this problem persist when supplying Fletchgen with other recordbatches as well? |
I test the Hobbits.rb file get the same error: |
If you add this line to
What is being printed? |
It prints nothing |
That is weird. If the file were empty, I would expect the following error:
Just to be sure, did you recompile after adding the line? |
It seems the error arises in the "arrow::ipc::RecordBatchFileReader::Open(file)" before it returns file_result |
Sorry, I had the wrong line number there. Can you plug it in on line 236, just after:
|
The Print Result is: |
Alright, thanks. The file looks to be loaded properly there... Could you please describe how you've built and/or installed Arrow? Thanks. |
I test it in CentOS7, I install Arrow in this way: As the https://arrow.apache.org/install/ described |
I also find the same question. |
I'm afraid that I can't do much more than this without being able to reproduce the issue myself. If I were to be able to reproduce this, I would go down the backtrace in a debugger and try to verify that all variables involved in loading the file have the right values. If that's not something you can do, perhaps it would be possible to set up a Docker image mimicking your environment, and see if you can reproduce it there? If that's the case, you can pass me the image and I can take a look. |
stringread]# fletchgen -r names.rb -s memory.srec -l vhdl --sim
[INFO ]: Loading RecordBatch(es) from names.rb
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
The text was updated successfully, but these errors were encountered: