gcore(1) uses internally ptrace(2). PT_DUMPCORE is restricted to stopped processes, therefore the bug about inconsistend core is no longer true.