Debugging on iOS 4.0.1 Device crashing - iphone

Trying to fix a bug on iOS 4 but when I debug it crashes with these errors:
SDK is installed in seperate directory as I need to deug 3.1.3 as well
Developer_Xcode3_2_3_iOS_SDK_4_0_1
Device is running 4.0.1
Any ideas? Cheers
[Session started at 2010-07-27 14:26:45 +0100.]
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
GNU gdb 6.3.50-20050815 (Apple version gdb-1470) (Thu May 27 05:54:06 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".Developer_Xcode3_2_3_iOS_SDK_4_0_1/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/usr" /System "/Developer_Xcode3_2_3_iOS_SDK_4_0_1
Developer_Xcode3_2_3_iOS_SDK_4_0_1/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/System" /private/var/mobile/Applications/50A5673A-2D68-4EA2-B033-2CA40C8DFC79 /Users/clearbrian/Documents/Development/IPhoneDevelopment/029.LondonBusMaps/021.Bus.v2a.RedesignWithRoutes_iOs4Recompile/Bus/build/Debug-iphoneos /var/mobile/Applications/50A5673A-2D68-4EA2-B033-2CA40C8DFC79 /Users/clearbrian/Documents/Development/IPhoneDevelopment/029.LondonBusMaps/021.Bus.v2a.RedesignWithRoutes_iOs4Recompile/Bus/build/Debug-iphoneos /Developer "/Developer_Xcode3_2_3_iOS_SDK_4_0_1
Loading program into debugger…
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Developer_Xcode3_2_3_iOS_SDK_4_0_1/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/Developer"
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Developer_Xcode3_2_3_iOS_SDK_4_0_1/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
Developer_Xcode3_2_3_iOS_SDK_4_0_1/Library/PrivateFrameworks/DevToolsInterface.framework/Resources/Xcode SSHPassKey
tty /dev/ttys001
warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory).
warning: Unable to read symbols from "libxml2.2.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "Foundation" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/CFNetwork.framework/CFNetwork" (file not found).
warning: Unable to read symbols from "CFNetwork" (not yet mapped into memory).
warning: Unable to read symbols from "CoreLocation" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/MapKit.framework/MapKit" (file not found).
warning: Unable to read symbols from "MapKit" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/MessageUI.framework/MessageUI" (file not found).
warning: Unable to read symbols from "MessageUI" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices" (file not found).
warning: Unable to read symbols from "MobileCoreServices" (not yet mapped into memory).
warning: Unable to read symbols from "QuartzCore" (not yet mapped into memory).
warning: Unable to read symbols from "SystemConfiguration" (not yet mapped into memory).
warning: Unable to read symbols from "libsqlite3.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libz.1.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libgcc_s.1.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libSystem.B.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libobjc.A.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "CoreFoundation" (not yet mapped into memory).
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-407-23
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
(gdb) run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
gdb stack crawl at point of internal error:
0 gdb-arm-apple-darwin 0x0013117d internal_vproblem + 316
1 gdb-arm-apple-darwin 0x001313c1 internal_verror + 43
2 gdb-arm-apple-darwin 0x001313f6 align_down + 0
3 gdb-arm-apple-darwin 0x001825b1 macosx_solib_add + 959
4 gdb-arm-apple-darwin 0x00196394 remote_macosx_complete_create_or_attach + 225
5 gdb-arm-apple-darwin 0x00196a0c remote_macosx_create_inferior + 1083
6 gdb-arm-apple-darwin 0x0006f9ad run_command_1 + 660
7 gdb-arm-apple-darwin 0x0012f132 execute_command + 713
8 gdb-arm-apple-darwin 0x0001bf67 mi_execute_async_cli_command + 226
9 gdb-arm-apple-darwin 0x0001b584 captured_mi_execute_command + 371
10 gdb-arm-apple-darwin 0x0008546f catch_exception + 65
11 gdb-arm-apple-darwin 0x000188e2 mi_execute_command + 163
12 gdb-arm-apple-darwin 0x00018a87 mi_execute_command_wrapper + 50
13 gdb-arm-apple-darwin 0x0008ae51 handle_file_event + 349
14 gdb-arm-apple-darwin 0x0008a818 process_event + 131
/SourceCache/gdb/gdb-1470/src/gdb/macosx/macosx-nat-dyld.c:1547: internal-error: unrecognized shared library breakpoint
A problem internal to GDB has been detected,
further debugging may prove unreliable.
The Debugger has exited with status 1.The Debugger has exited with status 1.
Someone asked had I created symlinks
A few months ago when 3.0.1 came out I had problems getting it to work with XCode and found this help:
Topic : iPhone OS 3.0.1 does not work with xCode
http://discussions.apple.com/thread.jspa?threadID=2103502&tstart=0
So I ran this and it seemed to work.
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1
The symbolic link no longer works so just wondering should I delete it.
Some notes on my installation layout
I have these installation directories:
Developer: 3.1.3 - works - app in AppStore
Developer3_2_Final:
Developer_4_0_Final_Xcode3_2_3:
Developer_Xcode3_2_3_iOS_SDK_4_0_1: This is the version that crashes
The only symbolic link I created was under /Developer
yet crash caused when I use Xcode in /Developer_Xcode3_2_3_iOS_SDK_4_0_1
My app was built in 3.1.3 using /Developer so am loath to remove it.
not a unix guru though am willing to dive in so any pointers gratefully received.
The /Developer_Xcode3_2_3_iOS_SDK_4_0_1 was installed yesterday and I ran the 3.1.3 against it and then debugger when running on device crashed.
So I have done nothing with any of these SDKs except create that symlink months ago and install SDKs above 3.1.3 in seperate directories till I was sure I could build against them.

