Matt Kartozian-USA TODAY Sports

San Francisco Giants right-hander Alex Cobb exited in the third inning Tuesday night after apparently aggravating a hip injury against the Arizona Diamondbacks.

Cobb reacted in pain after throwing his second pitch of the inning, prompting manager Gabe Kapler and a trainer to scurry to the mound. After a brief discussion, Cobb left with the trainer.

In the second inning, Cobb visibly labored while giving up four runs. Overall, he allowed five runs, five hits and one walk while striking out one in two-plus innings.

Cobb was pitching for the first time since Sept. 11 as his last scheduled start was pushed back to Tuesday due to the hip ailment.

Cobb entered Tuesday's game with a 7-6 record and 3.62 ERA in 27 starts.

Left-hander Alex Wood replaced Cobb.

More must-reads:

TODAY'S BEST
Pressure mounts on Nuggets as Nikola Jokic wins third MVP Award
Jalen Brunson shakes off injury to lift Knicks to Game 2 win
Panthers dominate Bruins to even series
LSU HC pins transfer portal struggles on reluctance to 'buy players'
Pirates announce date for 2023 No. 1 overall pick's MLB debut
Shohei Ohtani showing what would happen if he only focused on hitting
Joe Burrow shares 'support' for Bengals who requested trades
Canucks erase three-goal deficit to stun Oilers in Game 1
Watch: Pacers star ties playoff high in threes in one half
Former NFL player has major warning for Steelers QB Justin Fields: 'You can't fall into this'
Watch: Brad Marchand hurdle Panthers player on Charlie Coyle goal
LeBron James rues 'missed opportunities' against Nuggets
Cardinals star gives update on timeline for injury rehab
Police investigating Patrick Beverley incident
J.J. Watt addresses possibly ending retirement to play for Texans
Inter Miami's Lionel Messi could surpass two major MLS records
Reporter weighs in on potential Giants quarterback controversy
Cowboys to release veteran WR
Lakers want Anthony Davis' opinion in search for next head coach
Patriots exec explains why team drafted two QBs in 2024 NFL Draft