Not necessarily the combination, but doing a gram of coke per day will definitely do loads of damage to your body (if you're serious), and taking that much Xanax will definitely cause life-threatening withdrawals when you decide to quit. If you're not trolling, you really need to seek medical help to safely get off the Xanax and stop with the cocaine pronto.