终端2.0异常退出
Tofloor
poster avatar
180******32
deepin
2016-09-14 23:02
Author
本帖最后由 zlhgo 于 2016-9-14 15:04 编辑

https://bbs.deepin.org/user/33235  hello, 老王。


新版本终端在执行程序(top, ping ...)的时候按ctrl+shift+j 或者通过右键菜单分屏的时候会异常退出。 还有我从15.2升级上来的,新标签没有名字,这个刚才在另外一个帖子你看到过。 谢谢,目前有这两个问题。


异常退出时的错误信息:
  1. zlh: ~/sources/deepin/deepin-terminal
  2. → git log -1
  3. commit 46a9eeb44ca024ee09c870f4a9594f3d0dce58af
  4. Author: Andy Stewart
  5. Date:   Wed Sep 14 11:49:59 2016 +0800

  6.     Make font 'YaHei Consolas Hybrid' can use in font selected list.
Copy the Code
  1. zlh: ~/sources/deepin/deepin-terminal
  2. → ./main

  3. (main:16046): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
  4. 段错误
Copy the Code


Reply Favorite View the author
All Replies
avatar
180******32
deepin
2016-09-15 02:15
#1
本帖最后由 zlhgo 于 2016-9-14 18:19 编辑

恢复回深度默认的 .bashrc 后也不异常退出了,其它也一切正常了。看来很大可能是 bash-it 的问题
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:09
#2
https://bbs.deepin.org/post/43378
恢复回深度默认的 .bashrc 后也不异常退出了,其它也一切正常了。看来很大可能是 bash-it 的问题 ...

如果在有问题就在终端中运行
gdb deepin-terminal

gdb 启动后按 r 回车运行
段错误以后, 按 bt 回车

把堆栈粘贴一下, 我就知道问题出在什么地方了
Reply View the author
avatar
180******32
deepin
2016-09-15 05:14
#3
https://bbs.deepin.org/post/43378
如果在有问题就在终端中运行
gdb deepin-terminal
  1. zlh: ~
  2. → gdb deepin-terminal
  3. GNU gdb (Debian 7.10-1+b1) 7.10
  4. Copyright (C) 2015 Free Software Foundation, Inc.
  5. License GPLv3+: GNU GPL version 3 or later
  6. This is free software: you are free to change and redistribute it.
  7. There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  8. and "show warranty" for details.
  9. This GDB was configured as "x86_64-linux-gnu".
  10. Type "show configuration" for configuration details.
  11. For bug reporting instructions, please see:
  12. .
  13. Find the GDB manual and other documentation resources online at:
  14. .
  15. For help, type "help".
  16. Type "apropos word" to search for commands related to "word"...
  17. Reading symbols from deepin-terminal...(no debugging symbols found)...done.
  18. (gdb) r
  19. Starting program: /usr/bin/deepin-terminal
  20. [Thread debugging using libthread_db enabled]
  21. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  22. [New Thread 0x7fffec26d700 (LWP 680)]
  23. [New Thread 0x7fffeba6c700 (LWP 681)]
  24. [New Thread 0x7fffeb26b700 (LWP 682)]
  25. [New Thread 0x7fffd8caa700 (LWP 683)]
  26. [Thread 0x7fffeba6c700 (LWP 681) exited]
  27. [New Thread 0x7fffeba6c700 (LWP 763)]

  28. (deepin-terminal:676): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed

  29. Program received signal SIGSEGV, Segmentation fault.
  30. strlen () at ../sysdeps/x86_64/strlen.S:106
  31. 106        ../sysdeps/x86_64/strlen.S: 没有那个文件或目录.
  32. (gdb) bt
  33. #0  strlen () at ../sysdeps/x86_64/strlen.S:106
  34. #1  0x0000000000486820 in ?? ()
  35. #2  0x0000000000485c76 in ?? ()
  36. #3  0x0000000000481446 in ?? ()
  37. #4  0x000000000048146b in ?? ()
  38. #5  0x00007ffff4803fa5 in g_closure_invoke ()
  39.    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  40. #6  0x00007ffff4815fc1 in ?? ()
  41.    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  42. #7  0x00007ffff481ed5c in g_signal_emit_valist ()
  43.    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  44. #8  0x00007ffff481f08f in g_signal_emit ()
  45.    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  46. #9  0x00007ffff664e17e in gtk_widget_realize ()
  47.    from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  48. #10 0x00007ffff664e3f8 in gtk_widget_map ()
  49.    from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  50. #11 0x00007ffff657f9d2 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  51. #12 0x00007ffff643aacf in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  52. #13 0x00007ffff657fb31 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  53. #14 0x00007ffff4804122 in ?? ()
  54.    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  55. #15 0x00007ffff481e9a6 in g_signal_emit_valist ()
  56.    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  57. ---Type to continue, or q to quit---
