linux.do
21.1K subscribers
119K photos
195 videos
116 files
253K links
linux.do最新话题和热议话题
Download Telegram
.net 的抽象bug

github.com/dotnet/runtime

AccessViolationException thrown from `System.Number.FormatFloat`

已打开 06:51PM - 29 Oct 25 UTC
daxian-dbw
needs-area-label
### Description We received [an issue report](https://github.com/PowerShell/PowerShell/issues/26317) that a `System.AccessViolationException` is thrown from PowerShell v7.5.4, which uses the latest .NET 9 run, with the following call stacks: ``` Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Number.Dragon4(UInt64, Int32, UInt32, Boolean, Int32, Boolean, System.Span`1<Byte>, Int32 ByRef) at System.Number.Dragon4[[System.Double, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Double, Int32, Boolean, NumberBuffer ByRef) at System.Number.FormatFloat[[System.Double, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Char, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.ValueListBuilder`1<Char> ByRef, Double, System.ReadOnlySpan`1<Char>, System.Globalization.NumberFormatInfo) at System.Number.FormatFloat[[System.Double, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Double, System.String, System.Globalization.NumberFormatInfo) at System.Management.Automation.Utils.DisplayHumanReadableFileSize(Int64) at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveDirectoryInfoItem(System.IO.DirectoryInfo, Boolean, Boolean, Boolean) at ... ``` The method [DisplayHumanReadableFileSize ](https://github.com/PowerShell/PowerShell/blob/d13cdadd9629a1364d522a5ded4293a16edfdd0b/src/System.Management.Automation/engine/Utils.cs#L1519-L1532) converts the file size from bytes into higher prefixes. ```c# internal static string DisplayHumanReadableFileSize(long bytes) { return bytes switch { < 1024 and >= 0 => $"{bytes} Bytes", < 1048576 and >= 1024 => $"{(bytes / 1024.0).ToString("0.0")} KB", < 1073741824 and >= 1048576 => $"{(bytes / 1048576.0).ToString("0.0")} MB", < 1099511627776 and >= 1073741824 => $"{(bytes / 1073741824.0).ToString("0.000")} GB", < 1125899906842624 and >= 1099511627776 => $"{(bytes / 1099511627776.0).ToString("0.00000")} TB", < 1152921504606847000 and >= 1125899906842624 => $"{(bytes / 1125899906842624.0).ToString("0.0000000")} PB", >= 1152921504606847000 => $"{(bytes / 1152921504606847000.0).ToString("0.000000000")} EB", _ => $"0 Bytes", }; } ``` Part of this conversion will be to divide the `long/Int64` byte size into a `float/Double` value representing those bytes, and then stringify it by calling `ToString(...)`. It looks like some internal .NET conversion is using some "unsafe" memory manipulation and this is what is causing the memory to go wrong. **This happened on Windows -- Microsoft Windows 10.0.26200** Unfortunately, we don't know the exact size byte that causes this exception when it happened. Also, the issue was gone after it reproduced several times for the user. ### Reproduction Steps No repro steps. The issue was gone after it reproduced several times for the user. ### Expected behavior No `AccessViolationException` exception. ### Actual behavior `AccessViolationException` was thrown indicating memory corruption. ### Regression? Seems like so, as we never received such report before. ### Known Workarounds _No response_ ### Configuration _No response_ ### Other information _No response_

显示某个特殊浮点数值可以导致软件崩溃

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: steve02081504)
今年的华为云新加坡区轻量服务器,佬友们开出的延时是多少?

昨天使用华为云的劵刷了3次新加坡的,结果在本地ping了一下最低的一台在220左右,最高的一台竟然到达了440,简直不敢相信,不知道佬友们今年开的是多少?如果延时在220的话,影响很大吗?还是说要再刷几次?

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: renran)
分享东野圭吾新书,短篇集《情人节终章》

访问地址

附豆瓣短评:

灵儿

2025-08-24 15:40:14

东野圭吾写短篇小说也很有一手!像在看9集《名侦探柯南》!!!

0

张有钱

2025-10-05 09:17:20

反转短篇小合集。有几篇真的挺有意思。喜欢同名和出租婴儿。

0

姝栗子啦

2025-10-07 21:54:02

短篇合集,还不错,喜欢《情人节终章》和《出租婴儿》。

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: crazysnake)

Invalid media:
image
image
image
谷歌风控升级注册不出来,有没有大佬推荐一下哪里可以买到谷歌账号

求大佬推荐哪里可以买到谷歌账号

4 posts - 3 participants

Read full topic

via LINUX DO - 最新话题 (author: kel)
Cursor 又杀回来了

