I have a file that compiled on Ubuntu 12.04 and now (with Ubuntu 14.04, a fresh install, TeXLive 2013, packages from the Ubuntu repository) not. I purged the file, and I find that without a4wide package it works. It is an error in a4wide or I should reset some variables in the texmf.cnf file?
The error message is:
! TeX capacity exceeded, sorry [input stack size=5000].
The example.tex is:
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{t1enc}
\usepackage[utf8x]{inputenc}
\usepackage[magyar]{babel}
\usepackage{amsmath}
\usepackage{a4wide}
\begin{document}
\title{This is the title}
\author{This is my name}
\maketitle
\end{document}
I have used pdflatex, but the error is same with latex command as well.
I have not used non-ASCII characters as in this question.