Git Product home page Git Product logo

Comments (9)

bradcray avatar bradcray commented on June 2, 2024

@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.

stress-tess avatar stress-tess commented on June 2, 2024

@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.

bmcdonald3 avatar bmcdonald3 commented on June 2, 2024

@bradcray no, I haven't looked into this yet, can give it a shot today.

from chapel.

bradcray avatar bradcray commented on June 2, 2024

Maybe not necessary since Pierce described it as non-blocking... I was just curious.

from chapel.

bmcdonald3 avatar bmcdonald3 commented on June 2, 2024

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.

bmcdonald3 avatar bmcdonald3 commented on June 2, 2024

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.

bradcray avatar bradcray commented on June 2, 2024

Potentially related issues (both using throws within foralls, I believe):

from chapel.

bradcray avatar bradcray commented on June 2, 2024

@vasslitvinov / @bmcdonald3 : Was this issue resolved by #23992 or does more remain here?

from chapel.

bmcdonald3 avatar bmcdonald3 commented on June 2, 2024

I confirmed that this was resolved, closing now.

from chapel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.