Then there is something called "technical default" where a company violates a bond covenant or restructures debt or any number of other possibilities.
A default would devalue bonds since after a default the expected future payments on the bond decline. Also the value of the stock may decline given the enhanced risk of a potential bankruptcy. Stockholder's would have the last rights on any money that remains from paying off debts from the sale of the companies assets upon a liquidation bankruptcy. This would make the values of the shares worthless if there is no money left to claim.