Comments (9)
@pierce314159 : I need to apologize, this issue arrived at a busy time and simply slipped between the cracks. Can you let me know if it's a blocking issue for you?
@bmcdonald3 : Have you happened to have a chance to look into this issue at all?
from chapel.
@bradcray no worries! Nope this issue is non-blocking
I was able to workaround it by identifying the condition causing the error (an illegal cast from string to int when values are missing) and setting a boolean variable hadError
to true in the loop iterations that would result in the bad cast. So after adding a with ( | reduce hadError)
to the parallel loop, I can throw the error after the parallel loop completed
from chapel.
@bradcray no, I haven't looked into this yet, can give it a shot today.
from chapel.
Maybe not necessary since Pierce described it as non-blocking... I was just curious.
from chapel.
This crash is coming from this block of code in CSVmsg:
forall x in intersection {
var row = lines[x-offsets[file_idx]+data_offset].split(col_delim);
A[x] = row[colidx]: t;
}
Where the cast is calling Chapel's string casting with row[colidx]: t
, which appears to be causing the issue.
When switching to a for
instead of a forall
, I am unable to reproduce the crash (but can consistently when it's a forall
).
In the casting code, we are doing something like this:
...
var localX = x.localize();
...
retVal = c_string_to_int64_t(localX.c_str(), isErr);
...
So, I believe we are passing something we shouldn't be to these extern functions and that is causing the issue, but still speculation at this point.
from chapel.
The issue here seems to be unrelated to the string casting problem, I think it is actually throwing a TaskErrors
from within a coforall
. I've opened up #23905 to capture that.
Edit: I now realize that this was what Pierce was thinking all along, I was the one slow on the uptake here...
from chapel.
Potentially related issues (both using throws within foralls, I believe):
from chapel.
@vasslitvinov / @bmcdonald3 : Was this issue resolved by #23992 or does more remain here?
from chapel.
I confirmed that this was resolved, closing now.
from chapel.
Related Issues (20)
- [Bug]: problems using a sibling module with module include
- [Bug]: Chapel/Fortran interoperability, internal compiler error HOT 1
- until <condition> do <statement> OR do <statement> until <condition> - Low Priority
- `--report-gpu` can report false positives
- Better error message for RectangularDomain.sorted()
- Ensure all CLS inlays respect
- How should 'require something.chpl' interact with finding the main module? HOT 6
- [Bug]: Type inlay hints are printed incorrectly for several types
- CLS: Enum values print as dyno ids instead of their name
- [Bug]: CLS does not treat complex numbers as literals HOT 4
- [Bug]: CLS should not crash when resolving `string`
- [Feature Request]: CLS - mark unused functions/records/modules/variables as unused
- [Feature Request]: CLS - don't show generic code lenses when a function has a single instantiation
- [Feature Request]: Integrate CLS better with Mason
- [Documentation]: Extend the Standard Module Style guide for other decisions we've made HOT 1
- [Bug]: Subprocesses interact strangely with `valgrind`
- Type Promotion Issue with Complex Types HOT 3
- Should forall loops over default arrays of locales result in coforall + on implementation by default?
- Simplify/specialize error message for calling a method on a nilable class variable
- Dyno asserts when casting a string to bytes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chapel.