iseki

iseki

V2EX 第 379936 号会员,加入于 2019-01-24 22:46:21 +08:00
根据 iseki 的设置,主题列表只有在你登录之后才可查看
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
iseki 最近回复了
这次的情况,无论是 mapped without write access 还是 mapped PROT_NONE 亦或者是 unmapped addresses ,如果按照上文引用的段落来看,都应该是 SIGSEGV

@lslqtz
@lslqtz 至于 Mac 是否 POSIX 兼容,这我确实不清楚了,我记得好像 Windows 也说自己 POSIX 兼容来着,也确实针对 POSIX 做了一些工作,但我就不太了解了。
@lslqtz 关于这个,我查阅了下参考,不确定引用的段落是否正确,欢迎指正:
> Memory Protection
>
> When an object is mapped, various application accesses to the mapped region may result in signals. In this context, SIGBUS is used to indicate an error using the mapped object, and SIGSEGV is used to indicate a protection violation or misuse of an address:
> - A mapping may be restricted to disallow some types of access.
> - Write attempts to memory that was mapped without write access, or any access to memory mapped PROT_NONE, shall result in a SIGSEGV signal.
> - References to unmapped addresses shall result in a SIGSEGV signal.
> - Reference to whole pages within the mapping, but beyond the current length of the object, shall result in a SIGBUS signal.
> - The size of the object is unaffected by access beyond the end of the object (even if a SIGBUS is not generated).

---- The Open Group Base Specifications Issue 7, 2018 Edition
https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_08_03_03
@lslqtz 这 POSIX 里的,怎么就不承诺了😰,这还叫遵守 POSIX 规范?
这个取决于你的规模吧,重点是如果你实践微服务模式,那数据库从逻辑上一定要分开。部署在不在一起就看规模吧。
早期语言很多都不是从 0 开始的,可能 C 开了个头?人家有指针,按 offset 的思路走很正常
@foam 其实还有个事,index 往往是个 i 或者 ui ,从 1 开始就浪费一个
可能是因为他们想用这个数字表示 offset 吧,那开头的那个 offset 可不就是 0 呗。如果你的程序也是按 offset 这套思路走,那还是挺舒服的。
这种东西,开发者如果不诚实,怕是用的人心里也要打个问号哟🥰
如果你真的希望服务器远离用户口令明文,那不得不采用更复杂的方案,比如说采用某种公钥算法,以用户的口令加密私钥,私钥不离开用户的电脑,服务器只用过挑战响应来实现对用户的认证。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5313 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 08:19 · PVG 16:19 · LAX 01:19 · JFK 04:19
Developed with CodeLauncher
♥ Do have faith in what you're doing.