Open Question: what disease might the prisoner have suffered from?

in the movie Papillon a criminal played by late Steven MacQueen is imprisoned on a remote tropical island for many years. Needless to say. condition in prison not idyllic; the prisoners are served only enough gruel to keep them alive. In one scene the main character reaches into his mouth and pull out his tooth. what disease might the prisoner have suffered from?