Gitea: Data races

Created on 17 Sep 2019  路  11Comments  路  Source: go-gitea/gitea

This is a collection of data races.

kinbug

Most helpful comment

All these datarace are fixed.

All 11 comments

==================
268 | WARNING: DATA RACE
269 | Read at 0x00c002aecac0 by goroutine 23:
270 | code.gitea.io/gitea/models.(*Permission).UnitAccessMode()
271 | /go/src/code.gitea.io/gitea/models/repo_permission.go:41 +0xae
272 | code.gitea.io/gitea/models.(*Repository).checkUnitUser()
273 | /go/src/code.gitea.io/gitea/models/repo_permission.go:53 +0x11a
274 | code.gitea.io/gitea/models.createOrUpdateIssueNotifications()
275 | /go/src/code.gitea.io/gitea/models/notification.go:132 +0x68f
276 | code.gitea.io/gitea/models.CreateOrUpdateIssueNotifications()
277 | /go/src/code.gitea.io/gitea/models/notification.go:68 +0x188
278 | code.gitea.io/gitea/modules/notification/ui.(*notificationService).Run()
279 | /go/src/code.gitea.io/gitea/modules/notification/ui/ui.go:39 +0x9e
280 | 聽
281 | Previous write at 0x00c002aecac0 by goroutine 56:
282 | runtime.slicecopy()
283 | /usr/local/go/src/runtime/slice.go:197 +0x0
284 | reflect.typedslicecopy()
285 | /usr/local/go/src/runtime/mbarrier.go:307 +0x164
286 | reflect.grow()
287 | /usr/local/go/src/reflect/value.go:2018 +0x1a9
288 | reflect.Append()
289 | /usr/local/go/src/reflect/value.go:2026 +0x89
290 | github.com/go-xorm/xorm.(*Session).noCacheFind.func2()
291 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:244 +0x14c
292 | github.com/go-xorm/xorm.(*Session).rows2Beans.func1()
293 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session.go:337 +0x64
294 | github.com/go-xorm/xorm.(*Session).executeProcessors()
295 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/processors.go:66 +0x124
296 | github.com/go-xorm/xorm.(*Session).noCacheFind()
297 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:286 +0x8a7
298 | github.com/go-xorm/xorm.(*Session).find()
299 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:197 +0x800
300 | github.com/go-xorm/xorm.(*Session).Find()
301 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:29 +0xb1
302 | code.gitea.io/gitea/models.getUnitsByRepoID()
303 | /go/src/code.gitea.io/gitea/models/repo_unit.go:173 +0x13d
304 | code.gitea.io/gitea/models.(*Repository).getUnit()
305 | /go/src/code.gitea.io/gitea/models/repo.go:343 +0x228
306 | code.gitea.io/gitea/models.(*Repository).ComposeMetas()
307 | /go/src/code.gitea.io/gitea/models/repo.go:432 +0x35e
308 | code.gitea.io/gitea/models.composeIssueCommentMessage()
309 | /go/src/code.gitea.io/gitea/models/mail.go:172 +0x38a
310 | code.gitea.io/gitea/models.SendIssueCommentMail()
311 | /go/src/code.gitea.io/gitea/models/mail.go:208 +0xd5
312 | code.gitea.io/gitea/models.mailIssueCommentToParticipants()
313 | /go/src/code.gitea.io/gitea/models/issue_mail.go:96 +0x13ed
314 | code.gitea.io/gitea/models.(*Comment).mailParticipants()
315 | /go/src/code.gitea.io/gitea/models/issue_comment.go:395 +0x7c9
316 | code.gitea.io/gitea/modules/notification/mail.(*mailNotifier).NotifyCreateIssueComment()
317 | /go/src/code.gitea.io/gitea/models/issue_comment.go:385 +0xb7
318 | code.gitea.io/gitea/modules/notification.NotifyCreateIssueComment()
319 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:36 +0xba
320 | code.gitea.io/gitea/routers/api/v1/repo.CreateIssueComment()
321 | /go/src/code.gitea.io/gitea/routers/api/v1/repo/issue_comment.go:198 +0x5d0
322 | runtime.call32()
323 | /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
324 | reflect.Value.Call()
325 | /usr/local/go/src/reflect/value.go:321 +0xd3
326 | gitea.com/macaron/inject.(*injector).callInvoke()
327 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
328 | gitea.com/macaron/inject.(*injector).Invoke()
329 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
330 | gitea.com/macaron/macaron.(*Context).run()
331 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
332 | code.gitea.io/gitea/modules/context.Recovery.func1()
333 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xc5
334 | runtime.call32()
335 | /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
336 | reflect.Value.Call()
337 | /usr/local/go/src/reflect/value.go:321 +0xd3
338 | gitea.com/macaron/inject.(*injector).callInvoke()
339 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
340 | gitea.com/macaron/inject.(*injector).Invoke()
341 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
342 | gitea.com/macaron/macaron.(*Context).run()
343 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
344 | gitea.com/macaron/session.Sessioner.func1()
345 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x52e
346 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
347 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
348 | gitea.com/macaron/inject.(*injector).fastInvoke()
349 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
350 | gitea.com/macaron/inject.(*injector).Invoke()
351 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
352 | gitea.com/macaron/macaron.(*Context).run()
353 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
354 | gitea.com/macaron/macaron.Recovery.func1()
355 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xb8
356 | gitea.com/macaron/macaron.LoggerInvoker.Invoke()
357 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/logger.go:40 +0xb8
358 | gitea.com/macaron/inject.(*injector).fastInvoke()
359 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
360 | gitea.com/macaron/inject.(*injector).Invoke()
361 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
362 | gitea.com/macaron/macaron.(*Context).run()
363 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
364 | code.gitea.io/gitea/routers/routes.RouterHandler.func1()
365 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x573
366 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
367 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
368 | gitea.com/macaron/inject.(*injector).fastInvoke()
369 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
370 | gitea.com/macaron/inject.(*injector).Invoke()
371 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
372 | gitea.com/macaron/macaron.(*Context).run()
373 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
374 | gitea.com/macaron/macaron.(*Router).Handle.func1()
375 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:187 +0x3ef
376 | gitea.com/macaron/macaron.(*Router).ServeHTTP()
377 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:303 +0x31a
378 | gitea.com/macaron/macaron.(*Macaron).ServeHTTP()
379 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/macaron.go:220 +0x164
380 | code.gitea.io/gitea/integrations.MakeRequest()
381 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:351 +0x19a
382 | code.gitea.io/gitea/integrations.(*TestSession).MakeRequest()
383 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:211 +0x1f6
384 | code.gitea.io/gitea/integrations.TestAPICreateComment()
385 | /go/src/code.gitea.io/gitea/integrations/api_comment_test.go:78 +0x6d1
386 | testing.tRunner()
387 | /usr/local/go/src/testing/testing.go:909 +0x199
388 | 聽
389 | Goroutine 23 (running) created at:
390 | code.gitea.io/gitea/modules/notification.RegisterNotifier()
391 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:22 +0x57
392 | code.gitea.io/gitea/modules/notification.init.0()
393 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:27 +0xc1
394 | 聽
395 | Goroutine 56 (running) created at:
396 | testing.(*T).Run()
397 | /usr/local/go/src/testing/testing.go:960 +0x651
398 | testing.runTests.func1()
399 | /usr/local/go/src/testing/testing.go:1202 +0xa6
400 | testing.tRunner()
401 | /usr/local/go/src/testing/testing.go:909 +0x199
402 | testing.runTests()
403 | /usr/local/go/src/testing/testing.go:1200 +0x521
404 | testing.(*M).Run()
405 | /usr/local/go/src/testing/testing.go:1117 +0x2ff
406 | code.gitea.io/gitea/integrations.TestMain()
407 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:83 +0x374
408 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
409 | /usr/local/go/src/fmt/scan.go:114 +0x284
410 | fmt.(*ss).doScanf()
411 | /usr/local/go/src/fmt/scan.go:1217 +0x382
412 | fmt.Fscanf()
413 | /usr/local/go/src/fmt/scan.go:143 +0xcf
414 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
415 | /usr/local/go/src/fmt/scan.go:114 +0x192
416 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
417 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
418 | github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
419 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db_util.go:52 +0x2f8
420 | github.com/syndtr/goleveldb/leveldb.openDB()
421 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x9f0
422 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
423 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
424 | fmt.Fscanf()
425 | /usr/local/go/src/fmt/scan.go:143 +0xcf
426 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
427 | /usr/local/go/src/fmt/scan.go:114 +0x192
428 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
429 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
430 | fmt.Fscanf()
431 | /usr/local/go/src/fmt/scan.go:143 +0xcf
432 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
433 | /usr/local/go/src/fmt/scan.go:114 +0x192
434 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
435 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
436 | fmt.Fscanf()
437 | /usr/local/go/src/fmt/scan.go:143 +0xcf
438 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
439 | /usr/local/go/src/fmt/scan.go:114 +0x284
440 | fmt.(*ss).doScanf()
441 | /usr/local/go/src/fmt/scan.go:1217 +0x382
442 | fmt.Fscanf()
443 | /usr/local/go/src/fmt/scan.go:143 +0xcf
444 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
445 | /usr/local/go/src/fmt/scan.go:114 +0x192
446 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
447 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
448 | github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
449 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:476 +0xc5
450 | github.com/syndtr/goleveldb/leveldb.openDB()
451 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:125 +0x9cc
452 | github.com/syndtr/goleveldb/leveldb.Open()
453 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:197 +0x1d3
454 | fmt.Fscanf()
455 | /usr/local/go/src/fmt/scan.go:143 +0xcf
456 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
457 | /usr/local/go/src/fmt/scan.go:114 +0x192
458 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
459 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
460 | github.com/syndtr/goleveldb/leveldb.(*session).recover.func1()
461 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:113 +0xf4
462 | github.com/syndtr/goleveldb/leveldb.(*session).recover()
463 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:121 +0x1929
464 | github.com/syndtr/goleveldb/leveldb.Open()
465 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:183 +0xf8
466 | github.com/syndtr/goleveldb/leveldb.OpenFile()
467 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:219 +0xa5
468 | github.com/lunny/levelqueue.Open()
469 | /go/src/code.gitea.io/gitea/vendor/github.com/lunny/levelqueue/queue.go:26 +0x66
470 | code.gitea.io/gitea/modules/indexer/issues.NewLevelQueue()
471 | /go/src/code.gitea.io/gitea/modules/indexer/issues/queue_disk.go:29 +0x46
472 | code.gitea.io/gitea/modules/indexer/issues.InitIssueIndexer()
473 | /go/src/code.gitea.io/gitea/modules/indexer/issues/indexer.go:82 +0x562
474 | code.gitea.io/gitea/routers.GlobalInit()
475 | /go/src/code.gitea.io/gitea/routers/init.go:97 +0xb11
476 | code.gitea.io/gitea/integrations.initIntegrationTest()
477 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:168 +0x502
478 | code.gitea.io/gitea/integrations.TestMain()
479 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:57 +0x47
480 | main.main()
481 | _testmain.go:448 +0x223
482 | ==================
483

