In Generation 1, bug was weak to fire, flying, rock, and poison (which is neutralized by the poison type, but displays incorrectly due to the glitch), while poison was weak to psychic, bug, and ground (which is neutralized by the bug type). However, I can't explain why it's weak to fighting.