[I tried to edit the Title to "Curve modifier appears to cause weird deformations", but the edit is not saved correctly, so the initial inaccurate title is kept -- apologies.]
**System Information**
Windows 10 84 bit, NVidia GTX 950m
**Blender Version**
2.78c
**Short description of error**
Curve modifier appears to work correctly only when used along the X axis
**Exact steps for others to reproduce the error**
(1) Create a new blender file.
(2) Do *not* delete the default cube. From now on, it is best if you switch to the top ortho view and press Z to enable wireframe view.
(3) Click to enable the "Snap during transform" button (magnet icon), to make sure any transformations are snapped to the grid).
(4) Select and scale the default cube along the X axis (by pressing S, then X and then typing 10 followed by ENTER), so that it is extended to 20 Blender units along the X axis.
(5) Insert 9 cuts (edge loops) perpendicular to the X axis in the extended cube object, by selecting the cube, TABing into edit mode, pressing CTRL-R, X and then 9 and ENTER. This is done to allow it to be deformed later on. Exit edit more.
(6) Make sure the 3D cursor is at the origin of the cube object, by selecting the cube, pressing SHIFT-S, and choosing Cursor to selected.
(7) Add a path curve, which by default appears as a small straight line along the X axis.
(8) Select the path curve, and press S, X and then 5 followed by ENTER, to scale it 5 times along the X axis, so that it has the same length (20 Blender units) as the extended cube object.
(9) Make sure the 3D cursor is at the (0,0,0) origin point.
(10) Select the cube, press CTRL-SHIFT-ALT-C, and select Origin to 3D Cursor, to make sure the origin of the cube is at (0,0,0) point.
(11) Select the path curve, press CTRL-SHIFT-ALT-C and select Origin to 3D Cursor, to be sure that the origin of the path coincides with the origin of the cube object, which is at (0,0,0).
(12) Add a curve modifier to the cube, and select the path curve as the Object.
(13) Now deform the path and notice how the cube object (with its interim edge loops) deforms in weird and unexpected ways, e.g. its width varies more than it should, the edges at the end rotate in weird ways, and some of the faces may double up.
To confirm that these unusual deformations happen with other origin points, please repeat the above steps, setting the point (-10,0,0) as the origin of both the cube and the path curve.