05-21-2014
He's not getting SIGILL, he's getting SIGSEGV, at the address 0x201138F4. Given the brk() values posted right before that SIGSEGV, that looks like someone's overrunning his heap - by exactly 512 MB.
A couple of other issues, too:
1. Use of MAP_NORESERVE in mmap() calls.
Why? So if your process does get swapped out, you crash when swapped back in? If you're lucky, because else you run with corrupt data. Or your process crashes when swap space runs out....
2. open("", O_RDWR|O_CREAT) Err #2 ENOENT
Is this error properly handled? It looks like open() is being passed an empty string.
3. mmap() of the calling binary (./tcpserver).
What in the world is this thing doing, mmap()'ing itself read/write for the first 1080 bytes of the binary executable? I wouldn't doubt getting a SIGILL after *that*.
Last edited by achenle; 05-21-2014 at 11:35 PM..
10 More Discussions You Might Find Interesting
1. Programming
Hai!
i am working on Digital UNIX V3.2c Work station, my program uses Pro*C, C and X-Motif calls. i am facing problem while running application saying "Illegal Instruction Core Dumped".
debugger dbx shows error at a line which shows "noname". when commenting large portion of the code it runs... (1 Reply)
Discussion started by: samn
1 Replies
2. UNIX for Dummies Questions & Answers
Hello
I am trying to execute a back up from one queue manager from one script saveqmgr.sh
but I am getting 2489 Illegal instruction on line 16
$ sh +x ./saveqmgr.sh S1SEAGULL
QueueManager=S1SEAGULL Retention=
S1SEAGULL.MQS.14Jan2005 not found
./saveqmgr.sh: 2836 Illegal... (1 Reply)
Discussion started by: ana
1 Replies
3. Shell Programming and Scripting
Hi
I am trying to execute a simple grep command looking for records in a filename that start with 01 (grep ^01 filename) and am getting the error Illegal instruction(coredump). Has anyone any idea why this happens? Is it due to the file being corrupted?
Thanks (1 Reply)
Discussion started by: colinmas
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
this is my script to make a choice between 4 :
clear
echo " choose a profile and enter a number"
echo
echo " 1- oraSTT "
echo
echo " 2- appSTT "
echo... (3 Replies)
Discussion started by: big123456
3 Replies
5. Solaris
Hi all,
make_lofs /.cdrom/<something>/<something> 1
what does this instruction mean?
Note:both the "something" are obviously different .
I would like to know what that 1 means, the rest of the instruction is clear!!
Thanks (6 Replies)
Discussion started by: wrapster
6 Replies
6. UNIX for Dummies Questions & Answers
What's the difference between Segmentation fault and Bus error and Illegal instruction?
Sometimes I got the one, and sometimes i got another, what are their differences?
Segmentation fault (core dump)?
Bus error (core dump)?
Illegal instruction (core dump)
Thanks
Daniel (2 Replies)
Discussion started by: lakeat
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am working on a Solaris 10 server. From this month start, it gives the error "logger: illegal option -- p" with each command. If I execute a script whose output shown on terminal, it comes many times.. Could you please help?
It comes only for my login. And I dont remember any changes... (4 Replies)
Discussion started by: jaiseaugustine
4 Replies
8. Shell Programming and Scripting
Hi ,
Currently the machine (solaris 10 ) is running with Sun_ssh. I would like to move to Open_ssh.
I went through google.
Each link shows different directions/ways to install openssh. I am not sure which one to follow .
Installing OpenSSH Packages - SPARC and Intel x86/Solaris 9 and... (1 Reply)
Discussion started by: frintocf
1 Replies
9. UNIX for Advanced & Expert Users
HI All ,
I am using AIX version 6 . having issue with below perl code,
sub Article ($procudure, @params) {
my ($procudure, @params) = @_;
#Get handle TO Dataware House DATABASE
try {
my $dbHandle = &Cobol::DBAccess::getDBDwConnection();
,,,,,,,,,,,,,
,,,,,,,,,,,,... (3 Replies)
Discussion started by: Perlbaby
3 Replies
10. Shell Programming and Scripting
Pleas I want answer to this question? Pleas help me
A system administrator suspects that there is an attack on his machine; he needs to make a backup of the files to check when they have been modified. For this purpose he uses the "cp -r" instruction to copy the root directory. What is the... (1 Reply)
Discussion started by: tamer11007
1 Replies
LEARN ABOUT DEBIAN
explain_mmap_or_die
explain_mmap_or_die(3) Library Functions Manual explain_mmap_or_die(3)
NAME
explain_mmap_or_die - map file or device into memory and report errors
SYNOPSIS
#include <libexplain/mmap.h>
void *explain_mmap_or_die(void *data, size_t data_size, int prot, int flags, int fildes, off_t offset);
void *explain_mmap_on_error(void *data, size_t data_size, int prot, int flags, int fildes, off_t offset);
DESCRIPTION
The explain_mmap_or_die function is used to call the mmap(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_mmap(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_mmap_on_error function is used to call the mmap(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_mmap(3) function, but still returns to the caller.
data The data, exactly as to be passed to the mmap(2) system call.
data_size
The data_size, exactly as to be passed to the mmap(2) system call.
prot The prot, exactly as to be passed to the mmap(2) system call.
flags The flags, exactly as to be passed to the mmap(2) system call.
fildes The fildes, exactly as to be passed to the mmap(2) system call.
offset The offset, exactly as to be passed to the mmap(2) system call.
RETURN VALUE
The explain_mmap_or_die function only returns on success, see mmap(2) for more information. On failure, prints an explanation and exits, it
does not return.
The explain_mmap_on_error function always returns the value return by the wrapped mmap(2) system call.
EXAMPLE
The explain_mmap_or_die function is intended to be used in a fashion similar to the following example:
explain_mmap_or_die(data, data_size, prot, flags, fildes, offset);
SEE ALSO
mmap(2) map file or device into memory
explain_mmap(3)
explain mmap(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2010 Peter Miller
explain_mmap_or_die(3)