I want to share what seems to be a bug.
I noticed that Stack Profile tool (3D Analyst) does not take into account coordinate system trasformations
set in the project. Therefore, if I want that that correct xyz were extracted from the raster along different profile, they must be in the same coordinate system.
Cheers