A General Motors Corp. bankruptcy filing seemed inevitable after a rebellion by its bondholders forced it to withdraw on Wednesday a plan to swap bond debt for company stock.