PerfectlySoft / Perfect

Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)
https://www.perfect.org
Apache License 2.0
13.83k stars 944 forks source link

Fatal Error When Idle "UnsafeMutablePointer.initialize overlapping range" #296

Open augustsaintfreytag opened 4 years ago

augustsaintfreytag commented 4 years ago

I've built a listener server with Perfect HTTP, listening on certain routes for Webhooks called by GitLab on certain repository actions. The project is a work in progress and primarily for my own use, though it is public on https://gitlab.com/apricum/gitlab-listener.

I'm starting the server through systemd via systemctl start and the likes. I've found it crashes after a seemingly random amount of time, sometimes a few hours, other times not even ten minutes. Reading the log with sudo journalctl -u gitlab-listener (where gitlab-listener is the name of the systemd service file), as follows:

Apr 28 12:54:04 luxembourg-master systemd[1]: Started GitLab Listener.
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: Fatal error: UnsafeMutablePointer.initialize overlapping range: file /home/buildnode/jenkins/workspace/oss-swift-5.2-package-linux-ubuntu-18_04/swift/stdlib/public/core/UnsafePointer.swift, line 832
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: Current stack trace:
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 0    libswiftCore.so                    0x00007f2e15f01f90 swift_reportError + 50
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 1    libswiftCore.so                    0x00007f2e15f73a60 _swift_stdlib_reportFatalErrorInFile + 115
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 2    libswiftCore.so                    0x00007f2e15c88735 <unavailable> + 1382197
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 3    libswiftCore.so                    0x00007f2e15c88257 <unavailable> + 1380951
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 4    libswiftCore.so                    0x00007f2e15c87f23 <unavailable> + 1380131
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 5    libswiftCore.so                    0x00007f2e15c87890 _assertionFailure(_:_:file:line:flags:) + 525
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 6    libswiftCore.so                    0x00007f2e15c87df0 _fatalErrorMessage(_:_:file:line:flags:) + 44
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 7    libswiftCore.so                    0x00007f2e15ea5fb2 <unavailable> + 3600306
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 8    GitLabListener                     0x000055a3a662ac98 <unavailable> + 1043608
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 9    GitLabListener                     0x000055a3a65c1098 <unavailable> + 610456
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 10   GitLabListener                     0x000055a3a65c145b <unavailable> + 611419
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 11   GitLabListener                     0x000055a3a65bff02 <unavailable> + 605954
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 12   GitLabListener                     0x000055a3a656e210 <unavailable> + 270864
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 13   GitLabListener                     0x000055a3a65c1b83 <unavailable> + 613251
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 14   GitLabListener                     0x000055a3a65c1789 <unavailable> + 612233
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 15   GitLabListener                     0x000055a3a6638709 <unavailable> + 1099529
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 16   GitLabListener                     0x000055a3a65c1a9c <unavailable> + 613020
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 17   GitLabListener                     0x000055a3a66383b9 <unavailable> + 1098681
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 18   GitLabListener                     0x000055a3a66396e5 <unavailable> + 1103589
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 19   GitLabListener                     0x000055a3a663a5cc <unavailable> + 1107404
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 20   GitLabListener                     0x000055a3a6635dc2 <unavailable> + 1088962
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 21   GitLabListener                     0x000055a3a65c65d9 <unavailable> + 632281
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 22   libdispatch.so                     0x00007f2e14f35487 <unavailable> + 140423
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 23   libdispatch.so                     0x00007f2e14f3d14a <unavailable> + 172362
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 24   libdispatch.so                     0x00007f2e14f3cec8 <unavailable> + 171720
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 25   libdispatch.so                     0x00007f2e14f49993 <unavailable> + 223635
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 26   libpthread.so.0                    0x00007f2e1591f6db <unavailable> + 30427
Apr 28 14:12:04 luxembourg-master GitLabListener[7000]: 27   libc.so.6                          0x00007f2e140e1850 clone + 63
Apr 28 14:12:04 luxembourg-master systemd[1]: gitlab-listener.service: Main process exited, code=killed, status=4/ILL
Apr 28 14:12:04 luxembourg-master systemd[1]: gitlab-listener.service: Failed with result 'signal'.
valentindusollier commented 4 years ago

@ApricumMedia Did you ever manage to fixe this?