Comments (6)
On master I don't get a segfault but I still get an internal error.
from julia.
Originally I wanted to only assign the global A
when the type was complete, but that led to #36104. Since we can't unassign globals, it seems we're stuck with zombie types. Maybe an ok fix is to return all Union{}
for the fieldtypes of such types?
from julia.
Time to revisit #32658?
from julia.
I think if we could fix dispatch with malformed types to go to the kind instead, we could treat these as malformed types which have inference disabled on them (instead of as concrete types) until the fields get populated? I am still not exactly sure of the details of that though.
Is there some part of #32658 we should try to merge and backport now?
from julia.
The easier version of this is to just never populate the field types, and you have to reload the module and try again.
from julia.
Currently, these cases do indeed cause a segfault, so how about adjusting some critical functions to avoid a segfault and at least keep the session alive?
This might result in incomplete inference, and performance might not be optimal even after populating the fields, but reloading the module can refresh the inference anyway. Otherwise we would need a more complex invalidation system (although it sounds too heavy-handled to introduce just for this issue).
from julia.
Related Issues (20)
- Mistaken "invalid redefinition" for self-referential types
- Union splitting on the same value multiple times results in dead blocks
- Use `show` for `Test.Testset` instead of always printing to `stdout` HOT 1
- `view(::Memory, ::UnitRange)` should not create a `Vector`
- 'make test' fails for julia-1.10.4 HOT 7
- SEO problem with Julia documentation? HOT 3
- 'make test' fails for julia-1.11.0-beta2 HOT 1
- `MethodError: no method matching active_module()` (leading to world age error), on Julia 1.11 HOT 2
- bugs involving `IdentityUnitRange` HOT 2
- `getindex` and `isassigned` with big `BigInt` ranges and trailing 1 indices errors HOT 2
- `const` before destructuring is inconsistent
- Source build of 1.12.0 on macOS ARM: failure of Pkg repl prompt after `3fc35778cc` HOT 2
- Add 2-arg `include` `mapexpr` to cache header?
- Feature Request: Add Syntactic Sugar for Compile-Time Constants in Function Definitions HOT 5
- Problem with `isfile_casesensitive()` on Windows HOT 1
- exit_current_timer implementation is unsound HOT 1
- export statement lowering correctness, causing regression HOT 5
- sleep_state not_sleeping is not reset as required by signals
- [Test] need shim for FieldError HOT 1
- Julia builds for `native` CPU, even with `XC_HOST = x86_64-w64-mingw32` HOT 2
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 julia.