summary refs log tree commit diff stats
path: root/widgets/exline.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-05-04 14:31:16 +0000
committerDrew DeVault <sir@cmpwn.com>2019-05-05 01:07:44 -0400
commitde122b16ee3e4c3c12576f311938a63ee6eeedbe (patch)
tree5b64ce4c366f6d2c00ff308bcc1954d8975e7844 /widgets/exline.go
parent5feb7dede93900b0012e3047985d9a1739f3ed5d (diff)
downloadaerc-de122b16ee3e4c3c12576f311938a63ee6eeedbe.tar.gz
lib/ui: fix UI.Exit race condition
UI.Exit can be accessed from goroutines drawing, goroutines executing
commands and goroutines waiting for events.

    Write at 0x00c0002b2040 by main goroutine:
      main.main.func1()
          /home/simon/src/aerc2/aerc.go:76 +0x33d
      git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).BeginExCommand.func1()
          /home/simon/src/aerc2/widgets/aerc.go:245 +0x89
      git.sr.ht/~sircmpwn/aerc2/widgets.(*ExLine).Event()
          /home/simon/src/aerc2/widgets/exline.go:131 +0x442
      git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).Event()
          /home/simon/src/aerc2/widgets/aerc.go:116 +0x83c
      git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).simulate()
          /home/simon/src/aerc2/widgets/aerc.go:109 +0x12a
      git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).Event()
          /home/simon/src/aerc2/widgets/aerc.go:142 +0x722
      git.sr.ht/~sircmpwn/aerc2/lib/ui.(*UI).Tick()
          /home/simon/src/aerc2/lib/ui/ui.go:75 +0x33f
      main.main()
          /home/simon/src/aerc2/aerc.go:94 +0x497

    Previous read at 0x00c0002b2040 by goroutine 19:
      git.sr.ht/~sircmpwn/aerc2/lib/ui.Initialize.func1()
          /home/simon/src/aerc2/lib/ui/ui.go:45 +0x97

    Goroutine 19 (running) created at:
      git.sr.ht/~sircmpwn/aerc2/lib/ui.Initialize()
          /home/simon/src/aerc2/lib/ui/ui.go:44 +0x372
      main.main()
          /home/simon/src/aerc2/aerc.go:87 +0x3a9
Diffstat (limited to 'widgets/exline.go')
0 files changed, 0 insertions, 0 deletions
o always contain MODKEY' href='/acidbong/suckless/dwm/commit/dwm.h?h=5.8.1&id=cd8d8e120857329800e93e22572e35560d1b0e80'>cd8d8e1 ^
3aad922 ^
3399650 ^
8b59083 ^
cd8d8e1 ^
8b59083 ^
2b5553b ^
8b59083 ^
3aad922 ^
8af1d97 ^
c53980c ^
650a1fb ^
8b59083 ^
c47da14 ^




b9da4b0 ^
439e15d ^
1076f2b
bf35794 ^
1076f2b
439e15d ^
bf35794 ^
1076f2b
8af1d97 ^
c53980c ^
8b59083 ^
8b59083 ^


bf35794 ^

8b59083 ^

650a1fb ^
8b59083 ^
8b59083 ^


bf35794 ^


8b59083 ^

1076f2b
da2bbd3 ^

3399650 ^
1173723 ^

a05beb6 ^
2e836ec ^

a05beb6 ^
901b3ed ^
4688ad1 ^
1076f2b
72707c2 ^
bf35794 ^

1076f2b

bf35794 ^

66da153 ^

bf35794 ^

efa7e51 ^
bf35794 ^


bf35794 ^
39677ec ^
439e15d ^
dba2306 ^
3399650 ^
adaa28a ^


dba2306 ^
adaa28a ^
c0705ee ^
adaa28a ^
dfd84f9 ^
adaa28a ^
04eb016 ^
adaa28a ^

4688ad1 ^
adaa28a ^

3399650 ^
d7e1708 ^
dba2306 ^
c0705ee ^
adaa28a ^
c0705ee ^

9e8b325 ^
d7e1708 ^
dba2306 ^
29355bd ^
b9da4b0 ^
9e8b325 ^
adaa28a ^
c47da14 ^
dba2306 ^
adaa28a ^
9e8b325 ^
dba2306 ^
adaa28a ^
dba2306 ^

4f8b08d ^
72707c2 ^
dba2306 ^
adaa28a ^
4688ad1 ^
adaa28a ^
29355bd ^
8b59083 ^
8b59083 ^
adaa28a ^
c47da14 ^
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
135
136
137
138
139
140
141
142
143
144
145
146