Skip to main content
  1. Home
  2. Space
  3. Computing
  4. Web
  5. News

This new tool from MIT can debug a program in a minute

Add as a preferred source on Google

If you’ve got a minute, you’ve got enough time to find bugs in your Ruby on Rails-based Web application. It’s not because you’re necessarily oh so adept at debugging your own code (though you may be), but rather thanks to a new tool from MIT. A new debugger from the Massachusetts Institute of Technology takes no more than 64 seconds to analyze any program and find its problems.

By taking advantage of certain idiosyncrasies inherent to the Ruby language, the MIT system was able to find 23 unnoticed security issues in 50 popular Web applications. But most impressive of all, the tool took no more than 64 seconds to analyze any single app.

Recommended Videos

This is made possible by Ruby’s reliance on defining very basic operations in libraries. When MIT researchers rewrote those libraries, the operations contained in those collections were forced to describe their behavior using a logical language. This, Katherine Noyes of the IDG News Service explains, “turns the Rails interpreter, which converts high-level Rails programs into machine-readable code, into a static-analysis tool that describes how data flows through the program.” Ultimately, researchers were left with a line-by-line breakdown of how a program interprets data.

MIT has named its debugging tool Space, and it focuses specifically on an application’s data-access procedures. This allows researchers to see what operations a user can exercise on certain data, and in what scenarios. Based on the descriptions the rewritten libraries provide, Space can tell how closely a program follows protocol — deviations suggest a security flaw.

“When you look at something like a Web application written in language like Ruby on Rails, if you try to do a conventional static analysis, you typically find yourself mired in this huge bog,” said Daniel Jackson, professor in the Department of Electrical Engineering and Computer Science in a statement to MIT News. “And this makes it really infeasible in practice.” But thanks to Space, scientists now have a much more feasible solution.

Full results of the study will be presented next month at the International Conference on Software Engineering held in Austin, Texas.

Lulu Chang
Fascinated by the effects of technology on human interaction, Lulu believes that if her parents can use your new app…
SpaceX Starship reaches orbit for the first time but its historic flight ends early
Starship reaches orbit for the first time and deploys 26 Starlink satellites before an early splashdown.
spacex-starship

After 13 suborbital test flights and more than $15 billion in development costs, SpaceX's Starship has finally reached orbit. The 407-foot megarocket, the most powerful ever built, lifted off from Starbase, Texas, on Monday and delivered its first real payload on it's 14th attempt. The celebration came with an asterisk, though, since SpaceX had to cut the planned 10-hour mission to roughly three hours.

https://twitter.com/SpaceX/status/2104601695711904180

Read more
Starship is finally going orbital, and SpaceX has picked September 22
Flight 14 is aiming for orbit, Starlink V3 deployment and a very long day in space.
Starship rocket.

SpaceX is finally ready to give Starship its biggest test yet. The company says the massive rocket's 14th test flight is scheduled for September 22, when it will attempt to put the upper stage into Earth orbit for the first time. The launch is currently pending regulatory approval, with a 75-minute window opening at 7:15 a.m. CT.

Starship has 26 Starlink satellites to deliver

Read more
Want a city on the Moon? Scientists say there’s not enough water
A billion tons still comes up short
Artist impression of activities in a Moon Base.

For decades, humanity has looked up at the Moon and wondered what it would be like to live on it. Think sprawling cities, factories, research centers, and permanent human settlements. Unfortunately, there is one fairly fundamental problem with that vision.

A new study published in Frontiers in Space Technologies argues that even the Moon's potentially enormous reserves of frozen water may be nowhere near enough to support city-sized populations sustainably. Researchers Martin Elvis and Jonathan McDowell estimate that the permanently shadowed regions near the lunar poles could contain roughly one billion tons of water. It sounds like an extraordinary amount until you put a million thirsty humans next to it.

Read more