Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001395 [Squeak] VM minor always 06-29-05 17:41 12-28-07 21:31
Reporter mikevdg View Status public  
Assigned To tim
Priority normal Resolution no change required  
Status closed   Product Version 3.8
Summary 0001395: [bug] 1 instVarAt: 1 put: 1.
Description Try:
    1 instVarAt: 1 put: 1.

Dumps core on my machine (Linux; debian unstable. Squeak 3.5 #5180).

The reason I'm doing that is because I'm adding a general persistence
mechanism to 'Object class' which iterates over each object's instance
variables (people are sure to ask why I'm doing that :-) ).
Additional Information
Attached Files

- Relationships
child of 0006671closed tim Build VMMaker for 3.9 

- Notes
(0001698 - 455 - 689 - 730 - 730 - 730 - 730)
KenCausey
06-29-05 17:42

"Andreas Raab" <andreas.raab@gmx.de>:

"While we can consider this a bug, it is certainly the case that you should
ask an object about its instSize before attempting this. E.g.,

    Object instSize => 0 "no instVars"
    Point instSize => 2 "two instVars"

which yields

    Integer instSize => 0
    SmallInteger instSize => 0

etc. So in short, you shouldn't even attempt to do this unless you know that
the object actually _has_ instance variables."
 
(0001699 - 577 - 746 - 799 - 799 - 799 - 799)
KenCausey
06-29-05 17:42

John M McIntosh <johnmci@smalltalkconsulting.com>:

"I'm not sure I agree with that, it's like asking an array for it's size
and verifying the index value of the
at: or at:put: you are doing. We don't do that and rely on the fact
that an boundary check will occur.
Same thing should happen here. Either throw the

  errorSubscriptBounds: index
    "Create an error notification that an improper integer was used as an
index."
or the
    self error: (self class name) , 's are not indexable'

based on the primitive failure recovery code, much like in Object>at:"
 
(0011606 - 14 - 14 - 14 - 14 - 14 - 14)
tim
12-28-07 18:52

image code bug
 
(0011609 - 59 - 59 - 59 - 59 - 59 - 59)
mikevdg
12-28-07 21:31

Tested in 3.10 beta; this code no longer crashes the image.
 

- Issue History
Date Modified Username Field Change
06-29-05 17:41 KenCausey New Issue
06-29-05 17:41 KenCausey Reporter KenCausey => mikevdg
06-29-05 17:42 KenCausey Note Added: 0001698
06-29-05 17:42 KenCausey Note Added: 0001699
08-23-07 02:01 mikevdg Issue Monitored: mikevdg
09-12-07 01:44 tim Status new => assigned
09-12-07 01:44 tim Assigned To  => tim
09-13-07 23:59 tim Relationship added child of 0006671
12-28-07 18:52 tim Status assigned => closed
12-28-07 18:52 tim Note Added: 0011606
12-28-07 18:52 tim Resolution open => no change required
12-28-07 21:31 mikevdg Note Added: 0011609
12-28-07 21:31 mikevdg Fixed in Version  => 3.10


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
59 total queries executed.
42 unique queries executed.
Powered by Mantis Bugtracker