Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

[Bug] #1468

Open
Open
[Bug]#1468
Assignees
hsluoyz
Labels
@Garagator3000

Description

@Garagator3000

#888
This error apparently has not been fixed.

There was already an issue opened about this, but it was closed in version 2.37.1

go 1.22.4
github.com/casbin/casbin/v2 v2.71.1

This error was seen twice on the project.
Unfortunately, panics from sync.Mutex cannot be caught via recover().

...goroutine 104658 [running]:sync.fatal({0x10f316c?, 0xf92de0?})/usr/local/go/src/runtime/panic.go:1007 +0x18sync.(*Mutex).unlockSlow(0xc00039e248, 0xffffffff)/usr/local/go/src/sync/mutex.go:229 +0x35sync.(*Mutex).Unlock(...)/usr/local/go/src/sync/mutex.go:223sync.(*Map).Swap(0xc00039e248, {0xee7f40, 0xc0009786d0}, {0x1039740, 0xc000ba0870})/usr/local/go/src/sync/map.go:367 +0x35csync.(*Map).Store(...)/usr/local/go/src/sync/map.go:155github.com/casbin/casbin/v2.(*Enforcer).getAndStoreMatcherExpression(0x0?, 0x0, {0xc000353600, 0x75}, 0xc00092cf90)/go/pkg/mod/github.com/casbin/casbin/v2@v2.71.1/enforcer.go:726 +0xb9github.com/casbin/casbin/v2.(*Enforcer).enforce(0xc00039e1e0, {0x0, 0x0}, 0x0, {0xc00092cf30, 0x3, 0x3})/go/pkg/mod/github.com/casbin/casbin/v2@v2.71.1/enforcer.go:579 +0x9e5github.com/casbin/casbin/v2.(*Enforcer).Enforce(...)/go/pkg/mod/github.com/casbin/casbin/v2@v2.71.1/enforcer.go:733{PRIVATE}/usecases/permission.(*Usecase).CheckPolicy(0xc000820e10, {0x1e?, 0xc0011681b0?}, {0x131d7a8, 0xc00093bad0})/go/src/app/internal/app/a5/usecases/permission/usecase.go:168 +0x5ac...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp