This is the second time I got the terminal crashing on me as soon as it was opened.
login(506, 0x7fff7644b000) malloc: *** error for object 0x7ff402715e70: pointer being free was not allocated
*** set a breakpoint in malloc_error_break to debug
[Process Completed]
So I tried every solutions found on the net, delete com.apple.Terminal.plist, First Aid with Diskutility13, patched diskutility10 and none worked.
One solution that worked was booting with Recovery HD, select terminal and these commands to fix my El_Capitan Volume. It took about 3 minutes to run the repair.
- Delete com.apple.Terminal.Plist doesn’t work
- First Aid Disk Verify Failed (Disk Utility 10)
- There is no repair permission available even with Disk Utility 10
- First Aid Found Problems
- First Aid Found Problems
- First Aid Fixed Problem in Recovery HD but didn’t work
- First Aid Fixed problems found but didn’t work
- Select Recover HD to boot from Clover
- Enter the command line to repair El_Capitan Volume
- Enter the command line to repair
- It’s running the repair very quickly
- The repair is done after about 3 minutes
ls /Volumes (to get the correct name of the Volume to repair)
/Volumes/El_Capitan/usr/libexec/repair_packages --repair --standard-pkgs --volume /Volumes/El_Capitan/