forked from hughbarney/femto
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUGS
More file actions
134 lines (124 loc) · 5.89 KB
/
Copy pathBUGS
File metadata and controls
134 lines (124 loc) · 5.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
v2.25, fLisp 0.15
- dired still does not always exit
v2.25.2, fLisp 0.16
- grep fails: Failed to create temp file
- git also fails sometimes with same error
BUGS encountered since fLisp refactoring and batch mode
- valgrind detects several memory leaks, call with:
FEMTO_DEBUG=0 valgrind --leak-check=full --track-origins=yes femto
Valgrind
========
ncurses errors are normal!
==217832== Memcheck, a memory error detector
==217832== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==217832== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==217832== Command: ./femto
==217832==
==217832== Invalid read of size 1
==217832== at 0x11657D: get_at (hilite.c:15)
==217832== by 0x11666B: parse_text (hilite.c:47)
==217832== by 0x10F376: display (display.c:159)
==217832== by 0x10F888: update_display (display.c:264)
==217832== by 0x11FB19: gui (main.c:138)
==217832== by 0x11F739: main (main.c:63)
==217832== Address 0x4ab2d60 is 0 bytes after a block of size 512 alloc'd
==217832== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==217832== by 0x1100A2: growgap (gap.c:30)
==217832== by 0x112CFE: find_buffer (buffer.c:103)
==217832== by 0x11F627: main (main.c:41)
==217832==
==217832== Invalid read of size 1
==217832== at 0x10E542: match_parens (command.c:613)
==217832== by 0x11FBAD: gui (main.c:157)
==217832== by 0x11F739: main (main.c:63)
==217832== Address 0x4ab2d60 is 0 bytes after a block of size 512 alloc'd
==217832== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==217832== by 0x1100A2: growgap (gap.c:30)
==217832== by 0x112CFE: find_buffer (buffer.c:103)
==217832== by 0x11F627: main (main.c:41)
==217832==
==217832== Conditional jump or move depends on uninitialised value(s)
==217832== at 0x10EF2B: lncolumn (display.c:85)
==217832== by 0x10C9A0: up (command.c:106)
==217832== by 0x11D5B0: e_up (femto.primitives.c:23)
==217832== by 0x11A858: evalExpr (lisp.c:1359)
==217832== by 0x1197BB: evalProgn (lisp.c:1172)
==217832== by 0x1197D5: evalProgn (lisp.c:1173)
==217832== by 0x1197D5: evalProgn (lisp.c:1173)
==217832== by 0x1197D5: evalProgn (lisp.c:1173)
==217832== by 0x1197D5: evalProgn (lisp.c:1173)
==217832== by 0x1197D5: evalProgn (lisp.c:1173)
==217832== by 0x1197D5: evalProgn (lisp.c:1173)
==217832== by 0x1197D5: evalProgn (lisp.c:1173)
==217832==
==217832==
==217832== HEAP SUMMARY:
==217832== in use at exit: 446,863 bytes in 511 blocks
==217832== total heap usage: 3,691 allocs, 3,180 frees, 24,012,209 bytes allocated
==217832==
==217832== LEAK SUMMARY:
==217832== definitely lost: 0 bytes in 0 blocks
==217832== indirectly lost: 0 bytes in 0 blocks
==217832== possibly lost: 760 bytes in 11 blocks
==217832== still reachable: 446,103 bytes in 500 blocks
==217832== suppressed: 0 bytes in 0 blocks
==217832== Rerun with --leak-check=full to see details of leaked memory
==217832==
==217832== Use --track-origins=yes to see where uninitialised values come from
==217832== For lists of detected and suppressed errors, rerun with: -s
==217832== ERROR SUMMARY: 183 errors from 3 contexts (suppressed: 0 from 0)
When using any non ASCII character in a buffer:
==244326== Conditional jump or move depends on uninitialised value(s)
==244326== at 0x48F76B4: utf8_internal_loop (loop.c:335)
==244326== by 0x48F76B4: __gconv_transform_utf8_internal (skeleton.c:619)
==244326== by 0x497B813: mbrtowc (mbrtowc.c:85)
==244326== by 0x490989B: mbtowc (mbtowc.c:63)
==244326== by 0x10EE09: display (display.c:154)
==244326== by 0x10F1C9: update_display (display.c:264)
==244326== by 0x11B70A: gui (main.c:141)
==244326== by 0x10C6BE: main (main.c:63)
==244326==
==244326== Conditional jump or move depends on uninitialised value(s)
==244326== at 0x4984A43: wcwidth_table_lookup (wchar-lookup.h:88)
==244326== by 0x4984A43: internal_wcwidth (wcwidth.h:35)
==244326== by 0x4984A43: wcwidth (wcwidth.c:24)
==244326== by 0x10EE1A: display (display.c:155)
==244326== by 0x10F1C9: update_display (display.c:264)
==244326== by 0x11B70A: gui (main.c:141)
==244326== by 0x10C6BE: main (main.c:63)
=
==4492== Invalid free() / delete / delete[] / realloc()
==4492== at 0x484787F: free (vg_replace_malloc.c:989)
==4492== by 0x495EF24: _IO_deallocate_file (libioP.h:969)
==4492== by 0x495EF24: fclose@@GLIBC_2.2.5 (iofclose.c:74)
==4492== by 0x10BC65: eval_string (femto.c:182)
==4492== by 0x10FCE9: user_func (command.c:975)
==4492== by 0x10BE05: gui (femto.c:226)
==4492== by 0x10BA23: main (femto.c:112)
==4492== Address 0x4d9f3e0 is 0 bytes inside a block of size 504 free'd
==4492== at 0x484787F: free (vg_replace_malloc.c:989)
==4492== by 0x495EF24: _IO_deallocate_file (libioP.h:969)
==4492== by 0x495EF24: fclose@@GLIBC_2.2.5 (iofclose.c:74)
==4492== by 0x10BC65: eval_string (femto.c:182)
==4492== by 0x10FCE9: user_func (command.c:975)
==4492== by 0x11457C: execute_key (key.c:418)
==4492== by 0x10EF5D: e_execute_key (command.c:703)
==4492== by 0x11E8AE: evalExpr (lisp.c:1659)
==4492== by 0x11CF3E: evalProgn (lisp.c:1408)
==4492== by 0x11CF58: evalProgn (lisp.c:1409)
==4492== by 0x11E2B5: evalExpr (lisp.c:1593)
==4492== by 0x11CF3E: evalProgn (lisp.c:1408)
==4492== by 0x11D33C: evalCond (lisp.c:1458)
==4492== Block was alloc'd at
==4492== at 0x4844818: malloc (vg_replace_malloc.c:446)
==4492== by 0x49684DC: open_memstream (memstream.c:48)
==4492== by 0x10BC0D: eval_string (femto.c:178)
==4492== by 0x10FCE9: user_func (command.c:975)
==4492== by 0x11457C: execute_key (key.c:418)
==4492== by 0x10EF5D: e_execute_key (command.c:703)
==4492== by 0x11E8AE: evalExpr (lisp.c:1659)
==4492== by 0x11CF3E: evalProgn (lisp.c:1408)
==4492== by 0x11CF58: evalProgn (lisp.c:1409)
==4492== by 0x11E2B5: evalExpr (lisp.c:1593)
==4492== by 0x11CF3E: evalProgn (lisp.c:1408)
==4492== by 0x11D33C: evalCond (lisp.c:1458)