IOT trap -- core dumped