alex_ilex
V2EX  ›  macOS

Lion 启动终端错误 - - 真悲催

  •  
  •   alex_ilex · Jan 15, 2012 · 10118 views
    This topic created in 5234 days ago, the information mentioned may be changed or developed.
    现在终端启动不能,不知道在安装什么东西后就成这样了. 请问高手如何解决?莫非只能重装?

    Last login: Sun Jan 15 23:26:44 on console
    login(592,0x7fff7d833960) malloc: *** error for object 0x7fd420500000: pointer being freed was not allocated
    *** set a breakpoint in malloc_error_break to debug

    [进程已完成]

    查看系统Log.


    Process: login [7328]
    Path: /usr/bin/login
    Identifier: login
    Version: ??? (???)
    Code Type: X86-64 (Native)
    Parent Process: Terminal [218]

    Date/Time: 2012-01-15 18:18:06.248 +0800
    OS Version: Mac OS X 10.7.2 (11C74)
    Report Version: 9

    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Exception Type: EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000

    Application Specific Information:
    *** error for object 0x7f99f4100000: pointer being freed was not allocated

    objc[7328]: garbage collection is OFF
    10 replies    2015-05-14 16:42:18 +08:00
    ant_sz
        1
    ant_sz  
       Jan 15, 2012
    装个iTerm2试试
    liuhang0077
        2
    liuhang0077  
       Jan 15, 2012
    iTerm 也不错
    alex_ilex
        3
    alex_ilex  
    OP
       Jan 15, 2012
    下载了- - 打不开,直接报上面的错误.自行关闭了...囧
    ant_sz
        4
    ant_sz  
       Jan 15, 2012
    @alex_ilex 悲催。。。。我也没有其他办法。

    其实Mac还有一个真终端,你要不要试试能不能进去啊。。。。 貌似开机ALT,然后以-s命令可以以单用户模式启动。。。进入MacOS难得一见的真终端。
    freefcw
        5
    freefcw  
       Jan 15, 2012
    看说明似乎是释放了未分配的指针……这还真是诡异的bug
    alex_ilex
        6
    alex_ilex  
    OP
       Jan 15, 2012
    找到了原因.

    https://discussions.apple.com/thread/3232775?start=0&tstart=0

    然后用磁盘工具修复下权限就好了...

    johnwlong
    Re: Terminal crashes "pointer being freed was not allocated"
    2011-8-3 下午6:58 (in response to johnwlong)
    Ok, sounds like "Repair Disk Permisions" in the Disk Utility app will fix the problem:

    http://forums.macrumors.com/showthread.php?t=1197937

    具体的解决方法:

    http://www.simplehelp.net/2007/05/14/how-to-repair-disk-permissions-in-os-x/

    万能的google - -
    emohacker
        7
    emohacker  
       Dec 25, 2013
    @alex_ilex 我也刚遇到这样的问题

    万能的 v2ex
    keating
        8
    keating  
       Mar 12, 2014
    悲剧地使用了一个叫做 whoami 命令!
    完成的 v2ex !
    lubuwei
        9
    lubuwei  
       Aug 7, 2014
    @alex_ilex 刚好也遇到了这个问题,太感谢了~
    fkccp
        10
    fkccp  
       May 14, 2015
    12年的帖子!
    万能的v2ex!
    3年了这个bug还在!!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 07:17 · PVG 15:17 · LAX 00:17 · JFK 03:17
    ♥ Do have faith in what you're doing.