Fixed by https://github.com/go-gitea/gitea/pull/8204

==================
--
59 | WARNING: DATA RACE
60 | Write at 0x00c0000132f0 by goroutine 56:
61 | runtime.mapassign_faststr()
62 | /usr/local/go/src/runtime/map_faststr.go:202 +0x0
63 | code.gitea.io/gitea/modules/log.NewNamedLogger()
64 | /go/src/code.gitea.io/gitea/modules/log/log.go:37 +0x20d
65 | code.gitea.io/gitea/modules/log.TestNewNamedLogger()
66 | /go/src/code.gitea.io/gitea/modules/log/log_test.go:144 +0x11c
67 | testing.tRunner()
68 | /usr/local/go/src/testing/testing.go:909 +0x199
69 | 聽
70 | Previous read at 0x00c0000132f0 by goroutine 55:
71 | runtime.mapaccess2_faststr()
72 | /usr/local/go/src/runtime/map_faststr.go:107 +0x0
73 | code.gitea.io/gitea/modules/log.Log()
74 | /go/src/code.gitea.io/gitea/modules/log/log.go:183 +0xa4
75 | code.gitea.io/gitea/modules/log.Trace()
76 | /go/src/code.gitea.io/gitea/modules/log/log.go:83 +0x8e
77 | code.gitea.io/gitea/modules/log.DelLogger()
78 | /go/src/code.gitea.io/gitea/modules/log/log.go:57 +0x1e6
79 | 聽
80 | Goroutine 56 (running) created at:
81 | testing.(*T).Run()
82 | /usr/local/go/src/testing/testing.go:960 +0x651
83 | testing.runTests.func1()
84 | /usr/local/go/src/testing/testing.go:1202 +0xa6
85 | testing.tRunner()
86 | /usr/local/go/src/testing/testing.go:909 +0x199
87 | testing.runTests()
88 | /usr/local/go/src/testing/testing.go:1200 +0x521
89 | testing.(*M).Run()
90 | /usr/local/go/src/testing/testing.go:1117 +0x2ff
91 | main.main()
92 | _testmain.go:162 +0x337
93 | 聽
94 | Goroutine 55 (finished) created at:
95 | code.gitea.io/gitea/modules/log.TestNewLogggerRecreate()
96 | /go/src/code.gitea.io/gitea/modules/log/log_test.go:138 +0x7ee
97 | code.gitea.io/gitea/vendor/github.com/stretchr/testify/assert.Panics()
98 | /go/src/code.gitea.io/gitea/vendor/github.com/stretchr/testify/assert/assertions.go:933 +0x7b
99 | code.gitea.io/gitea/modules/log.TestNewLogggerRecreate()
100 | /go/src/code.gitea.io/gitea/modules/log/log_test.go:131 +0x794
101 | testing.tRunner()
102 | /usr/local/go/src/testing/testing.go:909 +0x199
103 | ==================

