The two migrant workers who killed three persons in an eight-hour spree of violence, which began in Front Royal, Va., and ended in Salem, Va., died from self-inflicted gunshot wounds, a state medical examiner has confirmed.

An autopsy report released Saturday shows that Denziel Nathaniel Malcolm, a 33-year-old Jamaican immigrant and itinerant farmer who was wanted in connection with the earlier slaying of his girlfriend, shot himself in the head with a .357 caliber revolver, Lonnie Craft, a special agent in charge with the state police in Salem, said yesterday.

Willie (Jimmy) Anderson, 23, a Haitian national and drifter from the Gettysburg, Pa., area, died after shooting himself in the mouth with a shotgun, Craft added. Craft said the toxicology reports, which might indicate whether the men had been drinking or taking drugs at the time of the slayings, have not yet been released.

Last week's violence began when the two shot and wounded Harry Watson Harris, a 34-year-old kitchen worker from Martinsburg, W.Va., who had offered to drive them to Winchester, Va. Escaping in Harris' car, they then shot and killed State Trooper R.M. McCoy, 28, who stopped them for a routine traffic violation on I-81 near Roanoke.

Fleeing the scene, they ran to the Salem area home of Anthony Lociano, the 44-year-old president of a Roanoke area pizza franchise. There, they fatally shot and stabbed Lociano and abducted his wife, Christine, 43, in the family van. She was found shot once in the temple with a .357 revolver. Near her were the bodies of Malcolm and Anderson.