Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 264 by juhpetersen: running yi inside dumb terminal segfaults
http://code.google.com/p/yi-editor/issues/detail?id=264

What steps will reproduce the problem?
1. run yi inside a dumb (line) terminal, eg emacs M-x shell
2. press return a few times

What is the expected output?
No crash - probably garbage control/escape characters (like for vi) or
ideally it should just give up if a screen terminal is not available.

What do you see instead?
Segfault:

$ yi
Launching custom yi: "/home/petersen/.yi/yi-x86_64-linux"
 %G [1;1H [2J
sadfsdf
*** glibc detected *** /home/petersen/.yi/yi-x86_64-linux: double free or
corruption (fasttop): 0x0000000002090690 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3f96477ec8]
/lib64/libc.so.6(cfree+0x76)[0x3f9647a486]
/home/petersen/.yi/yi-x86_64-linux[0xc3f968]
======= Memory map: ========
00400000-00ed5000 r-xp 00000000 fd:01 4147672
/home/petersen/.yi/yi-x86_64-linux
010d4000-011e3000 rwxp 00ad4000 fd:01 4147672
/home/petersen/.yi/yi-x86_64-linux
011e3000-011e5000 rwxp 011e3000 00:00 0
02078000-02099000 rwxp 02078000 00:00 0                                   
[heap]
392e000000-392e002000 r-xp 00000000 fd:01 360526
/lib64/libutil-2.9.so
392e002000-392e201000 ---p 00002000 fd:01 360526
/lib64/libutil-2.9.so
392e201000-392e202000 r-xp 00001000 fd:01 360526
/lib64/libutil-2.9.so
392e202000-392e203000 rwxp 00002000 fd:01 360526
/lib64/libutil-2.9.so
3b0d000000-3b0d01b000 r-xp 00000000 fd:01 360450
/lib64/libselinux.so.1
3b0d01b000-3b0d21a000 ---p 0001b000 fd:01 360450
/lib64/libselinux.so.1
3b0d21a000-3b0d21b000 r-xp 0001a000 fd:01 360450
/lib64/libselinux.so.1
3b0d21b000-3b0d21c000 rwxp 0001b000 fd:01 360450
/lib64/libselinux.so.1
3b0d21c000-3b0d21d000 rwxp 3b0d21c000 00:00 0
3b0d400000-3b0d505000 r-xp 00000000 fd:01 6401324
/usr/lib64/libX11.so.6.2.0
3b0d505000-3b0d705000 ---p 00105000 fd:01 6401324
/usr/lib64/libX11.so.6.2.0
3b0d705000-3b0d70b000 rwxp 00105000 fd:01 6401324
/usr/lib64/libX11.so.6.2.0
3b0d800000-3b0d810000 r-xp 00000000 fd:01 6403249
/usr/lib64/libXext.so.6.4.0
3b0d810000-3b0da10000 ---p 00010000 fd:01 6403249
/usr/lib64/libXext.so.6.4.0
3b0da10000-3b0da11000 rwxp 00010000 fd:01 6403249
/usr/lib64/libXext.so.6.4.0
3b0dc00000-3b0dc71000 r-xp 00000000 fd:01 360468
/lib64/libgio-2.0.so.0.1800.4
3b0dc71000-3b0de71000 ---p 00071000 fd:01 360468
/lib64/libgio-2.0.so.0.1800.4
3b0de71000-3b0de74000 rwxp 00071000 fd:01 360468
/lib64/libgio-2.0.so.0.1800.4
3b0e000000-3b0e009000 r-xp 00000000 fd:01 6401326
/usr/lib64/libXrender.so.1.3.0
3b0e009000-3b0e208000 ---p 00009000 fd:01 6401326
/usr/lib64/libXrender.so.1.3.0
3b0e208000-3b0e209000 rwxp 00008000 fd:01 6401326
/usr/lib64/libXrender.so.1.3.0
3b0e400000-3b0e409000 r-xp 00000000 fd:01 6403935
/usr/lib64/libXcursor.so.1.0.2
3b0e409000-3b0e609000 ---p 00009000 fd:01 6403935
/usr/lib64/libXcursor.so.1.0.2
3b0e609000-3b0e60a000 rwxp 00009000 fd:01 6403935
/usr/lib64/libXcursor.so.1.0.2
3b0e800000-3b0e805000 r-xp 00000000 fd:01 6403920
/usr/lib64/libXfixes.so.3.1.0
3b0e805000-3b0ea04000 ---p 00005000 fd:01 6403920
/usr/lib64/libXfixes.so.3.1.0
3b0ea04000-3b0ea05000 rwxp 00004000 fd:01 6403920
/usr/lib64/libXfixes.so.3.1.0
3b0ec00000-3b0ec02000 r-xp 00000000 fd:01 6403252
/usr/lib64/libXinerama.so.1.0.0
3b0ec02000-3b0ee01000 ---p 00002000 fd:01 6403252
/usr/lib64/libXinerama.so.1.0.0
3b0ee01000-3b0ee02000 rwxp 00001000 fd:01 6403252
/usr/lib64/libXinerama.so.1.0.0
3b0f000000-3b0f008000 r-xp 00000000 fd:01 6403330
/usr/lib64/libXi.so.6.0.0
3b0f008000-3b0f208000 ---p 00008000 fd:01 6403330
/usr/lib64/libXi.so.6.0.0
3b0f208000-3b0f209000 rwxp 00008000 fd:01 6403330
/usr/lib64/libXi.so.6.0.0
3b0f400000-3b0f406000 r-xp 00000000 fd:01 6403331
/usr/lib64/libXrandr.so.2.1.0
3b0f406000-3b0f606000 ---p 00006000 fd:01 6403331
/usr/lib64/libXranAborted

Please provide relevant version information:

What version of Yi are you using? darcs
What version of GHC? 6.10.1
What operating system/version? Fedora 10

Please provide any additional information below.

I am only really concerned with avoiding the segfault

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to