Fixed by https://github.com/go-gitea/gitea/pull/8204


==================
--
61 | WARNING: DATA RACE
62 | Write at 0x00000375d5c0 by goroutine 89:
63 | code.gitea.io/gitea/integrations.PrintCurrentTest()
64 | /go/src/code.gitea.io/gitea/integrations/testlogger.go:80 +0x31a
65 | code.gitea.io/gitea/integrations.prepareTestEnv()
66 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:177 +0xb7
67 | code.gitea.io/gitea/integrations.onGiteaRun()
68 | /go/src/code.gitea.io/gitea/integrations/git_helper_for_declarative_test.go:58 +0x87
69 | code.gitea.io/gitea/integrations.TestAPIAdminOrgCreate()
70 | /go/src/code.gitea.io/gitea/integrations/api_admin_org_test.go:20 +0x5b
71 | testing.tRunner()
72 | /usr/local/go/src/testing/testing.go:909 +0x199
73 | 聽
74 | Previous read at 0x00000375d5c0 by goroutine 54:
75 | code.gitea.io/gitea/integrations.(*testLoggerWriterCloser).Write()
76 | /go/src/code.gitea.io/gitea/integrations/testlogger.go:32 +0x5b
77 | code.gitea.io/gitea/modules/log.(*WriterLogger).LogEvent()
78 | /go/src/code.gitea.io/gitea/modules/log/writer.go:235 +0x1a5
79 | code.gitea.io/gitea/integrations.(*TestLogger).LogEvent()
80 | <autogenerated>:1 +0x4d
81 | code.gitea.io/gitea/modules/log.(*ChannelledLog).Start()
82 | /go/src/code.gitea.io/gitea/modules/log/event.go:75 +0x1d6
83 | 聽
84 | Goroutine 89 (running) created at:
85 | testing.(*T).Run()
86 | /usr/local/go/src/testing/testing.go:960 +0x651
87 | testing.runTests.func1()
88 | /usr/local/go/src/testing/testing.go:1202 +0xa6
89 | testing.tRunner()
90 | /usr/local/go/src/testing/testing.go:909 +0x199
91 | testing.runTests()
92 | /usr/local/go/src/testing/testing.go:1200 +0x521
93 | testing.(*M).Run()
94 | /usr/local/go/src/testing/testing.go:1117 +0x2ff
95 | code.gitea.io/gitea/integrations.TestMain()
96 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:83 +0x374
97 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
98 | /usr/local/go/src/fmt/scan.go:114 +0x284
99 | fmt.(*ss).doScanf()
100 | /usr/local/go/src/fmt/scan.go:1217 +0x382
101 | fmt.Fscanf()
102 | /usr/local/go/src/fmt/scan.go:143 +0xcf
103 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
104 | /usr/local/go/src/fmt/scan.go:114 +0x192
105 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
106 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
107 | github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
108 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db_util.go:52 +0x2f8
109 | github.com/syndtr/goleveldb/leveldb.openDB()
110 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x9f0
111 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
112 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
113 | fmt.Fscanf()
114 | /usr/local/go/src/fmt/scan.go:143 +0xcf
115 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
116 | /usr/local/go/src/fmt/scan.go:114 +0x192
117 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
118 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
119 | fmt.Fscanf()
120 | /usr/local/go/src/fmt/scan.go:143 +0xcf
121 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
122 | /usr/local/go/src/fmt/scan.go:114 +0x192
123 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
124 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
125 | fmt.Fscanf()
126 | /usr/local/go/src/fmt/scan.go:143 +0xcf
127 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
128 | /usr/local/go/src/fmt/scan.go:114 +0x284
129 | fmt.(*ss).doScanf()
130 | /usr/local/go/src/fmt/scan.go:1217 +0x382
131 | fmt.Fscanf()
132 | /usr/local/go/src/fmt/scan.go:143 +0xcf
133 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
134 | /usr/local/go/src/fmt/scan.go:114 +0x192
135 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
136 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
137 | github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
138 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:476 +0xc5
139 | github.com/syndtr/goleveldb/leveldb.openDB()
140 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:125 +0x9cc
141 | github.com/syndtr/goleveldb/leveldb.Open()
142 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:197 +0x1d3
143 | fmt.Fscanf()
144 | /usr/local/go/src/fmt/scan.go:143 +0xcf
145 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
146 | /usr/local/go/src/fmt/scan.go:114 +0x192
147 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
148 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
149 | github.com/syndtr/goleveldb/leveldb.(*session).recover.func1()
150 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:113 +0xf4
151 | github.com/syndtr/goleveldb/leveldb.(*session).recover()
152 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:121 +0x1929
153 | github.com/syndtr/goleveldb/leveldb.Open()
154 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:183 +0xf8
155 | github.com/syndtr/goleveldb/leveldb.OpenFile()
156 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:219 +0xa5
157 | github.com/lunny/levelqueue.Open()
158 | /go/src/code.gitea.io/gitea/vendor/github.com/lunny/levelqueue/queue.go:26 +0x66
159 | code.gitea.io/gitea/modules/indexer/issues.NewLevelQueue()
160 | /go/src/code.gitea.io/gitea/modules/indexer/issues/queue_disk.go:29 +0x46
161 | code.gitea.io/gitea/modules/indexer/issues.InitIssueIndexer()
162 | /go/src/code.gitea.io/gitea/modules/indexer/issues/indexer.go:82 +0x562
163 | code.gitea.io/gitea/routers.GlobalInit()
164 | /go/src/code.gitea.io/gitea/routers/init.go:97 +0xaa4
165 | code.gitea.io/gitea/integrations.initIntegrationTest()
166 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:168 +0x502
167 | code.gitea.io/gitea/integrations.TestMain()
168 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:57 +0x47
169 | main.main()
170 | _testmain.go:448 +0x223
171 | 聽
172 | Goroutine 54 (running) created at:
173 | code.gitea.io/gitea/modules/log.NewChannelledLog()
174 | /go/src/code.gitea.io/gitea/modules/log/event.go:60 +0x3c0
175 | code.gitea.io/gitea/modules/log.(*Logger).SetLogger()
176 | /go/src/code.gitea.io/gitea/modules/log/logger.go:33 +0xb9
177 | code.gitea.io/gitea/modules/log.NewNamedLogger()
178 | /go/src/code.gitea.io/gitea/modules/log/log.go:40 +0x117
179 | code.gitea.io/gitea/modules/log.NewLogger()
180 | /go/src/code.gitea.io/gitea/modules/log/log.go:23 +0xc6
181 | code.gitea.io/gitea/modules/setting.newLogService()
182 | /go/src/code.gitea.io/gitea/modules/setting/log.go:263 +0xd80
183 | code.gitea.io/gitea/modules/setting.NewLogServices()
184 | /go/src/code.gitea.io/gitea/modules/setting/log.go:282 +0x2f
185 | code.gitea.io/gitea/modules/setting.NewServices()
186 | /go/src/code.gitea.io/gitea/modules/setting/setting.go:1037 +0x3d
187 | code.gitea.io/gitea/routers.NewServices()
188 | /go/src/code.gitea.io/gitea/routers/init.go:42 +0x2f
189 | code.gitea.io/gitea/routers.GlobalInit()
190 | /go/src/code.gitea.io/gitea/routers/init.go:77 +0x3e8
191 | code.gitea.io/gitea/integrations.initIntegrationTest()
192 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:168 +0x502
193 | code.gitea.io/gitea/integrations.TestMain()
194 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:57 +0x47
195 | main.main()
196 | _testmain.go:448 +0x223
197 | ==================
==================
78 | WARNING: DATA RACE
79 | Read at 0x00c001a197c8 by goroutine 56:
80 | code.gitea.io/gitea/models.(*Repository).getUnit()
81 | /go/src/code.gitea.io/gitea/models/repo.go:339 +0x61
82 | code.gitea.io/gitea/models.(*Repository).ComposeMetas()
83 | /go/src/code.gitea.io/gitea/models/repo.go:432 +0x35e
84 | code.gitea.io/gitea/models.composeIssueCommentMessage()
85 | /go/src/code.gitea.io/gitea/models/mail.go:172 +0x38a
86 | code.gitea.io/gitea/models.SendIssueCommentMail()
87 | /go/src/code.gitea.io/gitea/models/mail.go:208 +0xd5
88 | code.gitea.io/gitea/models.mailIssueCommentToParticipants()
89 | /go/src/code.gitea.io/gitea/models/issue_mail.go:96 +0x13ed
90 | code.gitea.io/gitea/models.(*Comment).mailParticipants()
91 | /go/src/code.gitea.io/gitea/models/issue_comment.go:395 +0x7c9
92 | code.gitea.io/gitea/modules/notification/mail.(*mailNotifier).NotifyCreateIssueComment()
93 | /go/src/code.gitea.io/gitea/models/issue_comment.go:385 +0xb7
94 | code.gitea.io/gitea/modules/notification.NotifyCreateIssueComment()
95 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:36 +0xba
96 | code.gitea.io/gitea/routers/api/v1/repo.CreateIssueComment()
97 | /go/src/code.gitea.io/gitea/routers/api/v1/repo/issue_comment.go:198 +0x5d0
98 | runtime.call32()
99 | /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
100 | reflect.Value.Call()
101 | /usr/local/go/src/reflect/value.go:321 +0xd3
102 | gitea.com/macaron/inject.(*injector).callInvoke()
103 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
104 | gitea.com/macaron/inject.(*injector).Invoke()
105 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
106 | gitea.com/macaron/macaron.(*Context).run()
107 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
108 | code.gitea.io/gitea/modules/context.Recovery.func1()
109 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xc5
110 | runtime.call32()
111 | /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
112 | reflect.Value.Call()
113 | /usr/local/go/src/reflect/value.go:321 +0xd3
114 | gitea.com/macaron/inject.(*injector).callInvoke()
115 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
116 | gitea.com/macaron/inject.(*injector).Invoke()
117 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
118 | gitea.com/macaron/macaron.(*Context).run()
119 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
120 | gitea.com/macaron/session.Sessioner.func1()
121 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x52e
122 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
123 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
124 | gitea.com/macaron/inject.(*injector).fastInvoke()
125 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
126 | gitea.com/macaron/inject.(*injector).Invoke()
127 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
128 | gitea.com/macaron/macaron.(*Context).run()
129 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
130 | gitea.com/macaron/macaron.Recovery.func1()
131 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xb8
132 | gitea.com/macaron/macaron.LoggerInvoker.Invoke()
133 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/logger.go:40 +0xb8
134 | gitea.com/macaron/inject.(*injector).fastInvoke()
135 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
136 | gitea.com/macaron/inject.(*injector).Invoke()
137 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
138 | gitea.com/macaron/macaron.(*Context).run()
139 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
140 | code.gitea.io/gitea/routers/routes.RouterHandler.func1()
141 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x573
142 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
143 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
144 | gitea.com/macaron/inject.(*injector).fastInvoke()
145 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
146 | gitea.com/macaron/inject.(*injector).Invoke()
147 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
148 | gitea.com/macaron/macaron.(*Context).run()
149 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
150 | gitea.com/macaron/macaron.(*Router).Handle.func1()
151 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:187 +0x3ef
152 | gitea.com/macaron/macaron.(*Router).ServeHTTP()
153 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:303 +0x31a
154 | gitea.com/macaron/macaron.(*Macaron).ServeHTTP()
155 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/macaron.go:220 +0x164
156 | code.gitea.io/gitea/integrations.MakeRequest()
157 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:351 +0x19a
158 | code.gitea.io/gitea/integrations.(*TestSession).MakeRequest()
159 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:211 +0x1f6
160 | code.gitea.io/gitea/integrations.TestAPICreateComment()
161 | /go/src/code.gitea.io/gitea/integrations/api_comment_test.go:78 +0x6d1
162 | testing.tRunner()
163 | /usr/local/go/src/testing/testing.go:909 +0x199
164 | 聽
165 | Previous write at 0x00c001a197c8 by goroutine 23:
166 | code.gitea.io/gitea/models.createOrUpdateIssueNotifications()
167 | /go/src/code.gitea.io/gitea/models/notification.go:128 +0x4dc
168 | code.gitea.io/gitea/models.CreateOrUpdateIssueNotifications()
169 | /go/src/code.gitea.io/gitea/models/notification.go:68 +0x188
170 | code.gitea.io/gitea/modules/notification/ui.(*notificationService).Run()
171 | /go/src/code.gitea.io/gitea/modules/notification/ui/ui.go:39 +0x9e
172 | 聽
173 | Goroutine 56 (running) created at:
174 | testing.(*T).Run()
175 | /usr/local/go/src/testing/testing.go:960 +0x651
176 | testing.runTests.func1()
177 | /usr/local/go/src/testing/testing.go:1202 +0xa6
178 | testing.tRunner()
179 | /usr/local/go/src/testing/testing.go:909 +0x199
180 | testing.runTests()
181 | /usr/local/go/src/testing/testing.go:1200 +0x521
182 | testing.(*M).Run()
183 | /usr/local/go/src/testing/testing.go:1117 +0x2ff
184 | code.gitea.io/gitea/integrations.TestMain()
185 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:83 +0x374
186 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
187 | /usr/local/go/src/fmt/scan.go:114 +0x284
188 | fmt.(*ss).doScanf()
189 | /usr/local/go/src/fmt/scan.go:1217 +0x382
190 | fmt.Fscanf()
191 | /usr/local/go/src/fmt/scan.go:143 +0xcf
192 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
193 | /usr/local/go/src/fmt/scan.go:114 +0x192
194 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
195 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
196 | github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
197 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db_util.go:52 +0x2f8
198 | github.com/syndtr/goleveldb/leveldb.openDB()
199 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x9f0
200 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
201 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
202 | fmt.Fscanf()
203 | /usr/local/go/src/fmt/scan.go:143 +0xcf
204 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
205 | /usr/local/go/src/fmt/scan.go:114 +0x192
206 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
207 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
208 | fmt.Fscanf()
209 | /usr/local/go/src/fmt/scan.go:143 +0xcf
210 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
211 | /usr/local/go/src/fmt/scan.go:114 +0x192
212 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
213 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
214 | fmt.Fscanf()
215 | /usr/local/go/src/fmt/scan.go:143 +0xcf
216 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
217 | /usr/local/go/src/fmt/scan.go:114 +0x284
218 | fmt.(*ss).doScanf()
219 | /usr/local/go/src/fmt/scan.go:1217 +0x382
220 | fmt.Fscanf()
221 | /usr/local/go/src/fmt/scan.go:143 +0xcf
222 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
223 | /usr/local/go/src/fmt/scan.go:114 +0x192
224 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
225 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
226 | github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
227 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:476 +0xc5
228 | github.com/syndtr/goleveldb/leveldb.openDB()
229 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:125 +0x9cc
230 | github.com/syndtr/goleveldb/leveldb.Open()
231 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:197 +0x1d3
232 | fmt.Fscanf()
233 | /usr/local/go/src/fmt/scan.go:143 +0xcf
234 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
235 | /usr/local/go/src/fmt/scan.go:114 +0x192
236 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
237 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
238 | github.com/syndtr/goleveldb/leveldb.(*session).recover.func1()
239 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:113 +0xf4
240 | github.com/syndtr/goleveldb/leveldb.(*session).recover()
241 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:121 +0x1929
242 | github.com/syndtr/goleveldb/leveldb.Open()
243 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:183 +0xf8
244 | github.com/syndtr/goleveldb/leveldb.OpenFile()
245 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:219 +0xa5
246 | github.com/lunny/levelqueue.Open()
247 | /go/src/code.gitea.io/gitea/vendor/github.com/lunny/levelqueue/queue.go:26 +0x66
248 | code.gitea.io/gitea/modules/indexer/issues.NewLevelQueue()
249 | /go/src/code.gitea.io/gitea/modules/indexer/issues/queue_disk.go:29 +0x46
250 | code.gitea.io/gitea/modules/indexer/issues.InitIssueIndexer()
251 | /go/src/code.gitea.io/gitea/modules/indexer/issues/indexer.go:82 +0x562
252 | code.gitea.io/gitea/routers.GlobalInit()
253 | /go/src/code.gitea.io/gitea/routers/init.go:97 +0xb11
254 | code.gitea.io/gitea/integrations.initIntegrationTest()
255 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:168 +0x502
256 | code.gitea.io/gitea/integrations.TestMain()
257 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:57 +0x47
258 | main.main()
259 | _testmain.go:448 +0x223
260 | 聽
261 | Goroutine 23 (running) created at:
262 | code.gitea.io/gitea/modules/notification.RegisterNotifier()
263 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:22 +0x57
264 | code.gitea.io/gitea/modules/notification.init.0()
265 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:27 +0xc1
266 | ==================
267