还蛮期待Cursor的这次升级!已经沉寂了一段时间!

Cursor 带着他们的 Agent 编程模型 Composer 杀回来了。据说全新 2.0 版本,带来了更好的模型、更专业的界面。人家也是模型公司了啊!卷到底吧!

5 posts - 5 participants

Read full topic

via LINUX DO - 最新话题 (author: zheng zhou)
百尺竿头终于有了

不枉每天上来水一水,留帖纪念一下,努努力冲击下全年🤟

6 posts - 6 participants

Read full topic

via LINUX DO - 最新话题 (author: 俩生花不开)

Invalid media: image
佬友们.双十一有什么服务器推荐的吗?

要求不高,跑一个后台管理系统。java的

4 posts - 2 participants

Read full topic

via LINUX DO - 最新话题 (author: 干饭大王)
还没提车就被背刺了

上周周六下定的方程豹钛7,昨天刷抖音说充电桩改款了,车钥匙好像也改款了,瞬间想退定了

2 posts - 2 participants

Read full topic

via LINUX DO - 最新话题 (author: Qqi)

Invalid media:
image
image
image
image
image
仅今天!薅羊毛!Claude Code限免一个月

转自小红书,说是用非free邮箱就可以,截止到美西10.30 8.00am,应该还有几个小时,佬友可以试试

7 posts - 6 participants

Read full topic

via LINUX DO - 最新话题 (author: rocsy)

Invalid media:
image
image
【慢讯】windsurf发布自己的新一代Agent model SWE 1.5 自称接近SOTA


Today we’re releasing SWE-1.5, our first fast agent model

It achieves near-SOTA coding performance while setting a new standard for speed, and it’s now available in Windsurf.

Link to announcement: https://x.com/cognition/status/1983662836896448756
以上为原文

翻译:

今天,我们发布了 SWE-1.5——我们的首个高速智能体模型。

它在接近 SOTA 编程性能的同时,树立了速度的新标杆,现已在 Windsurf 上线。

公告链接:https://x.com/cognition/status/1983662836896448756

刚刚去WINDSURF看了,该模型并不免费:

7 posts - 3 participants

Read full topic

via LINUX DO - 最新话题 (author: unsafetrait)

Invalid media:
image
image
看到一个有意思的数学问题,三扇门问题

假设有A,B,C三扇门,其中一扇门后面是大奖,两外两扇门是空的,现在你可以选其中一扇门(假设你选A),主持人随后帮你排除了一个错误的门(假设是C),接下来问你,你可以重选一次,你会继续选A还是选B,而这个时候,两扇门的中将概率已经不一样,请告诉我你的选择

Click to view the poll.
投好票看答案 (click for more details)
大家都说经典问题,我看到的地方还说是初中学的,怎么我没学过这种玩意,难道是我上课开小差了??

8 posts - 8 participants

Read full topic

via LINUX DO - 最新话题 (author: xdtz)
有个小问题能不能修复一下

如图,忍无可忍了,才发了这个建议。

6 posts - 4 participants

Read full topic

via LINUX DO - 最新话题 (author: winning)

Invalid media: image
真好!claude送了我200美元套餐一个月

之前觉得claude不好用,然后退订了,没想到现在送我一个月套餐,还挺不错的。

10 posts - 8 participants

Read full topic

via LINUX DO - 最新话题 (author: Mras)

Invalid media:
image
image
聊聊各位佬友如何使用 vscode 工作区和配置文件?

因为 AI 又加大了对 VsCode 的使用学习,昨天了解了。工作区,这个通过创建不同的配置文件解决了我比如不同项目有的 jdk8 有的 jdk 21 的问题。

可以直接在这个文件里打开工作区。我原来都是单文件使用。

早晨刷 B 站发现了配置文件功能。

这个好像就是把你的 VsCode 改成了可以各自一体的,支持直接定义安装哪些插件。比工作区的好处就是工作区还是所有插件都安装。当然可以通过扩展里禁用工作区。

想请教下,工作区可否通过工作区文件设置禁用哪些插件呢?在扩展里点好费劲呀。也不方便维护。

如果用配置文件的方式维护多个配置文件,请问每个配置文件的扩展时单独下载的吗?这样会不会很占用位置。

大家如果多语言开发 Java、Go、Py 等等,是工作区禁用插件还是做配置文件呢?求老玩家的好方案。

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: Excalicode)

Invalid media:
image
image
image
发一个navicat17破解

破解dll
https://pan.huang1111.cn/s/A6vRBTB
放在安装目录里
navicat17安装包
https://pan.huang1111.cn/s/1QDE8cv

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: Ankairis)
大佬们问一下投放有前途吗?求教一下大佬们

