in reply to Re^2: Bad file descriptor errorin thread Bad file descriptor error
So, have you looked at line 30?
What have you done to improve the error message that line 30 produces?
Maybe consider reading die to find out what that subroutine does.