There is a subtle bug in 1.4.13 (only tested on linux) with debuglevel set greater than 0. Using a command line option with a long format string will cause a segfault. Here is an example
dgate --setdebuglevel:1
dgate --get_amap:1,%s%s%s%s
will cause a segfault, but dgate --get_amap:1,%s%s will not.
I noticed that the logfile shows output like this:
9999,0400 16 UN "get_amap:1,ðLõ(null)"
The incorrect output is also produced in 1.4.12c, but it does not trigger the segfault.