Re: [hatari-devel] readline linked with ncurses

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


I managed to get some more now:

C:\Appl\hatari>gdb hatari-debug.exe
GNU gdb (rubenvb-4.8.0) 7.5.91.20130322-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
For bug reporting instructions, please see:
<mingw-w64-public@xxxxxxxxxxxxxxxxxxxxx>...
Reading symbols from C:\Appl\hatari\hatari-debug.exe...done.
(gdb) run
Starting program: C:\Appl\hatari\hatari-debug.exe
[New Thread 2780.0x1b14]
[New Thread 2780.0xaac]
[New Thread 2780.0xdd0]
[New Thread 2780.0x1644]
[New Thread 2780.0x1160]
[New Thread 2780.0x167c]
[New Thread 2780.0x1bd0]
[New Thread 2780.0x170c]
[New Thread 2780.0x1a34]
[New Thread 2780.0x1914]
[New Thread 2780.0x1bf8]
[New Thread 2780.0x1af8]
warning: HEAP[hatari-debug.exe]:
warning: HEAP: Free Heap block 3cdf2b0 modified at 3cdf308 after it was freed


Program received signal SIGTRAP, Trace/breakpoint trap.
0x0000000077c9f0b2 in ntdll!EtwpCreateEtwThread ()
   from C:\WINDOWS\system32\ntdll.dll
(gdb) bt
#0  0x0000000077c9f0b2 in ntdll!EtwpCreateEtwThread ()
   from C:\WINDOWS\system32\ntdll.dll
#1  0x0000000077c4fd34 in ntdll!RtlIsDosDeviceName_U ()
   from C:\WINDOWS\system32\ntdll.dll
#2  0x0000000077cf0d20 in ntdll!RtlGetFileMUIPath ()
   from C:\WINDOWS\system32\ntdll.dll
#3  0x0000000003cdf2b0 in ?? ()
#4  0x0000000003cdf308 in ?? ()
#5  0x00000000ffffffff in ?? ()
#6  0x0000000000000016 in ?? ()
#7  0x0000000000000000 in ?? ()
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00000000659a430f in set_curterm_sp (sp=0x0, termp=0x3cdf2c0)
    at /home/solskogen/mingw-w64-builder/trunk/lib/ncurses/ncurses/tinfo/lib_cur
_term.c:99
99      /home/solskogen/mingw-w64-builder/trunk/lib/ncurses/ncurses/tinfo/lib_cu
r_term.c: No such file or directory.
(gdb) bt
#0  0x00000000659a430f in set_curterm_sp (sp=0x0, termp=0x3cdf2c0)
    at /home/solskogen/mingw-w64-builder/trunk/lib/ncurses/ncurses/tinfo/lib_cur
_term.c:99
#1  0x00000000659ab51a in _nc_setupterm_ex (tp=0x22f9f0,
    tname=0x659e3175 <tc_strings+469> "dumb", Filedes=1, errret=0x22f9f8,
    reuse=1)
    at /home/solskogen/mingw-w64-builder/trunk/lib/ncurses/ncurses/tinfo/lib_set
up.c:763
#2  0x00000000659a24e2 in tgetent_sp (sp=0x0,
    bufp=0x3cde2a0 "\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º
\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º
\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º
\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º"...,
    name=0x659e3175 <tc_strings+469> "dumb")
    at /home/solskogen/mingw-w64-builder/trunk/lib/ncurses/ncurses/tinfo/lib_ter
mcap.c:103
#3  0x00000000659a3935 in tgetent (
    bufp=0x3cde2a0 "\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º
\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º
\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º
\rd-º\rd-º\rd-º\rd-º\rd-º\rd-º"...,
    name=0x659e3175 <tc_strings+469> "dumb")
    at /home/solskogen/mingw-w64-builder/trunk/lib/ncurses/ncurses/tinfo/lib_ter
mcap.c:206
#4  0x00000000659976c6 in _rl_init_terminal_io (terminal_name=0x0)
    at /home/solskogen/mingw-w64-builder/trunk/lib/readline/terminal.c:452
#5  0x000000006598269e in readline_initialize_everything ()
    at /home/solskogen/mingw-w64-builder/trunk/lib/readline/readline.c:1066
