Firstly, what on earth do you mean by stuck/stick code?
Secondly, try using
Netconsole and see what output you get when you run the command that breaks things. Also look at what diagnostic messages you're getting when you run that command. That info will help troubleshoot the problem.