- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我终于能够编译libssh2,但是现在我仍然看到EXC_BAD_ACCESS
错误。
这是关于libssh2是如何工作的(至少是GUI)的基本背景是...
echo Hello World
这样的简单命令可以正常工作,但是作为项目的整个想法是能够远程重新启动Mac。最初,使用
shutdown -r
命令不会导致远程计算机上发生任何事情,并使应用程序崩溃。然后我想到可以使用
open /path/to/restart.app
命令简单地打开一个可重新启动mac的applescript应用程序,效果很好。机器重新启动,yippee!
Thread 1: EXC_BAD_ACCESS (code=1, address=_____)
Process: libssh2-for-iOS [38153]
Path: /Users/USER/Library/Application Support/iPhone Simulator/*/libssh2-for-iOS.app/libssh2-for-iOS
Identifier: libssh2-for-iOS
Version: ???
Code Type: X86 (Native)
Parent Process: ??? [1]
User ID: 501
Date/Time: 2012-04-18 18:32:03.883 -0400
OS Version: Mac OS X 10.8 (12A154q)
Report Version: 10
Crashed Thread: 0
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
External Modification Warnings:
Debugger attached to process.
VM Regions Near 0:
--> __PAGEZERO 0000000000000000-0000000000001000 [ 4K] ---/--- SM=NUL /Users/USER/Library/Application Support/iPhone Simulator/*/libssh2-for-iOS.app/libssh2-for-iOS
__TEXT 0000000000001000-0000000000002000 [ 4K] r-x/rwx SM=COW /Users/USER/Library/Application Support/iPhone Simulator/*/libssh2-for-iOS.app/libssh2-for-iOS
Application Specific Information:
iPhone Simulator 272, iPhone OS 5.0 (iPhone/9A334)
Thread 0 Crashed:
0 ??? 0000000000 0 + 0
1 libssh2-for-iOS 0x00003f39 _libssh2_channel_open + 281
2 libssh2-for-iOS 0x00004837 libssh2_channel_open_ex + 151
3 libssh2-for-iOS 0x00003714 -[SSHWrapper executeCommand:] + 212
4 libssh2-for-iOS 0x00002b22 -[libssh2_for_iOSAppDelegate executeCommand:] + 338
5 CoreFoundation 0x01603ec9 -[NSObject performSelector:withObject:withObject:] + 73
6 UIKit 0x0049e5c2 -[UIApplication sendAction:to:from:forEvent:] + 96
7 UIKit 0x0049e55a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
8 UIKit 0x00543b76 -[UIControl sendAction:to:forEvent:] + 66
9 UIKit 0x0054403f -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503
10 UIKit 0x00542e22 -[UIControl touchesBegan:withEvent:] + 264
11 UIKit 0x004c393f -[UIWindow _sendTouchesForEvent:] + 272
12 UIKit 0x004c3c56 -[UIWindow sendEvent:] + 273
13 UIKit 0x004aa384 -[UIApplication sendEvent:] + 464
14 UIKit 0x0049daa9 _UIApplicationHandleEvent + 8196
15 GraphicsServices 0x01cf8fa9 PurpleEventCallback + 1274
16 CoreFoundation 0x015d61c5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
17 CoreFoundation 0x0153b022 __CFRunLoopDoSource1 + 146
18 CoreFoundation 0x0153990a __CFRunLoopRun + 2218
19 CoreFoundation 0x01538db4 CFRunLoopRunSpecific + 212
20 CoreFoundation 0x01538ccb CFRunLoopRunInMode + 123
21 GraphicsServices 0x01cf7879 GSEventRunModal + 207
22 GraphicsServices 0x01cf793e GSEventRun + 114
23 UIKit 0x0049ba9b UIApplicationMain + 1175
24 libssh2-for-iOS 0x00003266 main + 134
25 libssh2-for-iOS 0x00002955 start + 53
Thread 1:
0 libsystem_kernel.dylib 0x921059be kevent + 10
1 libdispatch.dylib 0x01c9e398 _dispatch_mgr_invoke + 918
2 libdispatch.dylib 0x01c9cc9d _dispatch_mgr_thread + 53
Thread 2:: WebThread
0 libsystem_kernel.dylib 0x921027e2 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x92101cc0 mach_msg + 68
2 CoreFoundation 0x015d613a __CFRunLoopServiceMachPort + 186
3 CoreFoundation 0x01539605 __CFRunLoopRun + 1445
4 CoreFoundation 0x01538db4 CFRunLoopRunSpecific + 212
5 CoreFoundation 0x01538ccb CFRunLoopRunInMode + 123
6 WebCore 0x03583220 RunWebThread(void*) + 560
7 libsystem_c.dylib 0x9445dd03 _pthread_start + 344
8 libsystem_c.dylib 0x944486ae thread_start + 34
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x00000007 ecx: 0x07439400 edx: 0x00000000
edi: 0x00040000 esi: 0x00008000 ebp: 0xbfffbbc8 esp: 0xbfffbb2c
ss: 0x00000023 efl: 0x00010286 eip: 0x00000000 cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0x00000000
Logical CPU: 1
(Binary images removed, too many characters)
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
thread_create: 0
thread_set_state: 32
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 14309
thread_create: 0
thread_set_state: 550
VM Region Summary:
ReadOnly portion of Libraries: Total=155.0M resident=50.0M(32%) swapped_out_or_unallocated=105.0M(68%)
Writable regions: Total=36.7M written=2264K(6%) resident=9020K(24%) swapped_out=108K(0%) unallocated=27.9M(76%)
REGION TYPE VIRTUAL
=========== =======
CG image 16K
CoreAnimation 532K
MALLOC 21.8M
MALLOC guard page 32K
Memory tag=35 10.8M
SQLite page cache 288K
Stack 65.3M
VM_ALLOCATE 136K
__DATA 9660K
__LINKEDIT 55.9M
__PAGEZERO 4K
__TEXT 99.1M
__UNICODE 544K
mapped file 237.8M
shared memory 12K
=========== =======
TOTAL 501.6M
最佳答案
我已经从https://github.com/x2on/libssh2-for-iOS下载了示例代码,并编译了libssl和libssh2以及该应用程序。当我运行该应用程序时,出现了与您非常相似的错误:
Thread 1: EXC_BAD_ACCESS (code=2, address=0x12c)
session
的变量为NULL。因此,以后对
libssh2_channel_open_session
的调用将因该异常而失败,因为它期望其参数不为NULL。
session
变量的值。如果为NULL,那就是问题所在。您也可以在右下角的控制台输出窗口中看到问题的原因,在我的情况下,它是“连接失败!”。
关于objective-c - EXC_BAD_ACCESS与libssh2吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10229104/
我遇到了一些应用程序崩溃的问题,我需要一些指导才能修复它。我有一个带有主视图和模态视图的应用程序,非常类似于默认的翻转实用模板。当我第一次运行该应用程序时,一切都运行良好,包括模态视图。但是,当我返回
UPDATE: I updated the correction of my definition of Realm, I still get the error. I'm using Swi
我正在尝试用带有c的sqlite3创建一个CGI可执行文件。但我收到错误exc_badd_access,我不知道问题出在哪里。我的代码是:。main.c。sqlite.h。Sqlite.c。Confi
我正在尝试用带有c的sqlite3创建一个CGI可执行文件。但我收到错误exc_badd_access,我不知道问题出在哪里。我的代码是:。Main.c。sqlite.h。Sqlite.c。Confi
我正在尝试暂停 AVAudioPlayer如果当前正在播放。当我调试我的代码并检查时 AVAudioPlayer ,我看是分配的。当我尝试访问它的方法/属性(即 myAudioPlayer isPla
我正在使用 xcode 用 C 语言编写这个简单的程序。 #include int main() { double A[200][200][2][1][2][2]; int B[2
这是我得到的错误 Thread 1:EXC_BAD_ACCESS (code=2, address=0xb7ffffc) 在这条线上 [[NSNotificationCenter defaultCen
我的 iPhone 应用程序出现问题,出现 EXC_BAD_ACCESS,出现一些内存泄漏,但这些问题现已修复,所以我不确定发生了什么。我意识到我没有提供很多信息,但我真的不知道发生了什么。 打开初始
//adds a button to scroll list -(void) addNode:(NSString *) atitle{ UIButton *btn = [UIButton
我几乎完成了我的第一个应用程序,但我遇到了一个奇怪的 EXC_BAD_ACCESS,这种情况几乎一直在发生。 这是跟踪: #0 0x02adba93 in objc_msgSend #1 0x0702
我一直在研究核心数据,并开始编写一些方法来查询不同日期范围的数据。我的核心数据模型非常简单(名为 Smoke 的实体,具有一个字段 - 时间戳(日期类型)。 当我执行代码时,会返回正确的计数,但出现自
我有以下代码: ABAddressBookRef ab; ab = ABAddressBookCreate(); int len = (int) ABAddressBookGetPersonCount
希望有人可以帮助我调试这个问题,因为 EXC_BAD_ACCESS 是我收到的唯一错误。我也尝试过打开 NSZombieEnabled,但据我所知,没有获得更多信息。 问题。我有四个实体: A ->
我正在 tableView 上加载自定义单元格,并在 tableView 中返回 50 行。一些行数显示在表格 View 中,但是当滚动表格 View 时,我的自定义单元格不显示,并且出现错误 "EX
我正在尝试使用 NSLog 来打印控制台消息。问题是有时我在调用它时收到“EXC_BAD_ACCESS”错误 -(void)willRotateToInterfaceOrientation:(UIIn
这是我使用音频队列生成噪音的代码: http://pastebin.com/Kn8GU72J 问题是我的代码生成了 EXC_BAD_ACCESS。问题似乎出在作业中 MAAudioManage
我正在开发适用于 iOS 的 OpenGL ES 2 应用程序。今天早上(没有更改任何代码)我开始从 sgxTextureGetImageRowBytes 抛出 EXC_BAD_ACCESS。 #0
我在这里完全迷路了。 我的应用程序中有Google Analytics(分析),可查看有多少用户从UITableView进入detailview 我在viewDidLoad方法中添加了Google A
我是 Cocoa 新手,正在编写一个简单的应用程序来学习使用 Core Data,但它因 EXC_BAD_ACCESS 而崩溃。尝试了几种方法,但尚未找到解决方案。正如我所说,我对 Cocoa 的经验
以下代码使应用程序崩溃,我不知道为什么。它不规则地崩溃,这意味着有时单击一行时 ImageView 可以显示 30 次,有时当我选择一行时它会第二次崩溃。 仅供引用:事件指示器、操作表和变量 imag
我是一名优秀的程序员,十分优秀!