If you post code someone might be able to recognize likely causes of problems.
How big is the data set you are running the logistic regression on?
You might try running the regression on a smaller data set, say 10 observations. If that runs, increase the observations.
If you have a problem with the small set then likely there is something wrong with the code.