Related

what is the solution of error message when launching PARAVIEW?

I've installed Paraview in my laptop.
When I try to launch it, it shows me an error message telling me that GLEW could not be initialized, and the versionsfunction are not supported on OPENGL ES
How to fix it?
ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 819
vtkGenericOpenGLRenderWindow (000000000937A9A0): GLEW could not be initialized.
ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 409
vtkShaderProgram (00000000099A1F90):
Generic Warning: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderTimer.cxx, line 104
vtkOpenGLRenderTimer::Stop called before vtkOpenGLRenderTimer::Start. Ignoring.
versionFunctions: Not supported on OpenGL ES

Backport installation script for Broadcom 14e4:43ae wifi controller fails

I recently bought a Lenovo 500-15ACZ notebook and installed Ubuntu 16.04 on it. After the installation I found I couldn't connect to Wifi. When I googled the issue, this seemed to be a common problem for Broadcom wifi cards. I found this question on askubuntu and followed the steps of the answer by Luis Alvarado.
The command lspci -nn -d 14e4: showed me that the pci.id of my device is 14e4:43ae rev 02, which is not yet supported in Linux.
However, there is a script (link to project) on git that tries to solve this via backport:
#!/bin/bash
cd /tmp
git clone https://github.com/kvalo/ath10k-firmware.git
cd ath10k-firmware/QCA9377/hw1.0
sudo mkdir -p /lib/firmware/ath10k/QCA9377/hw1.0
sudo cp board.bin /lib/firmware/ath10k/QCA9377/hw1.0
sudo cp firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin
sudo modprobe -r ath10k_pci
cd /tmp
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/20/backports-20151120.tar.gz
tar -xf backports-20151120.tar.gz
cd backports-20151120
make defconfig-ath10k
make
sudo make install
But when I tried to run this, make threw the following error:
Building backport-include/backport/autoconf.h ... done.
CC [M] /tmp/backports-20151120/compat/main.o
In file included from /tmp/backports-20151120/backport-include/backport/backport.h:7:0,
from :0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/tmp/backports-20151120/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
#define IS_BUILTIN(option) config_enabled(option)
^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/tmp/backports-20151120/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/tmp/backports-20151120/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/tmp/backports-20151120/compat/main.o' failed
make[6]: *** [/tmp/backports-20151120/compat/main.o] Error 1
scripts/Makefile.build:567: recipe for target '/tmp/backports-20151120/compat' failed
make[5]: *** [/tmp/backports-20151120/compat] Error 2
Makefile:1524: recipe for target '_module_/tmp/backports-20151120' failed
make[4]: *** [_module_/tmp/backports-20151120] Error 2
Makefile.build:6: recipe for target 'modules' failed
make[3]: *** [modules] Error 2
Makefile.real:88: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
Makefile:40: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:30: recipe for target 'default' failed
make: *** [default] Error 2
CC [M] /tmp/backports-20151120/compat/main.o
In file included from /tmp/backports-20151120/backport-include/backport/backport.h:7:0,
from :0:
./include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/tmp/backports-20151120/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
#define IS_BUILTIN(option) config_enabled(option)
^
./include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
./include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/tmp/backports-20151120/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^
./include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/tmp/backports-20151120/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/tmp/backports-20151120/compat/main.o' failed
make[5]: *** [/tmp/backports-20151120/compat/main.o] Error 1
scripts/Makefile.build:567: recipe for target '/tmp/backports-20151120/compat' failed
make[4]: *** [/tmp/backports-20151120/compat] Error 2
Makefile:1524: recipe for target '_module_/tmp/backports-20151120' failed
make[3]: *** [_module_/tmp/backports-20151120] Error 2
Makefile.build:6: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
Makefile.real:88: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:40: recipe for target 'install' failed
make: *** [install] Error 2
**Does anyone know how to fix this?**
Please let me know if you need any other info.
Thanks in advance!
Update:
I installed the broadcom-sta-dkms package as you suggested. Unfortunately, you were right; this didn't work.
When I tried the wl driver, dmesg | grep -i wl returned [
12.459884] wl: loading out-of-tree module taints kernel.
[ 12.459890] wl: module license 'MIXED/Proprietary' taints kernel.
[ 12.468203] wl: module verification failed: signature and/or required key missing - tainting kernel
[ 12.487603] wl driver 6.30.223.271 (r587334) failed with code 1001
[ 12.487606] ERROR #wl_cfg80211_detach :
[ 12.487607] NULL ndev->ieee80211ptr, unable to deref wl
However, I'm afraid I am not sure what this means. For the other drivers, dmesg returned nothing.
Well, I'd suggest to be consistent. You have a Wi-Fi device and you know its PCI vendor ID (which stands before the colon) and device ID - 14e4:43ae. In your question you don't provide a complete excerpt from your lspci, so it's not clear whether your device is indeed identified as Broadcom. However, if we assume it's true, we can search for it.
Here is what WikiDevi page says:
802.11a/b/g/n/ac WLAN + Bluetooth 4.0 NGFF 2230 Mini Card
WI1 chip1: Broadcom BCM43162
Probable Linux driver unknown
PCI ID not yet observed in any mainline kernel / this list
So, as you might see, this page sheds light on such important things like chip naming and current observation of kernel code awareness of such PCI ID. The latter means that, according to their research, no one driver in the main kernel tree has such an ID in the corresponding PCI ID table by means of which the kernel makes a decision to probe a specific driver for a given device. Nothing known about the PCI ID.
But now we know for sure that this one is indeed a Broadcom device.
Looking at your excerpt from the script (which you are trying to make use of) baffles me a lot since it's for Qualcomm Atheros, not for Broadcom. It tries to grab QCA firmware from (possibly) untrusted repository and compile ath10k backported driver. So, at this point we know that the question merely about the compilation errors is unhelpful from the very beginning. But, of course, one may suppose that either Linux kernel headers package is not installed or the version of backported ath10k is not compatible with your current kernel. That's it.
So, it's clear that we shall look for Broadcom drivers (and, possibly, for Broadcom firmware) instead. From this perspective I can tell you that three types of drivers are available for Broadcom devices: b43 (mostly legacy), vendor-licensed broadcom-sta (wl) and in-tree brcm80211. The latter one is a common name for brcmsmac and brcmfmac.
Here are the authoritative pages with up-to-date info:
b43 - http://linuxwireless.org/en/users/Drivers/b43/
brcm80211 - https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
Also, a more or less descriptive page for the vendor-licensed wl:
https://wiki.debian.org/wl
I can't find your PCI ID on either of the pages. This indeed confirms that corresponding support has not been added yet. However, we can confirm this further by just trying the drivers on hands. It's obvious that in-kernel b43 and brcm80211 don't work for you, but it might be useful to take a look at dmesg - perhaps, brcm80211 is loaded but can't find FW.
If nothing useful is found, then it would be nice to try wl. This driver is distributed by means of broadcom-sta package (Debian, Ubuntu), and I can mention the corresponding description on Ubuntu website.
So, to try wl you need to make sure that you have proper Linux headers and then just install broadcom-sta-dkms package.
apt-get update
apt-get install linux-headers-$(uname -r)
apt-get install broadcom-sta-dkms
Hopefully, it will compile and install it. Then you should do a reboot and take a look at what happens with your Wi-Fi. Most likely, this won't help (since I suppose that your device is really not supported yet), but if it works, you will be able to use it. Even if you see for sure that your device doesn't work with wl, again, like in the case of brcm80211, it's worth taking a look at dmesg output. However, in example, seeking for a valid FW image (if dmesg complains about it) is a separate question and should be discussed accordingly.
Also, I can expand on this topic and mention that in certain mailing lists on the net some folks have already asked about plans to add support for this device. Here is one of the links. So, if neither brcm80211 nor wl (broadcom-sta-dkms) help you, you may consider sending an email to one of brcm80211 supporters. Their names and email addresses are listed on the page. There are Broadcom employees among them. If you ask them for a good piece of advice, you will also help other people.
UPDATE
So, you say that b43 (also b43_legacy) and brcm80211 keep silence in dmesg. This could mean that your PCI ID is not supported by these drivers.
What's for wl output, I can share my output for comparison:
wl: loading out-of-tree module taints kernel.
wl: module license 'MIXED/Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
wlan0: Broadcom BCM43a0 802.11 Hybrid Wireless Controller 6.30.223.271 (r587334)
This obviously means that your output minus this one gives some sort of silence again. However, it's too murky to say for sure whether your device is unsupported or there is some FW issue.
So, it seems like no options remain here.
However, you still may consider ndiswrapper solution. In two words, it's a special tool/driver which enables you to install a proper inf and sys files from the Windows driver (i.e. you should obtain it for your card somewhere, eg. extract from the CD or download from Broadcom webside) in such a way that the driver would operate in Linux as it was in Windows environment. This type of solution has its drawbacks and limitations. First of all, only Windows XP versions of wireless drivers are supported, so if you've got, say, a ZIP package from the vendor's website, you need to extract inf and sys files from the directory named after Windows XP (not Vista/7/10), and you need to pay attention to CPU architecture choice (32 bit / 64 bit). Here is an article from Debian which could fit Ubuntu as well. But this kind of solution overall may face some extra drawbacks and suddenly bad operation (it's a topic for a separate talk) and also in general it is considered as bad solution for missing driver. So, many people in such a situation just prefer to swap their unsupported card with some other one or just wait until the missing support is added to one of the native drivers. It's up to you.

