Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yay segmentation violation: signal arrived during cgo execution #2536

Open
bulletmark opened this issue Nov 24, 2024 · 0 comments
Open

yay segmentation violation: signal arrived during cgo execution #2536

bulletmark opened this issue Nov 24, 2024 · 0 comments
Labels
Status: Confirmed Bug has been verified Type: Bug

Comments

@bulletmark
Copy link

I update my Arch laptop every morning using yay and have been doing so for years. A couple of weeks ago I experienced a yay crash but just ran it immediately again and it worked fine. Today it crashed again so thought I should raise an issue about it. Version is yay v12.4.2 - libalpm v15.0.0. Here is the output:

$ yay -Syu --noconfirm --combinedupgrade
:: Synchronizing package databases...
 core                         116.7 KiB   267 KiB/s 00:00 [##############################] 100%
 extra                          7.6 MiB  4.67 MiB/s 00:02 [##############################] 100%
:: Searching AUR for updates...
:: Searching databases for updates...
:: 1 package to upgrade/install.
1  core/pam  1.6.1-3 -> 1.7.0-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 
Sync Dependency (1): pam-1.7.0-1
:: Synchronizing package databases...
 core is up to date
 extra is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (1)  Old Version  New Version  Net Change  Download Size

core/pam     1.6.1-3      1.7.0-1        0.14 MiB       0.89 MiB

Total Download Size:   0.89 MiB
Total Installed Size:  3.34 MiB
Net Upgrade Size:      0.14 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 pam-1.7.0-1-x86_64           913.2 KiB  4.77 MiB/s 00:00 [##############################] 100%
(1/1) checking keys in keyring                            [##############################] 100%
(1/1) checking package integrity                          [##############################] 100%
(1/1) loading package files                               [##############################] 100%
(1/1) checking for file conflicts                         [##############################] 100%
(1/1) checking available disk space                       [##############################] 100%
:: Processing package changes...
(1/1) upgrading pam                                       [##############################] 100%
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Creating temporary files...
(3/3) Arming ConditionNeedsUpdate...
SIGSEGV: segmentation violation
PC=0x750a693d085d m=7 sigcode=1 addr=0x633dfcdf5f27
signal arrived during cgo execution

goroutine 54 gp=0xc000007a40 m=7 mp=0xc00005f808 [syscall]:
runtime.cgocall(0x633bb4628bb0, 0xc0003abc88)
	runtime/cgocall.go:167 +0x4b fp=0xc0003abc60 sp=0xc0003abc28 pc=0x633bb425140b
github.com/Jguer/go-alpm/v2._Cfunc_alpm_db_get_pkgcache(0x633bcf503370)
	_cgo_gotypes.go:303 +0x50 fp=0xc0003abc88 sp=0xc0003abc60 pc=0x633bb44e6030
github.com/Jguer/go-alpm/v2.(*DB).PkgCache.func1(0x10?)
	github.com/Jguer/go-alpm/v2@v2.2.2/db.go:183 +0x3e fp=0xc0003abcc8 sp=0xc0003abc88 pc=0x633bb44ea43e
github.com/Jguer/go-alpm/v2.(*DB).PkgCache(0xc0003e4a90)
	github.com/Jguer/go-alpm/v2@v2.2.2/db.go:183 +0x18 fp=0xc0003abcf8 sp=0xc0003abcc8 pc=0x633bb44ea398
github.com/Jguer/yay/v12/pkg/db/ialpm.(*AlpmExecutor).SyncPackages.func1({0x633bb47b82b8?, 0xc0003e4a90?})
	github.com/Jguer/yay/v12/pkg/db/ialpm/alpm.go:345 +0x37 fp=0xc0003abd40 sp=0xc0003abcf8 pc=0x633bb4615ab7
github.com/Jguer/go-alpm/v2.(*DBList).ForEach.DBList.ForEach.func1(0x633bcf503370)
	github.com/Jguer/go-alpm/v2@v2.2.2/db.go:36 +0x56 fp=0xc0003abd70 sp=0xc0003abd40 pc=0x633bb44ee156
github.com/Jguer/go-alpm/v2.(*list).forEach(0xc00008ac00?, 0xc0003abda0)
	github.com/Jguer/go-alpm/v2@v2.2.2/types.go:108 +0x3b fp=0xc0003abd90 sp=0xc0003abd70 pc=0x633bb44ed03b
github.com/Jguer/go-alpm/v2.DBList.ForEach(...)
	github.com/Jguer/go-alpm/v2@v2.2.2/db.go:35
github.com/Jguer/go-alpm/v2.(*DBList).ForEach(0x0?, 0xc000248000?)
	<autogenerated>:1 +0x4b fp=0xc0003abdd0 sp=0xc0003abd90 pc=0x633bb44ee0ab
github.com/Jguer/yay/v12/pkg/db/ialpm.(*AlpmExecutor).SyncPackages(0xc0000a4240, {0x0, 0x0, 0x0})
	github.com/Jguer/yay/v12/pkg/db/ialpm/alpm.go:343 +0xb7 fp=0xc0003abdf8 sp=0xc0003abdd0 pc=0x633bb4615a37
github.com/Jguer/yay/v12/pkg/completion.createRepoList({0x750a1c1fd238?, 0xc0000a4240?}, {0x633bb47b2208, 0xc00019c9b8})
	github.com/Jguer/yay/v12/pkg/completion/completion.go:122 +0x42 fp=0xc0003abe80 sp=0xc0003abdf8 pc=0x633bb45ded42
github.com/Jguer/yay/v12/pkg/completion.Update({0x633bb47b5ed0, 0x633bb4a907e0}, {0x633bb47b2268, 0xc0000fe1e0}, {0x750a1c1fd238, 0xc0000a4240}, {0x633bb463a7c4, 0x19}, {0xc0000de750, 0x26}, ...)
	github.com/Jguer/yay/v12/pkg/completion/completion.go:68 +0x27c fp=0xc0003abf38 sp=0xc0003abe80 pc=0x633bb45de65c
github.com/Jguer/yay/v12/pkg/sync.(*OperationService).Run.func1()
	github.com/Jguer/yay/v12/pkg/sync/sync.go:67 +0x97 fp=0xc0003abfe0 sp=0xc0003abf38 pc=0x633bb4613a37
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0003abfe8 sp=0xc0003abfe0 pc=0x633bb425f281
created by github.com/Jguer/yay/v12/pkg/sync.(*OperationService).Run in goroutine 1
	github.com/Jguer/yay/v12/pkg/sync/sync.go:66 +0xc48

goroutine 1 gp=0xc0000061c0 m=5 mp=0xc000100008 [syscall]:
runtime.cgocall(0x633bb4628a90, 0xc00003bcb8)
	runtime/cgocall.go:167 +0x4b fp=0xc00003bc90 sp=0xc00003bc58 pc=0x633bb425140b
github.com/Jguer/go-alpm/v2._Cfunc_alpm_release(0x633bcf502470)
	_cgo_gotypes.go:1705 +0x4f fp=0xc00003bcb8 sp=0xc00003bc90 pc=0x633bb44e814f
github.com/Jguer/go-alpm/v2.(*Handle).Release.func1(0x633bb462c025?)
	github.com/Jguer/go-alpm/v2@v2.2.2/alpm.go:35 +0x3e fp=0xc00003bcf8 sp=0xc00003bcb8 pc=0x633bb44e8c3e
github.com/Jguer/go-alpm/v2.(*Handle).Release(0xc000015380)
	github.com/Jguer/go-alpm/v2@v2.2.2/alpm.go:35 +0x18 fp=0xc00003bd10 sp=0xc00003bcf8 pc=0x633bb44e8bb8
github.com/Jguer/yay/v12/pkg/db/ialpm.(*AlpmExecutor).Cleanup(0x633bcf4ec101?)
	github.com/Jguer/yay/v12/pkg/db/ialpm/alpm.go:506 +0x1b fp=0xc00003bd58 sp=0xc00003bd10 pc=0x633bb4616bdb
main.main.func2()
	github.com/Jguer/yay/v12/main.go:128 +0xa9 fp=0xc00003bdc8 sp=0xc00003bd58 pc=0x633bb461f9e9
main.main()
	github.com/Jguer/yay/v12/main.go:146 +0x7cc fp=0xc00003bf50 sp=0xc00003bdc8 pc=0x633bb461f88c
runtime.main()
	runtime/proc.go:272 +0x29d fp=0xc00003bfe0 sp=0xc00003bf50 pc=0x633bb422351d
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc00003bfe8 sp=0xc00003bfe0 pc=0x633bb425f281

goroutine 18 gp=0xc000104380 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc0000527a8 sp=0xc000052788 pc=0x633bb42574ae
runtime.goparkunlock(...)
	runtime/proc.go:430
runtime.forcegchelper()
	runtime/proc.go:337 +0xb8 fp=0xc0000527e0 sp=0xc0000527a8 pc=0x633bb4223858
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000527e8 sp=0xc0000527e0 pc=0x633bb425f281
created by runtime.init.7 in goroutine 1
	runtime/proc.go:325 +0x1a

goroutine 19 gp=0xc000104540 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000052f80 sp=0xc000052f60 pc=0x633bb42574ae
runtime.goparkunlock(...)
	runtime/proc.go:430
runtime.bgsweep(0xc000114000)
	runtime/mgcsweep.go:317 +0xdf fp=0xc000052fc8 sp=0xc000052f80 pc=0x633bb420e2ff
runtime.gcenable.gowrap1()
	runtime/mgc.go:203 +0x25 fp=0xc000052fe0 sp=0xc000052fc8 pc=0x633bb4202b85
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000052fe8 sp=0xc000052fe0 pc=0x633bb425f281
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:203 +0x66

goroutine 20 gp=0xc000104700 m=nil [GC scavenge wait]:
runtime.gopark(0x3ba02f2d?, 0x3b9aca00?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000053778 sp=0xc000053758 pc=0x633bb42574ae
runtime.goparkunlock(...)
	runtime/proc.go:430
runtime.(*scavengerState).park(0x633bb4a6eae0)
	runtime/mgcscavenge.go:425 +0x49 fp=0xc0000537a8 sp=0xc000053778 pc=0x633bb420bce9
runtime.bgscavenge(0xc000114000)
	runtime/mgcscavenge.go:658 +0x59 fp=0xc0000537c8 sp=0xc0000537a8 pc=0x633bb420c279
runtime.gcenable.gowrap2()
	runtime/mgc.go:204 +0x25 fp=0xc0000537e0 sp=0xc0000537c8 pc=0x633bb4202b25
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000537e8 sp=0xc0000537e0 pc=0x633bb425f281
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:204 +0xa5

goroutine 34 gp=0xc000186380 m=nil [finalizer wait]:
runtime.gopark(0x0?, 0x633bb47ae1b8?, 0x0?, 0x60?, 0x2000000020?)
	runtime/proc.go:424 +0xce fp=0xc000056620 sp=0xc000056600 pc=0x633bb42574ae
runtime.runfinq()
	runtime/mfinal.go:193 +0x107 fp=0xc0000567e0 sp=0xc000056620 pc=0x633bb4201c07
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000567e8 sp=0xc0000567e0 pc=0x633bb425f281
created by runtime.createfing in goroutine 1
	runtime/mfinal.go:163 +0x3d

goroutine 2 gp=0xc000007340 m=nil [chan receive]:
runtime.gopark(0xc000056f60?, 0x633bb4362e25?, 0x40?, 0xa2?, 0x633bb47bba60?)
	runtime/proc.go:424 +0xce fp=0xc000056f18 sp=0xc000056ef8 pc=0x633bb42574ae
runtime.chanrecv(0xc0000a8000, 0x0, 0x1)
	runtime/chan.go:639 +0x41c fp=0xc000056f90 sp=0xc000056f18 pc=0x633bb41f285c
runtime.chanrecv1(0x0?, 0x0?)
	runtime/chan.go:489 +0x12 fp=0xc000056fb8 sp=0xc000056f90 pc=0x633bb41f2412
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
	runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
	runtime/mgc.go:1735 +0x2f fp=0xc000056fe0 sp=0xc000056fb8 pc=0x633bb42059cf
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000056fe8 sp=0xc000056fe0 pc=0x633bb425f281
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
	runtime/mgc.go:1730 +0x96

goroutine 50 gp=0xc000462000 m=nil [GC worker (idle)]:
runtime.gopark(0x4f7dcfef9988?, 0x3?, 0x25?, 0xe4?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000468738 sp=0xc000468718 pc=0x633bb42574ae
runtime.gcBgMarkWorker(0xc000453340)
	runtime/mgc.go:1363 +0xe9 fp=0xc0004687c8 sp=0xc000468738 pc=0x633bb4204cc9
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1279 +0x25 fp=0xc0004687e0 sp=0xc0004687c8 pc=0x633bb4204ba5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004687e8 sp=0xc0004687e0 pc=0x633bb425f281
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1279 +0x105

goroutine 51 gp=0xc0004621c0 m=nil [GC worker (idle)]:
runtime.gopark(0x4f7d3c02fac0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000468f38 sp=0xc000468f18 pc=0x633bb42574ae
runtime.gcBgMarkWorker(0xc000453340)
	runtime/mgc.go:1363 +0xe9 fp=0xc000468fc8 sp=0xc000468f38 pc=0x633bb4204cc9
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1279 +0x25 fp=0xc000468fe0 sp=0xc000468fc8 pc=0x633bb4204ba5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000468fe8 sp=0xc000468fe0 pc=0x633bb425f281
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1279 +0x105

goroutine 52 gp=0xc000462380 m=nil [GC worker (idle)]:
runtime.gopark(0x4f7d3cda7d48?, 0x3?, 0x0?, 0x21?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000469738 sp=0xc000469718 pc=0x633bb42574ae
runtime.gcBgMarkWorker(0xc000453340)
	runtime/mgc.go:1363 +0xe9 fp=0xc0004697c8 sp=0xc000469738 pc=0x633bb4204cc9
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1279 +0x25 fp=0xc0004697e0 sp=0xc0004697c8 pc=0x633bb4204ba5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004697e8 sp=0xc0004697e0 pc=0x633bb425f281
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1279 +0x105

goroutine 53 gp=0xc000462540 m=nil [GC worker (idle)]:
runtime.gopark(0x4f7dcfbcb55f?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000469f38 sp=0xc000469f18 pc=0x633bb42574ae
runtime.gcBgMarkWorker(0xc000453340)
	runtime/mgc.go:1363 +0xe9 fp=0xc000469fc8 sp=0xc000469f38 pc=0x633bb4204cc9
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1279 +0x25 fp=0xc000469fe0 sp=0xc000469fc8 pc=0x633bb4204ba5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000469fe8 sp=0xc000469fe0 pc=0x633bb425f281
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1279 +0x105

goroutine 11 gp=0xc000007dc0 m=nil [IO wait]:
runtime.gopark(0x5da570ede6863b5?, 0xcf86861ece81c734?, 0xb5?, 0x63?, 0xb?)
	runtime/proc.go:424 +0xce fp=0xc0001d1700 sp=0xc0001d16e0 pc=0x633bb42574ae
runtime.netpollblock(0x633bb42746b8?, 0xb41efc46?, 0x3b?)
	runtime/netpoll.go:575 +0xf7 fp=0xc0001d1738 sp=0xc0001d1700 pc=0x633bb421c017
internal/poll.runtime_pollWait(0x750a660aad78, 0x72)
	runtime/netpoll.go:351 +0x85 fp=0xc0001d1758 sp=0xc0001d1738 pc=0x633bb42567a5
internal/poll.(*pollDesc).wait(0xc000092080?, 0xc00023e000?, 0x0)
	internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc0001d1780 sp=0xc0001d1758 pc=0x633bb4294aa7
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000092080, {0xc00023e000, 0xa000, 0xa000})
	internal/poll/fd_unix.go:165 +0x27a fp=0xc0001d1818 sp=0xc0001d1780 pc=0x633bb429559a
net.(*netFD).Read(0xc000092080, {0xc00023e000?, 0x633bb41f8dde?, 0x750a660af898?})
	net/fd_posix.go:55 +0x25 fp=0xc0001d1860 sp=0xc0001d1818 pc=0x633bb4379ec5
net.(*conn).Read(0xc00005a090, {0xc00023e000?, 0xc000247306?, 0x633bb4a276e0?})
	net/net.go:189 +0x45 fp=0xc0001d18a8 sp=0xc0001d1860 pc=0x633bb4383485
net.(*TCPConn).Read(0x100246031?, {0xc00023e000?, 0x18?, 0xc00024602c?})
	<autogenerated>:1 +0x25 fp=0xc0001d18d8 sp=0xc0001d18a8 pc=0x633bb438f2e5
crypto/tls.(*atLeastReader).Read(0xc000278018, {0xc00023e000?, 0x0?, 0xc000278018?})
	crypto/tls/conn.go:809 +0x3b fp=0xc0001d1920 sp=0xc0001d18d8 pc=0x633bb43d25db
bytes.(*Buffer).ReadFrom(0xc0000049b8, {0x633bb47b3640, 0xc000278018})
	bytes/buffer.go:211 +0x98 fp=0xc0001d1978 sp=0xc0001d1920 pc=0x633bb42c1478
crypto/tls.(*Conn).readFromUntil(0xc000004708, {0x633bb47b3780, 0xc00005a090}, 0xc0001d1a10?)
	crypto/tls/conn.go:831 +0xde fp=0xc0001d19b0 sp=0xc0001d1978 pc=0x633bb43d27be
crypto/tls.(*Conn).readRecordOrCCS(0xc000004708, 0x0)
	crypto/tls/conn.go:629 +0x3cf fp=0xc0001d1c28 sp=0xc0001d19b0 pc=0x633bb43cf8cf
crypto/tls.(*Conn).readRecord(...)
	crypto/tls/conn.go:591
crypto/tls.(*Conn).Read(0xc000004708, {0xc00039f000, 0x1000, 0xc000007c00?})
	crypto/tls/conn.go:1385 +0x150 fp=0xc0001d1c98 sp=0xc0001d1c28 pc=0x633bb43d6130
bufio.(*Reader).Read(0xc000436cc0, {0xc00029e040, 0x9, 0x633bb4a21af0?})
	bufio/bufio.go:241 +0x197 fp=0xc0001d1cd0 sp=0xc0001d1c98 pc=0x633bb4407f57
io.ReadAtLeast({0x633bb47b2580, 0xc000436cc0}, {0xc00029e040, 0x9, 0x9}, 0x9)
	io/io.go:335 +0x90 fp=0xc0001d1d18 sp=0xc0001d1cd0 pc=0x633bb428df10
io.ReadFull(...)
	io/io.go:354
net/http.http2readFrameHeader({0xc00029e040, 0x9, 0xd00c0?}, {0x633bb47b2580?, 0xc000436cc0?})
	net/http/h2_bundle.go:1642 +0x65 fp=0xc0001d1d68 sp=0xc0001d1d18 pc=0x633bb44339a5
net/http.(*http2Framer).ReadFrame(0xc00029e000)
	net/http/h2_bundle.go:1909 +0x85 fp=0xc0001d1e10 sp=0xc0001d1d68 pc=0x633bb4434025
net/http.(*http2clientConnReadLoop).run(0xc0001d1fa8)
	net/http/h2_bundle.go:9496 +0xda fp=0xc0001d1f60 sp=0xc0001d1e10 pc=0x633bb4444f3a
net/http.(*http2ClientConn).readLoop(0xc00039c000)
	net/http/h2_bundle.go:9392 +0x7c fp=0xc0001d1fc8 sp=0xc0001d1f60 pc=0x633bb444451c
net/http.(*http2Transport).newClientConn.gowrap1()
	net/http/h2_bundle.go:8006 +0x25 fp=0xc0001d1fe0 sp=0xc0001d1fc8 pc=0x633bb443dbc5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0001d1fe8 sp=0xc0001d1fe0 pc=0x633bb425f281
created by net/http.(*http2Transport).newClientConn in goroutine 10
	net/http/h2_bundle.go:8006 +0xd1b

rax    0x633dfcdf5df3
rbx    0xc0003abc88
rcx    0xfffffffffffffff8
rdx    0xc0003abc18
rdi    0x633bcf503370
rsi    0xc000105dc0
rbp    0xc0003abc18
rsp    0x750a1cab7dc0
r8     0xc00005f808
r9     0x0
r10    0x750a660b81b8
r11    0x0
r12    0xc0003ac000
r13    0x0
r14    0xc000007a40
r15    0x3fffff
rip    0x750a693d085d
rflags 0x10202
cs     0x33
fs     0x0
gs     0x0

I just ran it immediately again and it ran fine so this bug is not reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed Bug has been verified Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants