I have had the problem I usually attribute it to crappy pumps stressing the stem against the rim. Nice tubes have a nut that holds the stem in place. Also make sure that the tube is the right size positioned correctly when inflated, as far as repair you could try copious amounts of super glue don't expect excellent results.