RICHMOND — A proposal that would have allowed voluntary background checks for private sales at gunshows in Virginia failed to pass a Senate committee Monday.

The Senate Courts of Justice Committee rejected the bill by a vote of 3 to 11.

A compromise on the issue was reached last week and was the last vehicle for the measure to survive this session. Similar measures have failed in recent years and other gun-control measures proposed this legislative session have also been spiked.

In Virginia, federally licensed gun dealers must conduct background checks, but state law does not require background checks on gun sales between individuals.

Sen. John S. Edwards (D-Roanoke), who worked on the compromise legislation, argued that the proposal would help sellers who want access to the national database. Opponents balked at attempts to make the background checks mandatory for private sales.