==================
--
592 | WARNING: DATA RACE
593 | Read at 0x00c001a18788 by goroutine 23:
594 | code.gitea.io/gitea/models.getUserRepoPermission()
595 | /go/src/code.gitea.io/gitea/models/repo.go:339 +0x15d
596 | code.gitea.io/gitea/models.(*Repository).checkUnitUser()
597 | /go/src/code.gitea.io/gitea/models/repo.go:360 +0xbb
598 | code.gitea.io/gitea/models.createOrUpdateIssueNotifications()
599 | /go/src/code.gitea.io/gitea/models/notification.go:132 +0x68f
600 | code.gitea.io/gitea/models.CreateOrUpdateIssueNotifications()
601 | /go/src/code.gitea.io/gitea/models/notification.go:68 +0x188
602 | code.gitea.io/gitea/modules/notification/ui.(*notificationService).Run()
603 | /go/src/code.gitea.io/gitea/modules/notification/ui/ui.go:39 +0x9e
604 | 聽
605 | Previous write at 0x00c001a18788 by goroutine 99:
606 | code.gitea.io/gitea/models.(*Repository).getUnit()
607 | /go/src/code.gitea.io/gitea/models/repo.go:343 +0x26b
608 | code.gitea.io/gitea/models.(*Repository).ComposeMetas()
609 | /go/src/code.gitea.io/gitea/models/repo.go:432 +0x35e
610 | code.gitea.io/gitea/models.composeIssueCommentMessage()
611 | /go/src/code.gitea.io/gitea/models/mail.go:172 +0x38a
612 | code.gitea.io/gitea/models.SendIssueCommentMail()
613 | /go/src/code.gitea.io/gitea/models/mail.go:208 +0xd5
614 | code.gitea.io/gitea/models.mailIssueCommentToParticipants()
615 | /go/src/code.gitea.io/gitea/models/issue_mail.go:96 +0x13ed
616 | code.gitea.io/gitea/models.(*Issue).mailParticipants()
617 | /go/src/code.gitea.io/gitea/models/issue_mail.go:133 +0x92f
618 | code.gitea.io/gitea/modules/notification/mail.(*mailNotifier).NotifyNewIssue()
619 | /go/src/code.gitea.io/gitea/models/issue_mail.go:122 +0x99
620 | code.gitea.io/gitea/modules/notification.NotifyNewIssue()
621 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:43 +0x9f
622 | code.gitea.io/gitea/routers/api/v1/repo.CreateIssue()
623 | /go/src/code.gitea.io/gitea/routers/api/v1/repo/issue.go:228 +0x918
624 | runtime.call128()
625 | /usr/local/go/src/runtime/asm_amd64.s:541 +0x51
626 | reflect.Value.Call()
627 | /usr/local/go/src/reflect/value.go:321 +0xd3
628 | gitea.com/macaron/inject.(*injector).callInvoke()
629 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
630 | gitea.com/macaron/inject.(*injector).Invoke()
631 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
632 | gitea.com/macaron/macaron.(*Context).run()
633 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
634 | code.gitea.io/gitea/modules/context.Recovery.func1()
635 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xc5
636 | runtime.call32()
637 | /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
638 | reflect.Value.Call()
639 | /usr/local/go/src/reflect/value.go:321 +0xd3
640 | gitea.com/macaron/inject.(*injector).callInvoke()
641 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
642 | gitea.com/macaron/inject.(*injector).Invoke()
643 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
644 | gitea.com/macaron/macaron.(*Context).run()
645 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
646 | gitea.com/macaron/session.Sessioner.func1()
647 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x52e
648 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
649 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
650 | gitea.com/macaron/inject.(*injector).fastInvoke()
651 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
652 | gitea.com/macaron/inject.(*injector).Invoke()
653 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
654 | gitea.com/macaron/macaron.(*Context).run()
655 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
656 | gitea.com/macaron/macaron.Recovery.func1()
657 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xb8
658 | gitea.com/macaron/macaron.LoggerInvoker.Invoke()
659 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/logger.go:40 +0xb8
660 | gitea.com/macaron/inject.(*injector).fastInvoke()
661 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
662 | gitea.com/macaron/inject.(*injector).Invoke()
663 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
664 | gitea.com/macaron/macaron.(*Context).run()
665 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
666 | code.gitea.io/gitea/routers/routes.RouterHandler.func1()
667 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x573
668 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
669 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
670 | gitea.com/macaron/inject.(*injector).fastInvoke()
671 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
672 | gitea.com/macaron/inject.(*injector).Invoke()
673 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
674 | gitea.com/macaron/macaron.(*Context).run()
675 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
676 | gitea.com/macaron/macaron.(*Router).Handle.func1()
677 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:187 +0x3ef
678 | gitea.com/macaron/macaron.(*Router).ServeHTTP()
679 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:303 +0x31a
680 | gitea.com/macaron/macaron.(*Macaron).ServeHTTP()
681 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/macaron.go:220 +0x164
682 | code.gitea.io/gitea/integrations.MakeRequest()
683 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:351 +0x19a
684 | code.gitea.io/gitea/integrations.(*TestSession).MakeRequest()
685 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:211 +0x1f6
686 | code.gitea.io/gitea/integrations.TestAPICreateIssue()
687 | /go/src/code.gitea.io/gitea/integrations/api_issue_test.go:52 +0x609
688 | testing.tRunner()
689 | /usr/local/go/src/testing/testing.go:909 +0x199
690 | 聽
691 | Goroutine 23 (running) created at:
692 | code.gitea.io/gitea/modules/notification.RegisterNotifier()
693 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:22 +0x57
694 | code.gitea.io/gitea/modules/notification.init.0()
695 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:27 +0xc1
696 | 聽
697 | Goroutine 99 (running) created at:
698 | testing.(*T).Run()
699 | /usr/local/go/src/testing/testing.go:960 +0x651
700 | testing.runTests.func1()
701 | /usr/local/go/src/testing/testing.go:1202 +0xa6
702 | testing.tRunner()
703 | /usr/local/go/src/testing/testing.go:909 +0x199
704 | testing.runTests()
705 | /usr/local/go/src/testing/testing.go:1200 +0x521
706 | testing.(*M).Run()
707 | /usr/local/go/src/testing/testing.go:1117 +0x2ff
708 | code.gitea.io/gitea/integrations.TestMain()
709 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:83 +0x374
710 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
711 | /usr/local/go/src/fmt/scan.go:114 +0x284
712 | fmt.(*ss).doScanf()
713 | /usr/local/go/src/fmt/scan.go:1217 +0x382
714 | fmt.Fscanf()
715 | /usr/local/go/src/fmt/scan.go:143 +0xcf
716 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
717 | /usr/local/go/src/fmt/scan.go:114 +0x192
718 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
719 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
720 | github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
721 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db_util.go:52 +0x2f8
722 | github.com/syndtr/goleveldb/leveldb.openDB()
723 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x9f0
724 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
725 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
726 | fmt.Fscanf()
727 | /usr/local/go/src/fmt/scan.go:143 +0xcf
728 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
729 | /usr/local/go/src/fmt/scan.go:114 +0x192
730 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
731 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
732 | fmt.Fscanf()
733 | /usr/local/go/src/fmt/scan.go:143 +0xcf
734 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
735 | /usr/local/go/src/fmt/scan.go:114 +0x192
736 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
737 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
738 | fmt.Fscanf()
739 | /usr/local/go/src/fmt/scan.go:143 +0xcf
740 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
741 | /usr/local/go/src/fmt/scan.go:114 +0x284
742 | fmt.(*ss).doScanf()
743 | /usr/local/go/src/fmt/scan.go:1217 +0x382
744 | fmt.Fscanf()
745 | /usr/local/go/src/fmt/scan.go:143 +0xcf
746 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
747 | /usr/local/go/src/fmt/scan.go:114 +0x192
748 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
749 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
750 | github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
751 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:476 +0xc5
752 | github.com/syndtr/goleveldb/leveldb.openDB()
753 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:125 +0x9cc
754 | github.com/syndtr/goleveldb/leveldb.Open()
755 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:197 +0x1d3
756 | fmt.Fscanf()
757 | /usr/local/go/src/fmt/scan.go:143 +0xcf
758 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
759 | /usr/local/go/src/fmt/scan.go:114 +0x192
760 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
761 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
762 | github.com/syndtr/goleveldb/leveldb.(*session).recover.func1()
763 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:113 +0xf4
764 | github.com/syndtr/goleveldb/leveldb.(*session).recover()
765 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:121 +0x1929
766 | github.com/syndtr/goleveldb/leveldb.Open()
767 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:183 +0xf8
768 | github.com/syndtr/goleveldb/leveldb.OpenFile()
769 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:219 +0xa5
770 | github.com/lunny/levelqueue.Open()
771 | /go/src/code.gitea.io/gitea/vendor/github.com/lunny/levelqueue/queue.go:26 +0x66
772 | code.gitea.io/gitea/modules/indexer/issues.NewLevelQueue()
773 | /go/src/code.gitea.io/gitea/modules/indexer/issues/queue_disk.go:29 +0x46
774 | code.gitea.io/gitea/modules/indexer/issues.InitIssueIndexer()
775 | /go/src/code.gitea.io/gitea/modules/indexer/issues/indexer.go:82 +0x562
776 | code.gitea.io/gitea/routers.GlobalInit()
777 | /go/src/code.gitea.io/gitea/routers/init.go:97 +0xb11
778 | code.gitea.io/gitea/integrations.initIntegrationTest()
779 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:168 +0x502
780 | code.gitea.io/gitea/integrations.TestMain()
781 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:57 +0x47
782 | main.main()
783 | _testmain.go:448 +0x223
784 | ==================

