ABORT(3) BSD Library Functions Manual ABORT(3)NAME
abort -- cause abnormal program termination
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdlib.h>
void
abort(void);
DESCRIPTION
The abort() function causes abnormal program termination to occur, unless the signal SIGABRT is being caught and the signal handler does not
return.
Any open streams are flushed and closed.
IMPLEMENTATION NOTES
The abort() function is thread-safe. It is unknown if it is async-cancel-safe.
RETURN VALUES
The abort() function never returns.
SEE ALSO sigaction(2), exit(3)STANDARDS
The abort() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1''). The abort() function also conforms to ISO/IEC 9899:1999 (``ISO C99'')
with the implementation specific details as noted above.
BSD June 4, 1993 BSD
Check Out this Related Man Page
ABORT(3) Linux Programmer's Manual ABORT(3)NAME
abort - cause abnormal process termination
SYNOPSIS
#include <stdlib.h>
void abort(void);
DESCRIPTION
The abort() first unblocks the SIGABRT signal, and then raises that signal for the calling process (as though raise(3) was called). This
results in the abnormal termination of the process unless the SIGABRT signal is caught and the signal handler does not return (see
longjmp(3)).
If the SIGABRT signal is ignored, or caught by a handler that returns, the abort() function will still terminate the process. It does this
by restoring the default disposition for SIGABRT and then raising the signal for a second time.
RETURN VALUE
The abort() function never returns.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+----------+---------------+---------+
|Interface | Attribute | Value |
+----------+---------------+---------+
|abort() | Thread safety | MT-Safe |
+----------+---------------+---------+
NOTES
Up until glibc 2.26, if the abort() function caused process termination, all open streams were closed and flushed (as with fclose(3)).
However, in some cases this could result in deadlocks and data corruption. Therefore, starting with glibc 2.27, abort() terminates the
process without flushing streams. POSIX.1 permits either possible behavior, saying that abort() "may include an attempt to effect fclose()
on all open streams".
CONFORMING TO
SVr4, POSIX.1-2001, POSIX.1-2008, 4.3BSD, C89, C99.
SEE ALSO gdb(1), sigaction(2), assert(3), exit(3), longjmp(3), raise(3)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2017-11-26 ABORT(3)
HI All,
I am working on Solaris 8, i have this application runing on one of the partitions,(the installation was done here ie /export/home)
And the out put of this goes to another parition of other disk attached to the same machine. After a certain period of time is get this error stating... (2 Replies)
I'm running Red Hat Linux 2.6.7 on a x86_64 box.
I have a core file from a program that called abort(). Does anyone here know how can I get a backtrace? (Re-creating the error with svd running inside gdb has proved impossible).
% gdb svd core.25223
GNU gdb Red Hat Linux... (2 Replies)
I am trying to make a full backup of my system using the cpio command. The Tape Unit is a SCSI DDS.
The process started fine but after about 30 minutes, it just stopped and showed the following message:
1755 Signal 31 - Core dumped
Any idea of what is causing this and how to fix it?
... (4 Replies)
Hello,
When I run a script, the script sometimes exited. I need to re-run it automatically again. Currently I am using crontab to run the script each 5 minutes. However, I need to have a better solution.
Any idea what to do?
thanks (3 Replies)
Hi all,
Server newly installed M5000 ..
OS - solaris 10.
so want to install as usual recommended patches ..
root@msdb# cd /mnt/sun/install
root@msdb# ./setup-standart.sh
You are not running this script from .../sun/install - aborting!
root@msdb#
I have seen it first time :( Have... (8 Replies)
I wanted to edit the time for a cron job that cleans out the quarantine in mailscanner.
etc/cron.daily/clean.quarantine
I edited the file
#!/usr/bin/perl
#
# IMPORTANT NOTE:
#
# Change the next line to 0 instead of 1 to enable this script.
# By default it will be disabled and... (2 Replies)
Hi ,
while doing FTP from mainframe to unix if the file we are sending is already existing in the server ,it is getting replaced.when i used sunique command,its not replacing but stil creates a copy of the file with .1 to .99 extension.is there any way to abort the file transfer if the file is... (3 Replies)
the service coda is aborted in HPOV the OS is AIX 6.1 , i reinstall it but its give me the same message , i remove coda files under /var/opt/OV/datafiles and i restart the service but its aborted agine .
./ovc -status
ovcd OV Control CORE (44302556) Running
agtrep OV Discovery Agent... (8 Replies)
Im using gdb and when a user disconnects from my server I receive a message
Program received signal SIGABRT, Aborted.
0x7ffe0304 in ?? ()
I was hoping someone here might have a explination for this message in gdb (26 Replies)
Hi all..
I moved the /etc/shadow and /etc/shadow files to /tmp and then rebooted my PARC machine running 5.10. I did it to see if I could recover from single user mode.
But, I forgot to enable the abort key-sequence which I earlier disabled.
Stuck!
One of my gurus told I had to... (9 Replies)
hi all
I am getting following error while taking backup
using the command
ufsdump 0ubf 512 /dev/rmt/0cbn /database/backup2/rman_backup/level0 >> /database/backup2/backup_tape/level0_rman_06sep12 2>&1;
from the log i got the error
bash# tail -f level0_rman_06sep12
DUMP: Date of... (3 Replies)
Hi,
In my shell script I use the following code to copy files from one directory to other.
for file in `ls`; do
#----------------- Copy Files From INDIR to OUTDIR -------------#
echoen "Copying File ${INDIR}/$file to ${OUTDIR}/${file}"
cp ${INDIR}/$file ... (4 Replies)
I am trying to learn C and while trying out some code, the program is getting aborted while I am calling free().
Here is the code:
#include <stdlib.h>
#include <stdio.h>
void print_by_ptr(char **str) {
printf("<%s>\n",*str);
printf("Now I am modifying the str.\n");
*str =... (3 Replies)
Hi
I have a requirement where i need to convert the xml in various lines into a single line and then split the file so that the file contains only 1000 records each.
searching this forum, i found a command which converts the xml in various line
into a single line, but i have trouble using that... (3 Replies)
i tried to take a backup by using fbackup command. But it exactly aborted after taking backup of 2GB data. pleasse guide me how should i proceed to overcome this problem.
The command i used is:
fbackup -0 -y -f /dir1 \
-g fbackup_graph \
-c fbackup_config
... (6 Replies)