Copy the Code


这些信息么?
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:22
#4

你打开远程协助, 把分享码发我邮件吧, wangyong@deepin.com , 我远程协助登陆进来给你看。
Reply View the author
avatar
180******32
deepin
2016-09-15 05:25
#5
https://bbs.deepin.org/post/43378
你打开远程协助, 把分享码发我邮件吧,  , 我远程协助登陆进来给你看。 ...

已发送到你邮箱
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:40
#6
https://bbs.deepin.org/post/43378
已发送到你邮箱

你尝试 https://ci.deepin.io/job/deepin- ... 0.15+r182_amd64.deb 安装这个版本, 远程协助带宽不够, 太卡
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:42
#7
让我想一想
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:45
#8
麻烦再尝试一下这个版本, 刚才提交补丁的代码写错变量了:https://ci.deepin.io/job/deepin- ... 0.15+r183_amd64.deb
不好意思, 我不知道为啥远程协助打不了字了, 用这种添堵的方式和你沟通(哎, 不会用五笔打字也是悲剧啊)
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:48
#9
内心有点崩溃, 还没有头绪, 你用的什么shell? 我自己在本机模拟一下, 不耽误你时间了。
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:49
#10
有QQ吗? 加个好友吧, 沟通好累。 ;)
Reply View the author
avatar
wangyong
deepin
2016-09-15 05:58
#11
安装 bash-it 以后问题重现了, 等我调研一下, 看看怎么修复
Reply View the author
avatar
180******32
deepin
2016-09-15 06:05
#12
https://bbs.deepin.org/post/43378
安装 bash-it 以后问题重现了, 等我调研一下, 看看怎么修复

谢谢。小于10个字符
Reply View the author
avatar
wangyong
deepin
2016-09-15 06:22
#13
https://bbs.deepin.org/post/43378
谢谢。小于10个字符

bash-it 这种插件会导致shell不会返回 title 的问题, 已经成功写了补丁防御了这种插件攻击了。

安装 https://ci.deepin.io/job/deepin- ... 0.15+r185_amd64.deb 这个版本会解决你的问题的, 我已经测试了。
Reply View the author
Comments
w113124
2016-09-22 03:46
安装了几个版本,终于不出错了。。。
avatar
180******32
deepin
2016-09-15 06:26
#14
https://bbs.deepin.org/post/43378
bash-it 这种插件会导致shell不会返回 title 的问题, 已经成功写了补丁防御了这种插件攻击了。

安装 ht ...

非常感谢。效率真高。32个赞。
Reply View the author
avatar
Lyvnee
deepin
2016-09-15 15:58
#15
真心为老王点赞
Reply View the author
avatar
呆了个呆
deepin
2016-09-22 03:47
#16
https://bbs.deepin.org/post/43378
bash-it 这种插件会导致shell不会返回 title 的问题, 已经成功写了补丁防御了这种插件攻击了。

安装 ht ...

留个脚印,暂时解决了我的几个问题。还有选中复制的功能在哪里,有人说有,但我没有找到?
Reply View the author
avatar
132******13
deepin
2016-09-22 04:29
#17
真的强
Reply View the author