今年计算机专业毕业没找到工作,马上又要过年了,就投了一个短剧投放助理的工作过渡一下,试用期三个月正好到过年,想问下大佬们有没有大佬了解这投放玩意的,投放出来后面好转行吗?因为我感觉我以后顶不住自己有了投放账户下班后,还要每小时订着看数据。求求大佬们给个建议 🥲

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: tyq)
分享一个免费观影平台 无需花费任何money

github.com

GitHub - jeffernn/joyflix: 基于MoonTV(LunaTV)二次开发开箱即用的、跨平台的影视站(内置食用教程)

基于MoonTV(LunaTV)二次开发开箱即用的、跨平台的影视站(内置食用教程)

之前发过一次 再冒泡一次 🫧🥳🥳

⚠️相对于原版进行了如下功能的添加及其重构(仅列举部分):

1️⃣ 新增详细页(使用了服务器在线爬虫技术,第三方API调用,从后端API搜索获取等三种不同的回退机制确保数据获取的稳定性)
2️⃣ 支持浏览滚动记录(确保进入详细页查看影片不喜欢退出上级页面不会丢失浏览记录,可以回到之前的滚动位置)
3️⃣ 对交互逻辑、后端代码及其UI的全面重构(包括桌面端与移动端,更加人性化的交互逻辑更加符合用户的交互逻辑,提升用户的使用体验),播放页面集数可以按钮或悬停实现查看完整信息(避免综艺长标题影响选集功能),对站点API配置页实现API有效性测试及其自动排序功能
4️⃣ 对观看记录的记录逻辑进行重构
5️⃣ 对收藏页面进行重构
6️⃣ 对搜索页面实现热门推荐功能(具有结合数据库热更新快速获取推荐内容的功能,及其每次加载的实时性推荐),对搜索功能实现流式搜索提高响应速度提高用户的使用体验,对搜索结果的排序顺序进行重构,聚合逻辑重构(提高用户的使用体验)
7️⃣ 对加载页面进行响应的优化(增加加载的速度及其加载趣味性)
8️⃣ 对优选路线评分机制逻辑进行完全的增强重构,确保优选路线的有效性播放,加强优选的科学性,有效性,及其优选速度
9️⃣ 修复内存泄漏问题,提高稳定性
🔟 移除各项无用冗余功能(减少冗余度,提高网站响应速度,布局合理简洁易用)
1️⃣1️⃣ 对移动端和桌面端进行针对性的多端优化,符合不同设备相应的最佳科学的交互逻辑
1️⃣2️⃣ 对UI、布局进行重构,加入动态效果
1️⃣3️⃣ 登陆页面新增记住我,查看密码功能
1️⃣4️⃣ 增强广告过滤逻辑,史诗级加倍拦截广告,提升广告拦截的有效性
1️⃣5️⃣ 实现影片内容预加载功能,提高了加载效率,提高用户的使用体验,实现无感加载,减少加载的延迟感,同时减小API的滥用
1️⃣6️⃣ 还有更多,欢迎部署体验感受其不同,几乎对原有项目进行了手术级别的重构,新增多项功能,修复若干BUG,欢迎审查所有代码~

13 posts - 11 participants

Read full topic

via LINUX DO - 热门话题 (author: Jeffern)

Invalid media: image
[opencode]免费的Grok Code Fast、Code Supernova两大模型API(点个赞吧,主播好不容易)

本期网站:
opencode.ai

OpenCode | The AI coding agent built for the terminal

opencode - The AI coding agent built for the terminal.

大家随便玩,懂了吧?他有专门的cli

文档地址Intro | opencode


模型列表(API地址我也会放上):

对话效果:

他只能使用两个免费模型(速率未知):

我UU无私奉献我的key:

URL:https://opencode.ai/zen
Roo code当中记得带V1后缀哈,chrry studio则不需带
Key:sk-zFmLJFKDc4TnjxGprnjs9Nk0Jg4BGJgP6Lar3CF7HcCREKKljch34AIJarcjD4aG

点个赞吧,留下温暖的鼓励,找资源不容易啦 😁

22 posts - 18 participants

Read full topic

via LINUX DO - 热门话题 (author: user0000)

Invalid media:
image
image
image
image
image
image
image
image
每天两眼一睁就是参加各个佬友公益站的抽奖

之前在什么淘宝 拼多多 签到赚积分啥的都没兴趣
自从注册了L站几个大佬的公益站之后
天天两眼一睁就是签到!大转盘!打篮球!
感谢佬友们满足我的囤货欲

11 posts - 9 participants

Read full topic

via LINUX DO - 最新话题 (author: Fansel)