Search
Monday, 27th of September 2021, 18:02:10 UTC
19:22:38
Bike
drmeister: i'm seeing an object that somehow has a core:instance-stamp of zero. any way i can inspect it better? or is it just an lldb memory dump
19:53:29
drmeister
Can you reproduce it?
19:54:16
Bike
sure. (core:instance-stamp #'core:hash-index)
19:57:34
drmeister
I reproduce that on zeus
19:57:45
drmeister
(core:object-address #'core:hash-index) and then inspect the memory.
20:02:00
drmeister
https://www.irccloud.com/pastebin/sC1WDgGA/
20:02:12
drmeister
https://www.irccloud.com/pastebin/wElrEn4Z/
20:02:31
drmeister
The stamp-wtag-mtag is 00000cb4
20:04:16
drmeister
That means the stamp is in the rack.
20:06:41
drmeister
I use: udb -p 517694 --init-eval-command="set dir $CLASP_HOME/debugger-tools"
20:07:00
drmeister
after: export CLASP_HOME=/home/meister/Development/clasp
20:08:05
drmeister
It doesn't appear to load the debugger tools
20:09:59
drmeister
I needed the .udbinit file from ~/Development/clasp/debugger-tools/dot-files
20:10:12
Bike
(core::rack-stamp #'core:hash-index) is zero. the header stamp is 813
20:10:18
drmeister
It's called dot_udbinit in that source directory
20:10:38
drmeister
Ok, so should that function object have a rack stamp?
20:10:58
Bike
813 is funcallable instance
20:11:09
Bike
if it is actually a funcallable instance, it should probably have a rack stamp, right?
20:11:22
Bike
what it actually is is a core:single-dispatch-generic-function-closure
20:12:57
drmeister
Uh huh - so it probably should have a rack stamp - but it's broken and we've been getting away with it because we never dispatch on core:single-dispatch-generic-function-closure.
20:13:15
drmeister
Does that sound reasonable?
20:13:40
Bike
i think it's pretty likely we never dispatch on it, yeah
20:13:55
Bike
kpoeck filed a bug a couple months ago and it's been broken all the time without broader consequences
20:14:06
drmeister
How did he find this?
20:14:26
Bike
https://github.com/clasp-developers/clasp/issues/1122
20:15:03
Bike
probably came up in a (typep object (type-of object)) sort of test
20:27:13
Bike
I don't know where the stamps would be put in for an object like this. the generated code somewhere, maybe?
Tuesday, 28th of September 2021, 6:02:10 UTC