OK, the "xvfb-run --help" on Fedora shows:
-a --auto-servernum
try to get a free server number, starting at --server-num
(deprecated, use --auto-display instead)
-d --auto-display
use the X server to find a display number automatically
Well, the "--auto-display" option is not necessary available on
other systems. So we should stay with "-a" option but drop "-n".
More info on this bug:
by adding extra argument "-e errlog" to xvfb-run we can see the
error is indeed "Server is already active for display 0."
Now, about seg fault in "view2D":
gdb shows that it happens in "XFreeFont" in function "goodbye"
in file "src/graph/view2D/stuff2d.c".
Comparing with function "goodbye" in "src/graph/view3D/stuff3d.c",
which doesn't have "XFreeFont".
By commenting out those "XFreeFont", now there is no more
"view2D" seg faults and no more "double free or corruption (!prev)"
messages.
- Qian