785 | ==================
786 | WARNING: DATA RACE
787 | Read at 0x00c002b70900 by goroutine 23:
788 | code.gitea.io/gitea/models.(*Permission).UnitAccessMode()
789 | /go/src/code.gitea.io/gitea/models/repo_permission.go:41 +0xae
790 | code.gitea.io/gitea/models.(*Repository).checkUnitUser()
791 | /go/src/code.gitea.io/gitea/models/repo_permission.go:53 +0x11a
792 | code.gitea.io/gitea/models.createOrUpdateIssueNotifications()
793 | /go/src/code.gitea.io/gitea/models/notification.go:132 +0x68f
794 | code.gitea.io/gitea/models.CreateOrUpdateIssueNotifications()
795 | /go/src/code.gitea.io/gitea/models/notification.go:68 +0x188
796 | code.gitea.io/gitea/modules/notification/ui.(*notificationService).Run()
797 | /go/src/code.gitea.io/gitea/modules/notification/ui/ui.go:39 +0x9e
798 | 聽
799 | Previous write at 0x00c002b70900 by goroutine 99:
800 | runtime.slicecopy()
801 | /usr/local/go/src/runtime/slice.go:197 +0x0
802 | reflect.typedslicecopy()
803 | /usr/local/go/src/runtime/mbarrier.go:307 +0x164
804 | reflect.grow()
805 | /usr/local/go/src/reflect/value.go:2018 +0x1a9
806 | reflect.Append()
807 | /usr/local/go/src/reflect/value.go:2026 +0x89
808 | github.com/go-xorm/xorm.(*Session).noCacheFind.func2()
809 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:244 +0x14c
810 | github.com/go-xorm/xorm.(*Session).rows2Beans.func1()
811 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session.go:337 +0x64
812 | github.com/go-xorm/xorm.(*Session).executeProcessors()
813 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/processors.go:66 +0x124
814 | github.com/go-xorm/xorm.(*Session).noCacheFind()
815 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:286 +0x8a7
816 | github.com/go-xorm/xorm.(*Session).find()
817 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:197 +0x800
818 | github.com/go-xorm/xorm.(*Session).Find()
819 | /go/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_find.go:29 +0xb1
820 | code.gitea.io/gitea/models.getUnitsByRepoID()
821 | /go/src/code.gitea.io/gitea/models/repo_unit.go:173 +0x13d
822 | code.gitea.io/gitea/models.(*Repository).getUnit()
823 | /go/src/code.gitea.io/gitea/models/repo.go:343 +0x228
824 | code.gitea.io/gitea/models.(*Repository).ComposeMetas()
825 | /go/src/code.gitea.io/gitea/models/repo.go:432 +0x35e
826 | code.gitea.io/gitea/models.composeIssueCommentMessage()
827 | /go/src/code.gitea.io/gitea/models/mail.go:172 +0x38a
828 | code.gitea.io/gitea/models.SendIssueCommentMail()
829 | /go/src/code.gitea.io/gitea/models/mail.go:208 +0xd5
830 | code.gitea.io/gitea/models.mailIssueCommentToParticipants()
831 | /go/src/code.gitea.io/gitea/models/issue_mail.go:96 +0x13ed
832 | code.gitea.io/gitea/models.(*Issue).mailParticipants()
833 | /go/src/code.gitea.io/gitea/models/issue_mail.go:133 +0x92f
834 | code.gitea.io/gitea/modules/notification/mail.(*mailNotifier).NotifyNewIssue()
835 | /go/src/code.gitea.io/gitea/models/issue_mail.go:122 +0x99
836 | code.gitea.io/gitea/modules/notification.NotifyNewIssue()
837 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:43 +0x9f
838 | code.gitea.io/gitea/routers/api/v1/repo.CreateIssue()
839 | /go/src/code.gitea.io/gitea/routers/api/v1/repo/issue.go:228 +0x918
840 | runtime.call128()
841 | /usr/local/go/src/runtime/asm_amd64.s:541 +0x51
842 | reflect.Value.Call()
843 | /usr/local/go/src/reflect/value.go:321 +0xd3
844 | gitea.com/macaron/inject.(*injector).callInvoke()
845 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
846 | gitea.com/macaron/inject.(*injector).Invoke()
847 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
848 | gitea.com/macaron/macaron.(*Context).run()
849 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
850 | code.gitea.io/gitea/modules/context.Recovery.func1()
851 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xc5
852 | runtime.call32()
853 | /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
854 | reflect.Value.Call()
855 | /usr/local/go/src/reflect/value.go:321 +0xd3
856 | gitea.com/macaron/inject.(*injector).callInvoke()
857 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:177 +0x2ea
858 | gitea.com/macaron/inject.(*injector).Invoke()
859 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:137 +0xe6
860 | gitea.com/macaron/macaron.(*Context).run()
861 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
862 | gitea.com/macaron/session.Sessioner.func1()
863 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x52e
864 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
865 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
866 | gitea.com/macaron/inject.(*injector).fastInvoke()
867 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
868 | gitea.com/macaron/inject.(*injector).Invoke()
869 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
870 | gitea.com/macaron/macaron.(*Context).run()
871 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
872 | gitea.com/macaron/macaron.Recovery.func1()
873 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0xb8
874 | gitea.com/macaron/macaron.LoggerInvoker.Invoke()
875 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/logger.go:40 +0xb8
876 | gitea.com/macaron/inject.(*injector).fastInvoke()
877 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
878 | gitea.com/macaron/inject.(*injector).Invoke()
879 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
880 | gitea.com/macaron/macaron.(*Context).run()
881 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
882 | code.gitea.io/gitea/routers/routes.RouterHandler.func1()
883 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:112 +0x573
884 | gitea.com/macaron/macaron.ContextInvoker.Invoke()
885 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:79 +0x6c
886 | gitea.com/macaron/inject.(*injector).fastInvoke()
887 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:157 +0x2bb
888 | gitea.com/macaron/inject.(*injector).Invoke()
889 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/inject/inject.go:135 +0x227
890 | gitea.com/macaron/macaron.(*Context).run()
891 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/context.go:121 +0x1ba
892 | gitea.com/macaron/macaron.(*Router).Handle.func1()
893 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:187 +0x3ef
894 | gitea.com/macaron/macaron.(*Router).ServeHTTP()
895 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/router.go:303 +0x31a
896 | gitea.com/macaron/macaron.(*Macaron).ServeHTTP()
897 | /go/src/code.gitea.io/gitea/vendor/gitea.com/macaron/macaron/macaron.go:220 +0x164
898 | code.gitea.io/gitea/integrations.MakeRequest()
899 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:351 +0x19a
900 | code.gitea.io/gitea/integrations.(*TestSession).MakeRequest()
901 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:211 +0x1f6
902 | code.gitea.io/gitea/integrations.TestAPICreateIssue()
903 | /go/src/code.gitea.io/gitea/integrations/api_issue_test.go:52 +0x609
904 | testing.tRunner()
905 | /usr/local/go/src/testing/testing.go:909 +0x199
906 | 聽
907 | Goroutine 23 (running) created at:
908 | code.gitea.io/gitea/modules/notification.RegisterNotifier()
909 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:22 +0x57
910 | code.gitea.io/gitea/modules/notification.init.0()
911 | /go/src/code.gitea.io/gitea/modules/notification/notification.go:27 +0xc1
912 | 聽
913 | Goroutine 99 (running) created at:
914 | testing.(*T).Run()
915 | /usr/local/go/src/testing/testing.go:960 +0x651
916 | testing.runTests.func1()
917 | /usr/local/go/src/testing/testing.go:1202 +0xa6
918 | testing.tRunner()
919 | /usr/local/go/src/testing/testing.go:909 +0x199
920 | testing.runTests()
921 | /usr/local/go/src/testing/testing.go:1200 +0x521
922 | testing.(*M).Run()
923 | /usr/local/go/src/testing/testing.go:1117 +0x2ff
924 | code.gitea.io/gitea/integrations.TestMain()
925 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:83 +0x374
926 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
927 | /usr/local/go/src/fmt/scan.go:114 +0x284
928 | fmt.(*ss).doScanf()
929 | /usr/local/go/src/fmt/scan.go:1217 +0x382
930 | fmt.Fscanf()
931 | /usr/local/go/src/fmt/scan.go:143 +0xcf
932 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
933 | /usr/local/go/src/fmt/scan.go:114 +0x192
934 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
935 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
936 | github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
937 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db_util.go:52 +0x2f8
938 | github.com/syndtr/goleveldb/leveldb.openDB()
939 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x9f0
940 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
941 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
942 | fmt.Fscanf()
943 | /usr/local/go/src/fmt/scan.go:143 +0xcf
944 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
945 | /usr/local/go/src/fmt/scan.go:114 +0x192
946 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
947 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
948 | fmt.Fscanf()
949 | /usr/local/go/src/fmt/scan.go:143 +0xcf
950 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
951 | /usr/local/go/src/fmt/scan.go:114 +0x192
952 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
953 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
954 | fmt.Fscanf()
955 | /usr/local/go/src/fmt/scan.go:143 +0xcf
956 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
957 | /usr/local/go/src/fmt/scan.go:114 +0x284
958 | fmt.(*ss).doScanf()
959 | /usr/local/go/src/fmt/scan.go:1217 +0x382
960 | fmt.Fscanf()
961 | /usr/local/go/src/fmt/scan.go:143 +0xcf
962 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
963 | /usr/local/go/src/fmt/scan.go:114 +0x192
964 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
965 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
966 | github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
967 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:476 +0xc5
968 | github.com/syndtr/goleveldb/leveldb.openDB()
969 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:125 +0x9cc
970 | github.com/syndtr/goleveldb/leveldb.Open()
971 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:197 +0x1d3
972 | fmt.Fscanf()
973 | /usr/local/go/src/fmt/scan.go:143 +0xcf
974 | github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
975 | /usr/local/go/src/fmt/scan.go:114 +0x192
976 | github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
977 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage.go:458 +0x2c4
978 | github.com/syndtr/goleveldb/leveldb.(*session).recover.func1()
979 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:113 +0xf4
980 | github.com/syndtr/goleveldb/leveldb.(*session).recover()
981 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/session.go:121 +0x1929
982 | github.com/syndtr/goleveldb/leveldb.Open()
983 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:183 +0xf8
984 | github.com/syndtr/goleveldb/leveldb.OpenFile()
985 | /go/src/code.gitea.io/gitea/vendor/github.com/syndtr/goleveldb/leveldb/db.go:219 +0xa5
986 | github.com/lunny/levelqueue.Open()
987 | /go/src/code.gitea.io/gitea/vendor/github.com/lunny/levelqueue/queue.go:26 +0x66
988 | code.gitea.io/gitea/modules/indexer/issues.NewLevelQueue()
989 | /go/src/code.gitea.io/gitea/modules/indexer/issues/queue_disk.go:29 +0x46
990 | code.gitea.io/gitea/modules/indexer/issues.InitIssueIndexer()
991 | /go/src/code.gitea.io/gitea/modules/indexer/issues/indexer.go:82 +0x562
992 | code.gitea.io/gitea/routers.GlobalInit()
993 | /go/src/code.gitea.io/gitea/routers/init.go:97 +0xb11
994 | code.gitea.io/gitea/integrations.initIntegrationTest()
995 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:168 +0x502
996 | code.gitea.io/gitea/integrations.TestMain()
997 | /go/src/code.gitea.io/gitea/integrations/integration_test.go:57 +0x47
998 | main.main()
999 | _testmain.go:448 +0x223
1000 | ==================

closed by #8204

There are other issues. Please reopen this.

@typeless

There are other issues. Please reopen this.

can we move this out of 1.9.4 ?

@6543 no problem.

All these datarace are fixed.

Was this page helpful?
0 / 5 - 0 ratings