- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
问题的原始形式(本身不完全是一个问题):无法找到进程 ID 的 Mach 任务端口:(os/kern)失败(0x5)。 (请检查 gdb 是否经过协同设计 - 请参阅 taskgate(8))
我希望有人能够提及他们所拥有的有关获得在没有 sudo 的情况下运行 gdb 的能力的任何信息,但只要运行就可以了。
我已按照 https://github.com/cs01/gdbgui/issues/55 中的说明进行操作以及我现在大约一周能找到的大多数相关的 stackoverflow 和 OSXdaily feed。我知道有很多关于此错误的文档,但到目前为止还没有发布这些输出并运行 Catalina。我在 Mac OSX Catalina 10.15.1 上运行 gdb 8.3,配置为“x86_64-apple-darwin19.0.0”
我在系统中创建了证书,然后在登录中创建了证书,结果没有变化。
我在 gdb 和我的主目录中的 .gdbinit 文件中都设置了startup-with-shell off
。
我最终能够使用 sudo gdb ./a.out
运行 gdb,但当我在 gdb 内使用 r
运行代码时,却收到奇怪的消息:
(No debugging symbols found in ./a.out)
(gdb) r
Starting program: /Users/zanekarl/Documents/Work-Documents//Programming/-code-snippets/a.out
[New Thread 0xc03 of process 906]
[New Thread 0xf03 of process 906]
During startup program terminated with signal SIGTRAP, Trace/breakpoint trap.```
(No debugging symbols found in ./a.out)
(gdb) b main
Breakpoint 1 at 0x100000f64
(gdb) r
Starting program: /Users/zanekarl/Documents/Work-Documents//Programming/-code-snippets/a.out
[New Thread 0xd03 of process 768]
[New Thread 0x1003 of process 768]
During startup program terminated with signal ?, Unknown signal.```
Reading symbols from /Users/zanekarl/Documents/Work-Documents//Programming/-code-snippets/a.out.dSYM/Contents/Resources/DWARF/a.out...
(gdb) b main
Breakpoint 1 at 0x100001753: file SSSv1-1.c, line 99.
(gdb) r
Starting program: /Users/zanekarl/Documents/Work-Documents//Programming/-code-snippets/a.out
[New Thread 0xb03 of process 717]```
Reading symbols from /Users/zanekarl/Documents/Work-Documents//Programming/-code-snippets/a.out.dSYM/Contents/Resources/DWARF/a.out...
(gdb) b main
Breakpoint 1 at 0x100001753: file SSSv1-1.c, line 99.
(gdb) r
Starting program: /Users/zanekarl/Documents/Work-Documents//Programming/-code-snippets/a.out
Unable to find Mach task port for process-id 680: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))```
最佳答案
在我的 MacBook Pro(15 英寸,2016 年)上运行 Catalina 10.15.2 (19C57),并启用了 sip。
我通过以下方式安装了 gdb 8.3.1:
酿造安装gdb
然后在我的主文件夹中创建了一个 gdb.xml 文件,其内容为:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.debugger</key>
<true/>
</dict>
</plist>
我在系统钥匙串(keychain)上创建了 gdb-cert
为了签署 gdb,我启用了 root 帐户,并且作为 root,我使用了以下命令:
codesign --entitlements gdb.xml -fs gdb-cert/usr/local/Cellar/gdb/8.3.1/bin/gdb
现在我可以使用 netbeans 来调试我的 Fortran 代码。
关于c - 在 Mac OS Catalina 中,所有当前文档均因无法找到进程 ID 的 Mach 任务端口而失败,有什么建议吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59044262/
我正在尝试手写 Mach-O 可执行文件。加载命令共有三个: LC_SEGMENT_64正在加载__PAGEZERO LC_SEGMENT_64 加载 __TEXT,带有单个 __text 部分 LC
从 objc 源代码我们可以看到 SEL 被定义为 typedef struct objc_selector *SEL; 我用 idaq 反汇编了我的 dylib ,我确实调用了 _MSHookMes
我正在尝试在 Mach 上的两个进程之间发送消息(准确地说,这是带有 Mach 微内核的 Debian GNU/Hurd),这是我的代码: #define _GNU_SOURCE #include
我对使用信号量感兴趣,它是使用 mach/semaphore.h 中的 semaphore_create(task, sem, policy, value) 创建的,在共享内存中用于在 Mac OS
我想在共享内存中使用匿名信号量来同步多个进程。 虽然多个 POSIX 操作系统提供匿名信号量(通过 sem_init 和相关函数),但 macOS 不支持它们。 我发现 Mach 信号量在 macOS
我正在尝试将 mach 端口传递给使用 fork 创建的子进程在 Mac OSX 上。我看到了这个问题 Sharing Mach ports with child processes但它没有解决方案,
构建应用程序时生成的 dsym 文件的结构是什么。我知道它包含 DWARF 调试信息,但什么是 dsym 文件。我想阅读其中的 DWARF 信息。 它只是一个只包含调试部分的 Mach-O 二进制文件
当 SOVERSION 的文档出现时,我正在考虑对一个小型个人项目的共享库进行版本控制。 target 属性提到在 OS X 和 iOS 等 Mach-O 系统上,对应的是“兼容版本”,而 VERSI
我正在尝试实现在项目中发现的openssl代码,但这些链接器错误并没有消失。我检查了框架是否正确链接,甚至使用../lib和../include手动包含了库和 header 搜索路径。尽管如此,当我摆
这个问题已经有答案了: Mach-O 64-bit format does not support 32-bit absolute addresses. NASM Accessing Array (1
我正在寻找有关如何设计 Mac OS X 网络内核扩展的特定部分以尽可能快速和高效的建议或指示 - C 语言。 描述:我有两套 TAILQ 列表。一个用于 A 型结构,另一个用于 B 型结构。大多数情
我有一个用 C++ 编写的服务器,它在 osx 上运行时会泄漏 Mach 端口。具体来说,运行时 top我注意到它有大约 50000(在 #PORTS 下)。奇怪的是,我让它运行了一夜,第二天机器基本
我修改了CoreData数据集,并向无错误的iPhone应用程序添加了两个新类。现在,当我尝试编译时,出现此错误: Apple Mach-OP Linker Error Linker command
我正在对 Mac OS X 上可用的不同 IPC 机制(管道、套接字、System V IPC 等)进行比较,我想看看 Mach 端口与更高级别的替代方案相比如何。但是,我遇到了一个非常基本的问题:跨
升级到Xcode 8.3.2后,尝试在设备上运行时,我收到了Apple Mach-O链接程序警告(它正在模拟器上运行)。但是我没有得到任何细节。双击该错误不会带来有关链接器警告的更多信息。有人可以帮忙
我有 2 张 table 。 表1 共有约 2700 行 列:ID、NO、NAME 表2: 共有约 300 行 列:ID、NAME 地点: Table1.NO = Table2.ID 我想列出 Tab
我在我的 iOS 应用程序中使用了一些第三方库(库有 flurry、chartboost 和burSTLy)。所有这些第三方库都有静态库,我通过将它们添加到“将二进制与库链接”中来将它们包含在我的项目
Undefined symbols for architecture x86_64: "_BFTaskMultipleExceptionsException", referenced from:
我正在尝试设置一条 mach 消息,以使用 mach IPC 发送越界的字符串。但是,在尝试发送越界消息时,我收到了 (ipc/send) invalid msg-header 错误。 这是消息结构。
为什么 SELECT * , MATCH(tags) AGAINST('php' IN BOOLEAN MODE) .. etc 不返回任何东西(而 php 标签存在于许多行中) 和 SELECT *
我是一名优秀的程序员,十分优秀!