NEW YORK - The severe U.S. factory slump appeared to be getting even worse this month while sentiment among home builders shows few signs of recovering after the bursting of the housing bubble, data showed on Tuesday.

U.S. homebuilder sentiment held near all-time lows in February, suggesting sales of new single-family homes would be meager as long as mortgage foreclosures flood the market, the National Association of Home Builders said.

Factory activity in New York State fell to a record low in February, the New York Federal Reserve said, with new orders and employment falling sharply as the U.S. recession deepened.

The New York survey suggested that January's minor halt in the worsening of factory data was an aberration rather than a signal of recovery that would also bring about a rebound in the economy.

The data reaffirms other data we're getting, which shows that economic activity continues to be weak, said Jim Awad, managing director at Zephyr Management in New York.

It's possible that all four quarters will be negative this year. The data continues a pattern of bad data that will weigh on the markets for the foreseeable future.

U.S. stocks slumped and U.S. Treasury bonds, which generally benefit during tough economic times, rose sharply in price as investors moved into safer havens.

EMPIRE STATE

The New York Federal Reserve's Empire State factory index fell to minus 34.65, the lowest in the history of the index, which dates back to July 2001. It was down from January's already contractionary reading of minus 22.20.

Economists had expected a reading of minus 24, according to the median of their 46 forecasts, which ranged from minus 36.5 to negative 17.50.

The NAHB/Wells Fargo Housing Market Index eked out a one-point gain to 9 from the record low set in January, the group said in a statement. Economists polled by Reuters had predicted the index would stay at 8, the lowest reading since this measure started in January 1985.

Readings below 50 mean more builders view market conditions as poor than favorable. It was the fourth straight month the builder sentiment gauge clung to single digits, and was less than half of the reading of 20 posted a year ago.

The weakness of the day's reports highlighted the magnitude of the problems facing world leaders, who are desperately trying to stem a global economic slump.

The finance ministers and central bankers of the G7 industrial powers, fearing a 1930s-style resurgence of protectionism, ended crisis talks in Rome on Saturday with a pledge to do all they could to combat recession without distorting free trade.

With the United States already more than a year into what may yet be the worst recession since the Great Depression, clouds also appeared to be darkening over its trading partners in Europe and Asia by the day.

Worries that weakening Eastern European economies will undermine Western banks weighed on global markets on Tuesday.

Japan's economy plunged deeper into recession with its worst quarterly decline in gross domestic product since the 1974 oil crisis as the global downturn slashed demand for its exports.

The world's second-largest economy shrank 3.3 percent in the final quarter of 2008, as its heavy reliance on exports and chronically weak domestic consumption left it badly exposed to the worldwide slump.

GO WITH THE INFLOW

Amid all the gloom, foreign investors still appear willing to lend Washington the money it will need to stimulate the moribund U.S. economy, at least that was the case before Congress passed its $787 billion package of spending and tax cuts.

The Treasury Department said that net overall capital inflows into the United States rose in December, boosted by buying in U.S. Treasuries and corporate bonds.

Total net inflows rose to $74.0 billion from a revised inflow of $61.3 billion in November. The Treasury department originally reported inflows of $56.8 billion in November.

The government is likely to take heart from this report, which showed foreign investors bought a net $14.98 billion worth of Treasury notes and bonds in December, a reversal of outflows seen the previous month at $25.81 billion.

The government is expected to issue some $2 trillion worth of debt this year to fund its economic stimulus and rescue efforts -- and someone will need to buy the bonds to pay for it.

Based on the data, there is little to suggest that interest in U.S. government debt is drying up, said Vassili Sereberiakov, senior currency strategist at Wells Fargo on New York.

(Additional Reporting by Lynn Adler, Ryan Vlastelica, Gertrude Chavez-Dreyfuss)