-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Description
Bug描述
数组越界
重现步骤
- sudo ./fastgithub start
软件信息
- 操作系统: Arch Linux (6.15.8-arch1-1)
- FastGithub: v2.1.5
日志信息
[carry@CarryLaptop github]$ journalctl -xeu fastgithub.service
7月 31 15:22:15 CarryLaptop systemd[1]: Starting fastgithub...
░░ Subject: fastgithub.service 单元已开始启动
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ fastgithub.service 单元已开始启动。
7月 31 15:22:16 CarryLaptop fastgithub[74208]: 2025-07-31T15:22:16.5554017+08:00 [INF]
7月 31 15:22:16 CarryLaptop fastgithub[74208]: FastGithub.HttpServer
7月 31 15:22:16 CarryLaptop fastgithub[74208]: 已监听http://localhost:38457,http代理服务启动完成
7月 31 15:22:16 CarryLaptop fastgithub[74208]: Unhandled exception. 2025-07-31T15:22:16.7949579+08:00 [WRN]
7月 31 15:22:16 CarryLaptop fastgithub[74208]: FastGithub.DomainResolve.DnscryptProxy
7月 31 15:22:16 CarryLaptop fastgithub[74208]: dnscrypt-proxy启动失败:A task was canceled.
7月 31 15:22:16 CarryLaptop fastgithub[74208]: System.TypeInitializationException: The type initializer for 'FastGi
thub.ProductionVersion' threw an exception.
7月 31 15:22:16 CarryLaptop fastgithub[74208]: ---> System.IndexOutOfRangeException: Index was outside the bounds
of the array.
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at FastGithub.ProductionVersion.Parse(String productionVersion)
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at FastGithub.ProductionVersion..cctor()
7月 31 15:22:16 CarryLaptop fastgithub[74208]: --- End of inner exception stack trace ---
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at FastGithub.ProductionVersion.get_Current()
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at FastGithub.AppHostedService.StartAsync(CancellationToken cance
llationToken)
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(Cancella
tionToken )
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions
.RunAsync(IHost, CancellationToken )
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions
.RunAsync(IHost, CancellationToken )
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions
.Run(IHost)
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at Microsoft.AspNetCore.Builder.WebApplication.Run(String )
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at FastGithub.ServiceExtensions.Run(WebApplication app, Boolean s
ingleton)
7月 31 15:22:16 CarryLaptop fastgithub[74208]: at FastGithub.Program.Main(String[] args)
7月 31 15:22:17 CarryLaptop systemd-coredump[74229]: [🡕] Process 74208
(fastgithub) of user 0 dumped core.
Stack trace of thread 74208:
#0 0x00007f153853274c n/a (libc.so.6 + 0x9774c)
#1 0x00007f15384d8dc0 raise (libc.so.6 + 0x3ddc0)
#2 0x00007f15384c057a abort (libc.so.6 + 0x2557a)
#3 0x000055b6629c4fb2 n/a (/home/carry/programming/g
ithub/fastgithub + 0x9d5fb2)
#4 0x000055b6629c4ed2 n/a (/home/carry/programming/g
ithub/fastgithub + 0x9d5ed2)
#5 0x000055b662559995 n/a (/home/carry/programming/g
ithub/fastgithub + 0x56a995)
#6 0x000055b662559a76 n/a (/home/carry/programming/g
ithub/fastgithub + 0x56aa76)
#7 0x000055b6624a4239 n/a (/home/carry/programming/g
ithub/fastgithub + 0x4b5239)
#8 0x000055b5e3bce43a n/a (n/a + 0x0)
#9 0x000055b5e3bce069 n/a (n/a + 0x0)
#10 0x000055b5e3bcdad8 n/a (n/a + 0x0)
#11 0x000055b5e3bad318 n/a (n/a + 0x0)
#12 0x000055b5e3bd7b4b n/a (n/a + 0x0)
#13 0x000055b5e3bab155 n/a (n/a + 0x0)
#14 0x000055b5e3baaf3a n/a (n/a + 0x0)
#15 0x000055b5e3baa601 n/a (n/a + 0x0)
#16 0x000055b5e31e3149 n/a (n/a + 0x0)
#17 0x000055b662611f17 n/a (/home/carry/programming/g
ithub/fastgithub + 0x622f17)
#18 0x000055b66243d4f4 n/a (/home/carry/programming/g
ithub/fastgithub + 0x44e4f4)
#19 0x000055b66234153a n/a (/home/carry/programming/g
ithub/fastgithub + 0x35253a)
#20 0x000055b6623418ab n/a (/home/carry/programming/g
ithub/fastgithub + 0x3528ab)
#21 0x000055b6623129cc n/a (/home/carry/programming/g
ithub/fastgithub + 0x3239cc)
#22 0x000055b662311f83 n/a (/home/carry/programming/g
ithub/fastgithub + 0x322f83)
#23 0x000055b6622e8031 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2f9031)
#24 0x000055b6622e84c1 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2f94c1)
#25 0x000055b6622e8ecc n/a (/home/carry/programming/g
ithub/fastgithub + 0x2f9ecc)
#26 0x000055b6622c05e4 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2d15e4)
#27 0x000055b6622bed09 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2cfd09)
#28 0x000055b6622b9e6e n/a (/home/carry/programming/g
ithub/fastgithub + 0x2cae6e)
#29 0x000055b662311118 n/a (/home/carry/programming/g
ithub/fastgithub + 0x322118)
#30 0x000055b6623116a0 n/a (/home/carry/programming/g
ithub/fastgithub + 0x3226a0)
#31 0x00007f15384c26b5 n/a (libc.so.6 + 0x276b5)
#32 0x00007f15384c2769 __libc_start_main (libc.so.6 +
0x27769)
#33 0x000055b6622b5029 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2c6029)
ELF object binary architecture: AMD x86-64
░░ Subject: 进程 74208 (fastgithub) 核心已转储
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░
░░ 进程 74208 (fastgithub) 已崩溃并进行核心转储。
░░
░░ 这通常意味着崩溃程序中存在编程错误,并应当将此错误向其开发者报告。
7月 31 15:22:17 CarryLaptop systemd[1]: fastgithub.service: Main process exited
, code=dumped, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit fastgithub.service has exited.
░░
░░ The process' exit code is 'dumped' and its exit status is 6.
7月 31 15:22:17 CarryLaptop systemd[1]: fastgithub.service: Failed with result
'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit fastgithub.service has entered the 'failed' state with result 'core-dump'.
7月 31 15:22:17 CarryLaptop systemd[1]: Failed to start fastgithub.
░░ Subject: fastgithub.service 单元已失败
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ fastgithub.service 单元已失败。
░░
░░ 结果为“failed”。
7月 31 15:22:17 CarryLaptop systemd[1]: fastgithub.service: Consumed 1.477s CPU time, 38M memory peak.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit fastgithub.service completed and consumed the indicated resources.
7月 31 15:23:01 CarryLaptop systemd[1]: Starting fastgithub...
░░ Subject: fastgithub.service 单元已开始启动
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ fastgithub.service 单元已开始启动。
7月 31 15:23:02 CarryLaptop fastgithub[74422]: 2025-07-31T15:23:02.7322886+08:00 [INF]
7月 31 15:23:02 CarryLaptop fastgithub[74422]: FastGithub.HttpServer
7月 31 15:23:02 CarryLaptop fastgithub[74422]: 已监听http://localhost:38457,http代理服务启动完成
7月 31 15:23:02 CarryLaptop fastgithub[74422]: Unhandled exception. 2025-07-31T15:23:02.9780001+08:00 [WRN]
7月 31 15:23:02 CarryLaptop fastgithub[74422]: FastGithub.DomainResolve.DnscryptProxy
7月 31 15:23:02 CarryLaptop fastgithub[74422]: dnscrypt-proxy启动失败:A task was canceled.
7月 31 15:23:02 CarryLaptop fastgithub[74422]: System.TypeInitializationException: The type initializer for 'FastGi
thub.ProductionVersion' threw an exception.
7月 31 15:23:02 CarryLaptop fastgithub[74422]: ---> System.IndexOutOfRangeException: Index was outside the bounds
of the array.
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at FastGithub.ProductionVersion.Parse(String productionVersion)
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at FastGithub.ProductionVersion..cctor()
7月 31 15:23:02 CarryLaptop fastgithub[74422]: --- End of inner exception stack trace ---
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at FastGithub.ProductionVersion.get_Current()
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at FastGithub.AppHostedService.StartAsync(CancellationToken cance
llationToken)
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(Cancella
tionToken )
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions
.RunAsync(IHost, CancellationToken )
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions
.RunAsync(IHost, CancellationToken )
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions
.Run(IHost)
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at Microsoft.AspNetCore.Builder.WebApplication.Run(String )
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at FastGithub.ServiceExtensions.Run(WebApplication app, Boolean s
ingleton)
7月 31 15:23:02 CarryLaptop fastgithub[74422]: at FastGithub.Program.Main(String[] args)
7月 31 15:23:03 CarryLaptop systemd-coredump[74443]: [🡕] Process 74422
(fastgithub) of user 0 dumped core.
Stack trace of thread 74422:
#0 0x00007fa1c96a774c n/a (libc.so.6 + 0x9774c)
#1 0x00007fa1c964ddc0 raise (libc.so.6 + 0x3ddc0)
#2 0x00007fa1c963557a abort (libc.so.6 + 0x2557a)
#3 0x000055dfff0f4fb2 n/a (/home/carry/programming/g
ithub/fastgithub + 0x9d5fb2)
#4 0x000055dfff0f4ed2 n/a (/home/carry/programming/g
ithub/fastgithub + 0x9d5ed2)
#5 0x000055dffec89995 n/a (/home/carry/programming/g
ithub/fastgithub + 0x56a995)
#6 0x000055dffec89a76 n/a (/home/carry/programming/g
ithub/fastgithub + 0x56aa76)
#7 0x000055dffebd4239 n/a (/home/carry/programming/g
ithub/fastgithub + 0x4b5239)
#8 0x000055df8030ec0a n/a (n/a + 0x0)
#9 0x000055df8030e329 n/a (n/a + 0x0)
#10 0x000055df8030e188 n/a (n/a + 0x0)
#11 0x000055df802ed318 n/a (n/a + 0x0)
#12 0x000055df80318aab n/a (n/a + 0x0)
#13 0x000055df802eb155 n/a (n/a + 0x0)
#14 0x000055df802eaf3a n/a (n/a + 0x0)
#15 0x000055df802ea601 n/a (n/a + 0x0)
#16 0x000055df7f923149 n/a (n/a + 0x0)
#17 0x000055dffed41f17 n/a (/home/carry/programming/g
ithub/fastgithub + 0x622f17)
#18 0x000055dffeb6d4f4 n/a (/home/carry/programming/g
ithub/fastgithub + 0x44e4f4)
#19 0x000055dffea7153a n/a (/home/carry/programming/g
ithub/fastgithub + 0x35253a)
#20 0x000055dffea718ab n/a (/home/carry/programming/g
ithub/fastgithub + 0x3528ab)
#21 0x000055dffea429cc n/a (/home/carry/programming/g
ithub/fastgithub + 0x3239cc)
#22 0x000055dffea41f83 n/a (/home/carry/programming/g
ithub/fastgithub + 0x322f83)
#23 0x000055dffea18031 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2f9031)
#24 0x000055dffea184c1 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2f94c1)
#25 0x000055dffea18ecc n/a (/home/carry/programming/g
ithub/fastgithub + 0x2f9ecc)
#26 0x000055dffe9f05e4 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2d15e4)
#27 0x000055dffe9eed09 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2cfd09)
#28 0x000055dffe9e9e6e n/a (/home/carry/programming/g
ithub/fastgithub + 0x2cae6e)
#29 0x000055dffea41118 n/a (/home/carry/programming/g
ithub/fastgithub + 0x322118)
#30 0x000055dffea416a0 n/a (/home/carry/programming/g
ithub/fastgithub + 0x3226a0)
#31 0x00007fa1c96376b5 n/a (libc.so.6 + 0x276b5)
#32 0x00007fa1c9637769 __libc_start_main (libc.so.6 +
0x27769)
#33 0x000055dffe9e5029 n/a (/home/carry/programming/g
ithub/fastgithub + 0x2c6029)
ELF object binary architecture: AMD x86-64
░░ Subject: 进程 74422 (fastgithub) 核心已转储
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░
░░ 进程 74422 (fastgithub) 已崩溃并进行核心转储。
░░
░░ 这通常意味着崩溃程序中存在编程错误,并应当将此错误向其开发者报告。
7月 31 15:23:03 CarryLaptop systemd[1]: fastgithub.service: Main process exited
, code=dumped, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit fastgithub.service has exited.
░░
░░ The process' exit code is 'dumped' and its exit status is 6.
7月 31 15:23:03 CarryLaptop systemd[1]: fastgithub.service: Failed with result
'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit fastgithub.service has entered the 'failed' state with result 'core-dump'.
7月 31 15:23:03 CarryLaptop systemd[1]: Failed to start fastgithub.
░░ Subject: fastgithub.service 单元已失败
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ fastgithub.service 单元已失败。
░░
░░ 结果为“failed”。
7月 31 15:23:03 CarryLaptop systemd[1]: fastgithub.service: Consumed 1.332s CPU time, 37.8M memory peak.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit fastgithub.service completed and consumed the indicated resources.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels