If a program crashes at startup time, will the same application log the crashing or the Operating System will log it? - operating-system

I have a program. I start it. But, the program crashes. So, will the same program log the crash and the reason of its crashing or the Operating System log the crashing and its reason?

Related

Production version iphone application crashes with "putpkt: write failed: Broken pipe"?

My app runs successfully in a simulator, but crashes when run on device with the following error:
putpkt: write failed: Broken pipe
putpkt: write failed: Broken pipe
The program being debugged is not being run.
The program being debugged is not being run."
Are there known issues that can lead to this?
How can I debug this?
Did you try to restart your device? This usually happens if you are at a breakpoint and you push the app to the background on the device by pressing the home button.

Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger

My project was running with out any problems. But suddenly it began to show crash with an error "Couldn't register com.yourcompany.iconnector with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger" in debug mode
I tried restarting system, simulator and xcode but still the issue exist. Any one please help
Thanks
I know your specific problem was with the simulator, but sometimes I get the same error when using a real device. It usually occurs when the debugger is attached and I build and run again.
To avoid the debugger hanging - when you set a breakpoint and the debugger pauses execution, make sure you continue execution before building and running again.
To solve the debugger hanging error, just restart the device and build and run again.
See this question and answer thread, it has a lot of info on the matter.
Also, try a 'Reset Content and Settings' for the Simulator.
Whenever you have a problem like unknown error code or "Couldn't register com.yourcompany.iconnector with the bootstrap server.
Restart your system it will be resolved.

My app freezes at first launch

Every time I run my app on my iPhone through XCode it freezes, it doesn't respond, to make it work I hit stop button and then launch it from my iPhone and it works only I'm having problem with launching it from XCode using build&run, here's what happen in the debugger when the app freezes:
-------
warning: Unable to read symbols for /Library/MobileSubstrate/DynamicLibraries/libstatusbar.dylib (file not found).
unable to read unknown load command 0x25
unable to read unknown load command 0x26
Program received signal: “SIGUSR1”.
-------
Any idea how to sort this out?
Uninstall mobilesubstrate or the plugin causing that, libstatusvar.dylib... Check Cydia.

Building to Replace old version of app with new app version causes app to crash!! reason?

I have a game project which runs very fine in device in both debug and release mode. I have had two versions of it. Old version and new version with more (later i have added) features, and the bundle id, version for both are same. When I build older version, with no previously installed "myGame" app. It builds fine and runs fine and vice versa if I build new one first.
But the app crashes when I build new version one with old app already installed in ipod touch, and vice versa if I build old version with new app already installed. The console message looks like follows:
/* Old version installed first and build new version */
Running…
gdb-arm-apple-darwin(3441) malloc: *** error for object 0x4601e0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Error launching remote program: failed to get the task for process 6791.
Error launching remote program: failed to get the task for process 6791.
The program being debugged is not being run.
The program being debugged is not being run.
gdb-arm-apple-darwin(3441) malloc: *** error for object 0x42a7d0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
/* New version installed first in device then build old version */
Running…
gdb-arm-apple-darwin(4195) malloc: *** error for object 0x45e710: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Error launching remote program: failed to get the task for process 7079.
Error launching remote program: failed to get the task for process 7079.
The program being debugged is not being run.
The program being debugged is not being run.
I can also solve this issue by simply deleting the previously installed app from device. But I want to know the root cause of this crash and I am also afraid if I had my new version app in appStore, It would be very inconvenient to ask user to delete old version first to use new version.
So, please help me to get through this situation. Thanks to any any kind of information.
mysticBoy59
PS: I used the same old version of app and added the features to make new version. Doesn't new one supposed to replace old one easily? As we go on adding features and build and test !!
Since I found out the way to solve my issue, I am explaining a little about it. Normally when we search solution for "The program being debugged is not being run" we just simply delete our older (existing) app in the device and do a new build which seems to work fine.
But the crash, yes of course there is some issue within it which I ignored first. The actual problem was that there was slight product name change in the build settings -> Packaging.
As i have to mention, this game project was done by me and my friend, he had have little change on the Product Name (included white space) when he was doing this programming part (I guess accidentally).
This causes the conflict in Product Name within the new and old app version causing crash. Now it works fine. So any of you people ever encounter it, you need check these first. Because most of games are big projects and number of developers are involved in it. So, can cause these actions sometime.
Any way thanks for all who read it. And go going... :)
I would say check the data you are saving to the device first. It is possible that the old version is writing something to the phones memory that is being read by the new version and causing it to crash.

iPhone Application crashes in "AdHoc" mode

i got a little application which is working very well with my "debug" configuration on my phone and in simulator.
i created a adhoc provisioning profile, and added a "beta" configuration to it.
trying to launch the application with the ad-hoc configuration crashes my application immediatelly.
the console output is:
Running…
Error launching remote program: failed to get the task for process 2434.
Error launching remote program: failed to get the task for process 2434.
The program being debugged is not being run.
The program being debugged is not being run.
i also created a dist.plsit, unchecked the get-tast-allow and setted this file in my built settings under code signing.
does anyone have an idea?
thanks!
Sometimes when you change lots of things, especially build configs, xcodebuild doesn't seem to figure out which files are stale and links in old stuff that needs to be rebuilt. Try doing a Clean All or just delete your build directory from the project dir. That seems to solve most of these bizarre-ass unexplainable problems for me.
simple thing. i clicked "built and run" instead of "built".
an ad-hoc version cannot be debugged :D