soft stool, diharea..

Sorry for TMI but I'm a FTM.  39 weeks and having soft stool and diahrea bad..when passing gas it turns out to be poo.. what could this be? Something I ate? Or in going labor signs? Ugh