There is a user on the forum (cannot access the ML) who runs into problems with the osm2pgsql tool. Artem (and maybe others), can you have a look at that please? Forum topic: http://forum.openstreetmap.org/viewtopic.php?id=413