[MacRuby] #573: Creating a void pointer causes abort()
#573: Creating a void pointer causes abort() --------------------------------+------------------------------------------- Reporter: carlo@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- When creating a void pointer (`Pointer.new_with_type("v")`), the app exits: Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file TargetData.cpp, line 397. Abort trap Tested in MR 0.5b2 on Snow Leopard. -- Ticket URL: <http://www.macruby.org/trac/ticket/573> MacRuby <http://macruby.org/>
#573: Creating a void pointer causes abort() --------------------------------+------------------------------------------- Reporter: carlo@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by danielcavanagh@…): a patch to fix this issue firstly, it refactors the new-pointer code to avoid querying the size of void and reduces duplication as a side effect secondly, it alters get_sizeof() to not query llvm when passed an unsized typed, in case this happens again. really llvm should be doing this, but it doesn't so we just have to deal with it -- Ticket URL: <http://www.macruby.org/trac/ticket/573#comment:2> MacRuby <http://macruby.org/>
#573: Creating a void pointer causes abort() --------------------------------+------------------------------------------- Reporter: carlo@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | --------------------------------+------------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 0.5 => MacRuby 0.7 Comment: Fixed with r4203 ;-) -- Ticket URL: <http://www.macruby.org/trac/ticket/573#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby