Humorously, racisim is the more difficult to address.
If they're a pedophile I wouldn't care unless they actually practice pedophilia. We don't control our fetishes. I would imagine it would be very difficult for them to admit it and they would imagine they'll be shunned even if they don't practice it. But as long as they don't support RL child porn or practice pedophilia, no one is getting hurt and I don't care. If they are practicing pedophilia...that's a bit more difficult. I would like to think I would report them to the police. Unfortunately, I would ALSO like to believe that I would try to help them through this problem. So I'm uncertain.
With racism, I would probably try to persuade them to see things differently. But if they keep their opinion to themselves, I'd likely be okay. It's when it starts affecting their actions I would not be okay.