Lion 启动终端错误 - - 真悲催 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alex_ilex
V2EX    macOS

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

  •  
  •   alex_ilex 2012-01-15 23:33:31 +08:00 9691 次点击
    这是一个创建于 5029 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在终端启动不能,不知道在安装什么东西后就成这样了. 请问高手如何解决?莫非只能重装?

    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 条回复    2015-05-14 16:42:18 +08:00
    ant_sz
        1
    ant_sz  
       2012-01-15 23:35:11 +08:00
    装个iTerm2试试
    liuhang0077
        2
    liuhang0077  
       2012-01-15 23:35:27 +08:00
    iTerm 也不错
    alex_ilex
        3
    alex_ilex  
    OP
       2012-01-15 23:38:09 +08:00
    下载了- - 打不开,直接报上面的错误.自行关闭了...
    ant_sz
        4
    ant_sz  
       2012-01-15 23:44:00 +08:00
    @alex_ilex 悲催。。。。我也没有其他办法。

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

    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  
       2013-12-25 09:51:38 +08:00
    @alex_ilex 我也刚遇到这样的问题

    万能的 v2ex
    keating
        8
    keating  
       2014-03-12 16:32:24 +08:00
    悲剧地使用了一个叫做 whoami 命令!
    完成的 v2ex !
    lubuwei
        9
    lubuwei  
       2014-08-07 03:42:58 +08:00
    @alex_ilex 刚好也遇到了这个问题,太感谢了~
    fkccp
        10
    fkccp  
       2015-05-14 16:42:18 +08:00
    12年的帖子!
    万能的v2ex!
    3年了这个bug还在!!!
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5198 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 35ms UTC 01:15 PVG 09:15 LAX 18:15 JFK 21:15
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86