Silly technical question. If there is no "gas" as in ETH, how does LISK deals with code that runs forever, or worse locks up in some infinite loop?
There is no such thing as a silly question.
Any dapp code that malfunctions is on a separate sidechain being run on separate servers operated by the dapp owner. Malfunctions are his problem. His problems do not affect either the Lisk mainchain or DPoS delegate node network.