The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Stability issues fixed

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Stability issues fixed Posted: Apr 30, 2005 9:50 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Stability issues fixed
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

There's been a stability issue with the Windows and Linux based versions of BottomFeeder over the last two releases if you have libtidy enabled (the default). I just figured out the problem, and have a fix for it uploaded. The problem? In using libtidy, you have to allocate buffers. Here's the problem in the version I just fixed:


tdoc := self tidyCreate. 
output := TidyBuffer new. 
errbuf := TidyBuffer new.

See the problem? #new creates objects in Smalltalk memory. That means that the buffers can be moved in memory. At the end of the method in question, those buffers are freed. Usually, that worked fine. The problem is, if they got moved during GC before the end of the method call, then bad things (like a crash) happen on the attempt to free the pointers. So, we have to do it this way:


tdoc := self tidyCreate. 
output := TidyBuffer newInFixed. 
errbuf := TidyBuffer newInFixed.

That ensures that the buffers get created in fixed (i.e., non-movable) memory. That solves the problem of the occasional crash, and makes for a stable BottomFeeder. Check for updates, and grab the libtidy one.

Read: Stability issues fixed

Topic: Extreme Gaming Previous Topic   Next Topic Topic: Smalltalking in Boston

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use