malfunction (n.)

1827, from mal- "bad, badly, wrong" + function. As a verb, by 1888. Related: Malfunctioned; malfunctioning.