1. WEE error

It's been a long time since I ran Windows, but today, trying to edit a program, I get:

overflow! ptr=22F96D0 pattern=zpppiddpppppwii$ size=104

This is in a pop-up terminal window. What's up?

new topic     » topic index » view message » categorize

2. Re: WEE error

Well, it is obviously an error in window.ew (https://github.com/peberlein/WEE/blob/master/window.ew), routine allocate_pack(), some discrepancy between sizeof(pattern) and pack(ptr,pattern,data).

Try also displaying this, and posting the output here

?tmp-ptr 
ifdef BITS64 then 
    ?8 
elsedef 
    ?4 
end ifdef 
?data 

Pete

EDIT: thanks greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: WEE error

petelomax said...

Try also displaying tmp-ptr, ifdef BITS64 then ?8 elsedef ?4 end ifdef, and ?data, and posting the output here

I added some formatting there because it looked like you were speaking gibberish. blink

-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: WEE error

I should have added, this happens when I try to choose a font from the menu. This is on Windows 7, and I've not had this problem before, it just suddenly popped up. Windows updates, perhaps?

40 
8 
{ 
  1, 
  0, 
  0, 
  {71,116,107,69,110,103,105,110,101,46,101}, 
  0, 
  0, 
  0 
} 
100 
8 
{104,328204,0,51864160,0,64,0,0,0,0,0,0,0,0,0,0} 
overflow! ptr=213B120 pattern=zpppiddpppppwii$ size=104 

new topic     » goto parent     » topic index » view message » categorize

5. Re: WEE error

I reproduced this on (/modified) an old copy of wee 0.36, so the root cause (if not the error message) has been around quite a while, at least 12 versions.

sizeof() said...
 
        elsif x = '$' then 
            size = align(size, max_align) 
            exit 
        else 
pack() said...
 
        elsif x = '$' then 
        else 

So pack isn't adding anything at all for the $, not quite sure what the best fix for that would be, perhaps copy max_align from sizeof() into pack() and poke some zeroes.

It is also an underflow rather than an overflow, less critical, poking less bytes than allocated, so maybe just change

 if tmp - ptr != size then 

to

 if tmp - ptr > size then 

Pete

new topic     » goto parent     » topic index » view message » categorize

6. Re: WEE error

Thanks. I made that change, and no more terminal popping up.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu