1$ bash test_fputwc.sh
2Japanese_Japan.932
3test_fputwc: No space left on device
4failed!errno=28r=655355stdout test finished
6success...0x672c
7filetest finished
8本
9$
1$ bash test_write.sh
2[_write(1, "\x96", 1)]3test_write:: No space left on device
4r=-1 errno=285[_write(1, "\x96\x7b", 2)]6本r=27GNU gdb (GDB)13.18Copyright (C)2023 Free Software Foundation, Inc.
9License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>10This is free software: you are free to change and redistribute it.
11There is NO WARRANTY, to the extent permitted by law.
12Type "show copying" and "show warranty"for details.
13This GDB was configured as "x86_64-w64-mingw32".14Type "show configuration"for configuration details.
15For bug reporting instructions, please see:
16<https://www.gnu.org/software/gdb/bugs/>.
17Find the GDB manual and other documentation resources online at:
18<http://www.gnu.org/software/gdb/documentation/>.
1920For help, type"help".21Type "apropos word" to search for commands related to "word"...
22Reading symbols from ./test_fputwc...
23(gdb) Starting program: C:\msys64\home\user\mingw\test_fputwc.exe
24[New Thread 16188.0x4b88]25test_fputwc: No space left on device
26failed!errno=28r=6553527[Thread 16188.0x4b88 exited with code 0]28[Inferior 1(process 16188) exited normally]29(gdb) Breakpoint 1 at 0x7ffe8fbcfaeb
30(gdb) Starting program: C:\msys64\home\user\mingw\test_fputwc.exe
31[New Thread 17372.0x62bc]3233Thread 1 hit Breakpoint 1, 0x00007ffe8fbcfaeb in msvcrt!_write ()34 from C:\WINDOWS\System32\msvcrt.dll
35(gdb)#0 0x00007ffe8fbcfaeb in msvcrt!_write () from C:\WINDOWS\System32\msvcrt.dll36#1 0x00007ffe8fbf719e in msvcrt!_flsbuf () from C:\WINDOWS\System32\msvcrt.dll37#2 0x00007ffe8fbfd521 in msvcrt!fputs () from C:\WINDOWS\System32\msvcrt.dll38#3 0x00007ffe8fbfd5ed in msvcrt!fputwc () from C:\WINDOWS\System32\msvcrt.dll39#4 0x00007ff74ccd14c4 in test (fp=0x7ffe8fc3fa30 <msvcrt!_iob+48>) at test_fputwc.c:640#5 0x00007ff74ccd155e in main (argc=1, argv=0xd4870) at test_fputwc.c:1641(gdb) rax 0x40 6442rbx 0x7ffe8fc3fa30 14073131040619243rcx 0x1 144rdx 0x5ffd90 629083245rsi 0x1 146rdi 0x0 047rbp 0x1 0x1
48rsp 0x5ffd00 0x5ffd00
49r8 0x1 150r9 0x5ffdb6 629087051r10 0x0 052r11 0x5ffd40 629075253r12 0xd48b0 87057654r13 0x0 055r14 0x5ffdb4 629086856r15 0x0 057rip 0x7ffe8fbcfaeb 0x7ffe8fbcfaeb <msvcrt!_write+27>58eflags 0x206 [ PF IF ]59cs 0x33 5160ss 0x2b 4361ds 0x2b 4362es 0x2b 4363fs 0x53 8364gs 0x2b 4365(gdb) 0x5ffd90: 0x96 0xff 0xff 0xff 0x00 0x00 0x00 0x00
660x5ffd98: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
67(gdb)(gdb) Continuing.
68test_fputwc: No space left on device
69failed!errno=28r=6553570[Thread 17372.0x62bc exited with code 0]71[Inferior 1(process 17372) exited normally]72(gdb)
1=== test_write_locale_C ===2[_write(1, "\x96", 1)]3睦=14[_write(1, "\x96\x7b", 2)]5本r=26=== test_write_locale_.932 ===7[_write(1, "\x96", 1)]8test_write:: No space left on device
9r=-1 errno=2810[_write(1, "\x96\x7b", 2)]11本r=212=== test_write_locale_.UTF-8 ===13setlocale fail!14=== test_write_locale_.65001 ===15setlocale fail!16=== test_write_locale_.20932 ===17[_write(1, "\xcb", 1)]18test_write:: No space left on device
19r=-1 errno=2820[_write(1, "\xcb\xdc", 2)]21本r=2
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2023/12/16 08:18 編集
2023/12/16 09:21
退会済みユーザー
2023/12/16 10:56 編集
退会済みユーザー
2023/12/16 15:28
退会済みユーザー
2023/12/16 17:06