Don't know why it would crash on Linux (works fine on AIX) and you say it's strlen that's causing the crash. To get a stack trace do the following and post the output...
Ok I did that. It just segfaluted..no core was dumped. And when tried bt it just said "No stack".
hey guys..
probably a simple question but i cant seem to find any info on it.
i have a small array of strings, and i want to concatenate the contents of the array into one big string.
any ideas on how i can do this?
cheers. (2 Replies)
I m new to shell scripting and what i want is take as an i/p from command line the name of the file and inside my script i should redirect the o/p of my few commands to this file concatenated with .txt
for example if i give
./linux filename
i should get the o/p in filename.txt
i need to... (2 Replies)
Hi Friends,
I'm new to shell scripting and trying to concatenate two Strings to create a filepath like string but I'm getting an unexpected result.
here is my code for 'runToneUserLoad.sh':
script_dir="$(dirname $0)"
echo "Script Dir:$script_dir"
dirtest1="/installedUtility"... (6 Replies)
Hi, all,
I tried to write a simple shell script as follow:
#!/bin/bash
# What want to do in bash is following
# : pcd_viewer cloud_cluster_0.pcd cloud_cluster_1.pcd cloud_cluster_2.pcd cloud_cluster_3.pcd cloud_cluster_4.pcd
STR = "pcd_viewer"
for i in `seq 0 4`
do
STR... (1 Reply)
hi I am on AIX 5 and i have a script that runs the following command to list processes running. I then want to kill the returned processes. The PID are on field 2 separated by spaces.
$ ps -ef|grep "rams.e $PORT"
lesqa 1826998 2646248 0 11:20:35 pts/2 0:00 grep rams.e
t24cm 2789380 ... (3 Replies)
Hi All,
I have written a C program to solve this problem but I am eager to know whether the same output can be obtained using sed or awk?
This is the input:
star
ferry
computer
symbol
prime
time
This is the output:
starferry
ferrycomputer
computersymbol
symbolprime
primetime (7 Replies)
Hi
I'm trying to loop through an array that contains other arrays and these arrays consist of strings with spaces. The problem is that I can't seem to preserve the spacing in the string. The string with spaces are either divided into multiple items if I change IFS to \n or all the elements of... (4 Replies)
Alright, so I'm writing a file for the lexical analyzer (lex). It will be used to check C code (collecting the identifiers and storing those names along with the line numbers the identifier was found on). I'm not used to 'C' so I'm having some difficulty.
I am using a function (insertId()) to... (4 Replies)
Hello All Unix Users,
I am still new to Unix, however I am eager to learn it..
I have 2 files, some lines have some matching substrings, I would like to concatenate these lines into one lines, leaving other untouched. Here below is an example for that..
File 1 (fasta file):
>292183... (6 Replies)
Discussion started by: Mohamed EL Hadi
6 Replies
LEARN ABOUT OSX
xpc_debugger_api_misuse_info
xpc_abort(3) BSD Library Functions Manual xpc_abort(3)NAME
xpc_abort -- conditions which cause XPC to abort
DESCRIPTION
The XPC API will aggressively defend itself against perceived misuse. Wherever XPC can definitively detect misuse of its APIs or data corrup-
tion, it will abort. For example, if the retain count of an object underflows by calling xpc_release(3) on it too many times, XPC will abort
the process.
Many frameworks opt to keep the program limping along in such a state (and will perhaps print a warning message to the system log), but
aborting upon detection provides unmistakable warning that there is a bug present in the application which should be fixed before shipping.
When XPC aborts a process, it will place information about the condition which triggered the abort in the Application Specific Information
section of the crash report. The message will be human-readable, prefixed with "XPC API Misuse:", and the crash report will indicate the
stack trace which caused the abort.
XPC will also abort if it detects unrecoverable data corruption in its internal state. The messages for these conditions will be prefixd with
"Bug in libxpc:". If you come across such a crash, please file a bug and include the generated crash log, system log and steps to reproduce
(if there are any identifiable steps).
Currently, the manner in which XPC aborts the process will result in termination due to SIGILL (illegal instruction). The exact signal raised
may change from release to release (or platform to platform). But on OS X Lion, SIGILL may be used as a hint that the process was terminated
intentionally.
DEBUGGING
When debugging in Xcode or at the gdb command prompt, the debugger acts as the exception handler for the process being debugged. As a result,
if the process is aborted by XPC, no crash report will be generated, and thus it may not be obvious why the program was terminated.
As mentioned before, SIGILL is an indication that the process was terminated intentionally. If you observe the last frame in the crashing
stack to be _xpc_api_misuse(), you may use the xpc_debugger_api_misuse_info() API from within the debugger to obtain a human-readable string
describing why the process was aborted. For example:
Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand.
0x000000010012b25e in _xpc_api_misuse ()
(gdb) p (char *)xpc_debugger_api_misuse_info()
$1 = 0x7fff5fbff908 "XPC API Misuse: Over-release of object."
(gdb)
This message indicates that xpc_release(3) was called too many times on an object.
IMPORTANT: The xpc_debugger_api_misuse_info() API can ONLY be called from within a debugger. It is not meant to be called directly from the
program. Do not call it directly from your code, and do not rely on the address of the result for any reason.
SEE ALSO xpc(3), xpc_object(3), xpc_objects(3)Darwin 1 July, 2011 Darwin