Windbg for memory analysis using mimikatz ERROR [CRYPTO] acquire keys

I'm using windbg version 6.12 and using mimilib.dll for debugging memory. All works fine until I get following output on UI
0:000> !mimikatz
DPAPI Backup keys
=================
Current prefered key:
Compatibility prefered key:
SekurLSA
========
[ERROR] [CRYPTO] Acquire keys
note: the memory dmp is of lsass
Is this anything to do with symbol or respective dll /system32? Kindly suggest.
I was using WinDbg x86 where x64 was required.

App Crashes on the device iphone 4s 5.0.1 not in simulator

Tested on the iphone 4s device (ver) 5.0.1.
Crashes: When you click on the tab to inter into the index page from main page
1)main.m
//
// main.m
// salah1
// Created by syed ali on 30/11/2011.
// Copyright (c) 2011 j h birmingham. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
#autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
2) LOCAL:
argc int 1
argv char ** 0x2fdffbb4
*argv char * 0x2fdffc68
3) ALL OUTPUT:
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
target remote-mobile /tmp/.XcodeGDBRemote-19819-51
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
sharedlibrary apply-load-rules all
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader (file not found).
warning: No copy of AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader found locally, reading from memory on remote device. This may slow down the debug session.
[Switching to process 8963 thread 0x2303]
[Switching to process 7171 thread 0x1c03]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/UIKit.axbundle/UIKit (file not found).
warning: No copy of UIKit.axbundle/UIKit found locally, reading from memory on remote device. This may slow down the debug session.
[Switching to process 9219 thread 0x2403]
[Switching to process 7171 thread 0x1c03]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/TelephonyUIFramework.axbundle/TelephonyUIFramework (file not found).
warning: No copy of TelephonyUIFramework.axbundle/TelephonyUIFramework found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/TextInput.axbundle/TextInput (file not found).
warning: No copy of TextInput.axbundle/TextInput found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/MediaPlayerFramework.axbundle/MediaPlayerFramework (file not found).
warning: No copy of MediaPlayerFramework.axbundle/MediaPlayerFramework found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/iTunesStoreFramework.axbundle/iTunesStoreFramework (file not found).
warning: No copy of iTunesStoreFramework.axbundle/iTunesStoreFramework found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/AXExtraExtras.axbundle/AXExtraExtras (file not found).
warning: No copy of AXExtraExtras.axbundle/AXExtraExtras found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/QuickSpeak.bundle/QuickSpeak (file not found).
warning: No copy of QuickSpeak.bundle/QuickSpeak found locally, reading from memory on remote device. This may slow down the debug session.
[Switching to process 9731 thread 0x2603]
warning: Unable to read symbols for /Users/yakub121/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/AccessibilityBundles/PreferencesFramework.axbundle/PreferencesFramework (file not found).
warning: No copy of PreferencesFramework.axbundle/PreferencesFramework found locally, reading from memory on remote device. This may slow down the debug session.
2011-12-08 11:14:48.095 salah1[3198:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/F9548CB5-9248-4C10-AEE7-B843DE8E1D36/salah1.app> (loaded)' with name 'Custom_Cell''
*** First throw call stack:
(0x3802e8bf 0x31b141e5 0x3802e7b9 0x3802e7db 0x3565a747 0x3565bbb9 0x2a03 0x354469cb 0x35445aa9 0x35445233 0x353e9d4b 0x37f8d22b 0x33784381 0x33783f99 0x3378811b 0x33787e57 0x3377fd85 0x38002b4b 0x38000d87 0x380010e1 0x37f844dd 0x37f843a5 0x37b02fcd 0x35414743 0x21cd 0x2164)
terminate called throwing an exception[Switching to process 7171 thread 0x1c03]
(gdb)
Your problem is that one of the nibs names is not correctly named:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'Custom_Cell'
The simulator is not case sensitive but the iPhone is. So Custom_Cell != custom_cell
The error is right in the GDB stack that you provided:
'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/F9548CB5-9248-4C10-AEE7-B843DE8E1D36/salah1.app> (loaded)' with name 'Custom_Cell''
Do you have a NIB with the name Custom_Cell? Can you show us the code that is executing when the crash occurs? Can you show us how your Custom_Cell is defined in Interface Builder?

Crashing app when device not connected to Xcode

I've encountered this weird behavior with my iPhone app. It runs fine on the device when being debugged with Xcode, but when it's run on the device when the device is not connected to my computer it crashes almost immediately. Needless to say, I find this a bit disconcerting since I'm not sure how to debug it.
Anyone have ideas on what's going on or how to debug this type of problem?
I looked in the crash report when I reconnect the device and get the following:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000070
Crashed Thread: 6
Thread 6 Crashed:
0 libobjc.A.dylib 0x300102ac 0x3000c000 + 17068
1 myapp 0x000033ba 0x1000 + 9146
2 myapp 0x0000adc8 0x1000 + 40392
3 Foundation 0x30553356 0x30501000 + 336726
4 Foundation 0x305025fe 0x30501000 + 5630
5 libSystem.B.dylib 0x31d6a6ea 0x31d46000 + 149226
and the console log has the following:
Sun Sep 27 19:59:50 unknown ReportCrash[455] <Notice>: Formulating crash report for process myapp[453]
Sun Sep 27 19:59:50 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.yourcompany.myapp[0x2fba]) Job appears to have crashed: Bus error
Sun Sep 27 19:59:50 unknown com.apple.mobile.lockdown[14] <Notice>: Could not receive size of message
Sun Sep 27 19:59:50 unknown lockdownd[14] <Error>: (0x834400) handle_connection: Could not receive internal message #2 from myapp Killing connection
Sun Sep 27 19:59:50 unknown SpringBoard[23] <Warning>: Application 'myapp' exited abnormally with signal 10: Bus error
Many thanks
You can always get to the line of your app where it crash. Open the terminal on the build folder and run this command:
atos -arch armv6 -o myapp.app/myapp 0x000033ba
and it will return the file and line where it was. It's somehow useful.
Just to generalize #seppo0010's answer and update it for 2011:
First off, in Xcode4, Device Logs (found in the Organizer window) will show you the thread, file, and line number of the crash, so atos may not even be necessary. The crashes can be sorted by Application, Type, and Date/Time. A typical crash would include something like the following:
Thread 1 name: Dispatch queue: someQueue
Thread 1 Crashed:
0 MyApp 0x00003e14 -[MyAppViewController someMethod:withParam1:andParam2:] (MyAppViewController.m:254)
But if you do decide to use atos, note the following:
Be sure that you change the -arch flag to match whatever architecture your code is running on. So, for my iPhone 4, I'd enter -arch armv7.
Xcode 4 places your build path in a different place, so be sure to check in Xcode > Prefs > Locations. The path to your actual build may look something like this: /Users/OldMcStopher/Library/Developer/Xcode/DerivedData/MyApp-someUglyString/Build/Products/Debug-iphoneos
The -o flag is looking for the actual binary and not just the myapp.app wrapper, so once in the Debug-iphoneos folder (or wherever your debug .app build lives), set the -o flag to MyApp.app/MyApp, like #seppo0010 properly stated.
The atos man page describes it as follows:
The atos command converts numeric addresses to their symbolic
equivalents. If full debug symbol information is available, for
example in a .app.dSYM sitting beside a .app, then the output of atos
will include file name and source line number information.
It can be found here:
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/atos.1.html
(Or with man atos from the terminal.)