I believe you are asking for an example of two smooth functions, $f$ and $g$, where $f''$, $g''$, and $f'$ are positive over their domains, and yet $(g\circ f)''$ is not positive over its entire domain.
In that case, a look at the second derivative of $g\circ f$:
\begin{align*}
(g\circ f)'' &= (g''\circ f)(f')^2+(g'\circ f)f''
\end{align*}
shows us that $g'$ must be negative. The simplest example of a function $g$ meeting the given conditions that I can think of is given by $g(x)=\mathrm{e}^{-x}$. The simplest $f$ that I can think of with the given conditions is given by $f(x)=x^2$. And indeed, with these choices
\begin{align*}
(g\circ f)'' &= (4x^2-1)\mathrm{e}^{-x^2}
\end{align*}
which is not always positive.