All coordinates expressed in this question are (longitude, latitude), the default for proj4. London is at (-0.1460838, 51.5170986), and San Francisco is at (-122.419302, 37.775549). According to the proj4's geod program, the geographic bearing of San Francisco from London is -43.204268653666211719, and the great circle is 8624363.307m long.
To find out where San Francisco is on an Azimuthal Equidistant projection centred in London, I run the following:
cs2cs -I +proj=aeqd +lat_0=51.5170986 +lon_0=-0.1460838 +units=m +to +proj=lonlat -122.419302 37.775549
And it gives me:
-5909365.29 6298188.68
Next, I transform these coordinates back to geographic coordinates:
cs2cs +proj=aeqd +lat_0=51.5170986 +lon_0=-0.1460838 +units=m +to +proj=lonlat -5909365.29 6298188.68
And it gives me:
57d53'40.285"W 37d48'10.166"N 0.000
Which is a totally different location. Have I done something wrong to get this result, or is it a bug?