I have seen it at, and in the area of, the base of both coniferous and deciduous trees during after heavy rain (NE US). My guess would be pollutants that have "washed off" the bole and, from the rain striking it, started to bubble a bit; not a chemical reaction per se.
It would be interesting to send it off to a lab and see exactly what it is made of though.
That's my guess