#6  0x000000006598254e in rl_initialize ()
    at /home/solskogen/mingw-w64-builder/trunk/lib/readline/readline.c:968
#7  0x0000000065981541 in readline (prompt=0x617e71 <OpcodeTable+32817> "> ")
    at /home/solskogen/mingw-w64-builder/trunk/lib/readline/readline.c:334
#8  0x000000000055b880 in DebugUI_GetCommand (input=<optimized out>)
    at /home/hatari/hatari-builder2/hatari/src/debug/debugui..c:733
#9  __fu5_rl_attempted_completion_function ()
    at /home/hatari/hatari-builder2/hatari/src/debug/debugui.c:976
#10 0x0000000000431c7b in ShortCut_Debug ()
    at /home/hatari/hatari-builder2/hatari/src/shortcut.c:202
#11 ShortCut_ActKey ()
    at /home/hatari/hatari-builder2/hatari/src/shortcut.c:303
#12 0x000000000043b15c in Video_InterruptHandler_VBL ()
    at /home/hatari/hatari-builder2/hatari/src/video.c:2923
#13 0x000000000045f504 in m68k_run_1 ()
    at /home/hatari/hatari-builder2/hatari/src/uae-cpu/newcpu.c:1744
#14 m68k_go (may_quit=<optimized out>)
    at /home/hatari/hatari-builder2/hatari/src/uae-cpu/newcpu.c:1839
#15 0x0000000000425d01 in M68000_Start ()
    at /home/hatari/hatari-builder2/hatari/src/m68000.c:258
#16 0x0000000000426b85 in SDL_main (argc=1, argv=<optimized out>)
    at /home/hatari/hatari-builder2/hatari/src/main.c:790
#17 0x0000000000569db6 in console_main (argc=1, argv=0x2084760)
    at /home/solskogen/mingw-w64-builder/trunk/lib/sdl/src/main/win32/SDL_win32_
main.c:315
#18 0x0000000000569eed in WinMain (hInst=0x400000, hPrev=0x0,
    szCmdLine=0x303b62 "", sw=10)
    at /home/solskogen/mingw-w64-builder/trunk/lib/sdl/src/main/win32/SDL_win32_
main.c:398
#19 0x00000000005af009 in main (flags=<optimized out>,
    cmdline=<optimized out>, inst=<optimized out>)
    at /home/solskogen/mingw-w64-builder/trunk/lib/mingw-w64/mingw-w64-crt/crt/c
rt0_c.c:18
#20 0x00000000004013e5 in __tmainCRTStartup ()
    at /home/solskogen/mingw-w64-builder/trunk/lib/mingw-w64/mingw-w64-crt/crt/c
rtexe.c:315
#21 0x00000000004014e8 in WinMainCRTStartup ()
    at /home/solskogen/mingw-w64-builder/trunk/lib/mingw-w64/mingw-w64-crt/crt/c
rtexe.c:167
(gdb) c
Continuing.
warning: HEAP[hatari-debug.exe]:
warning: HEAP: Free Heap block 3cdf2f0 modified at 3cdf388 after it was freed


Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 2780.0x1a34]
0x0000000077c9f0b2 in ntdll!EtwpCreateEtwThread ()
   from C:\WINDOWS\system32\ntdll.dll
(gdb) bt
#0  0x0000000077c9f0b2 in ntdll!EtwpCreateEtwThread ()
   from C:\WINDOWS\system32\ntdll.dll
#1  0x0000000077c4fd34 in ntdll!RtlIsDosDeviceName_U ()
   from C:\WINDOWS\system32\ntdll.dll
#2  0x0000000077cf0d20 in ntdll!RtlGetFileMUIPath ()
   from C:\WINDOWS\system32\ntdll.dll
#3  0x0000000003cdf2f0 in ?? ()
#4  0x0000000003cdf388 in ?? ()
#5  0x00000000ffffffff in ?? ()
#6  0x000000000000014f in ?? ()
#7  0x0000000000300158 in ?? ()
#8  0x0000000000000000 in ?? ()
(gdb) c
Continuing.
[Inferior 1 (process 2780) exited with code 03]






With this said, I looks like readline and ncurses on Windows are is a good match. 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/