Received signal #11, SIGSEGV [default] on AIX 6.1


 
Thread Tools Search this Thread
Operating Systems AIX Received signal #11, SIGSEGV [default] on AIX 6.1
# 1  
Old 06-01-2010
Received signal #11, SIGSEGV [default] on AIX 6.1

Hello,

One of our customer is getting segmentation fault when he runs his shell script which invokes our executable on AIX 6.1.

On AIX 5.3, there were no issues.

Here is the truss output.
Code:
811242: __loadx(0x0A040000, 0xF0D3A26C, 0x00000000, 0x00000009, 0x00000000) = 0xF026E884
811242: loadbind(0, 0xF0D86E54, 0xF027E304)		= 0
811242:     Received signal #11, SIGSEGV [default]
811242: *** process killed ***


Here is the stack trace

Code:
# gdb -c core
GNU gdb 6.0
Copyright 2003 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 "powerpc-ibm-aix5.1.0.0".
Core was generated by `bteq'.
Program terminated with signal 11, Segmentation fault.

warning: Could not open `bteq' as an executable file: A file or directory in the
 path name does not exist.
#0  0xd10affbc in _Grow__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc () from /usr/lib/libC.a(ansi_32.o)
(gdb) bt
#0  0xd10affbc in _Grow__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3s
td9allocatorXTc () from /usr/lib/libC.a(ansi_32.o)
Segmentation fault(coredump)
#


It is showing unresolved symbol.

what is this symbol "_Grow__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc ()" about?

From which version of libC.a , above symbol can be available?

we have sugessted to use LDR_CNTRL variable as
getting segfault and got signal 11 in this case.

""In case of AIX operating system, for 32-bit executables, SIGSEGV can be generated due to insufficient segment-size.
The way the memory model of AIX is designed, segments, by default, have a fixed size (256Mb).
Incase if a process requests more memory than this, a segment violation occurs and the operating system delivers a SIGSEGV signal to the process.
For resolving this, you can link with -bmaxdata=<num> or set the runtime environmen variable LDR_CNTRL=MAXDATA."""

With LDR_CNTRL set, one of the shell script of customer was sucessful.

I am maily concern with the symbol shown in stack trace.
what could be the cause for that either invalid version of libC.a OR anything else?


Thanks

regards,
Srikrishna Erra.

Moderator's Comments:
Mod Comment Please use the CODE-tags i edited into your post yourself from now on when quoting code, code-fragments or terminal output. Thank you.

Last edited by bakunin; 06-01-2010 at 12:29 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX - remote shell (sudo) - signal 11 core system 50

Hi, I am running a remote shell from site A to site B, where both are AIX. The remote shell starts other application, and when it finishes, it returns to the site A. The problem is that I am receiving an error signal 11 and system core error 50 - segmentation fault. Does anyone know if there are... (6 Replies)
Discussion started by: brjohnsmith
6 Replies

2. Programming

Why do I receive Program received signal SIGABRT, Aborted?

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)
Discussion started by: Errigour
26 Replies

3. Programming

Program received signal: “EXC_BAD_ACCESS”?

I am making a command line program in C using XCode. When running the program, it initially does what it is supposed to do (asks me for a file path). However, when I type in a valid and existing file path, it gives me the following error: Program received signal: “EXC_BAD_ACCESS”.... (6 Replies)
Discussion started by: mdonova33
6 Replies

4. AIX

nim: error signal number 2 received

Hi to all, i am trying to make mksysb backup of a NIM client machine from NIM master and while i am reading that the backup is done successfully i get an error message below and it doesnt exit the smit screen. also the status of the command appears to be running. is there anybody who knows why... (3 Replies)
Discussion started by: omonoiatis9
3 Replies

5. UNIX and Linux Applications

SIGSEGV Signal handling

Hello, Can anybody tell me how can i handle segmentation fault signal, in C code? (2 Replies)
Discussion started by: mustus
2 Replies

6. Programming

problem in SIGSEGV signal handling

i wrote handler for sigsegv such that i can allocate memory for a variable to which sigsegv generated for illlegal acces of memory. my code is #include <signal.h> #include<stdio.h> #include<stdlib.h> #include<string.h> char *j; void segv_handler(int dummy) { j=(char *)malloc(10); ... (4 Replies)
Discussion started by: pavan6754
4 Replies

7. Programming

SigSegV during stack unwind (AIX)

Hi I am getting a strange segmentation fault during the unwind process. I am trying to throw an object of an Exception class. During the DoThrow (in libC.a) the stack starts growing until a Signal is received. The object thrown is of a class that inherits from a common class, and the signal... (0 Replies)
Discussion started by: barak
0 Replies

8. HP-UX

How to override the default paper size received by a print job

Hi, Kindly help me with your valid suggestions to solve the below problem: "How to override the default paper size received by a print job. Ex. The output file is generated with a default paper size of 11x17 and we need to print on 11x14 paper. When printing this file from HP Unix, is there... (4 Replies)
Discussion started by: ukarthik
4 Replies

9. Programming

Program received signal SIGSEGV, Segmentation fault.

Dear all, I used debugger from C++ and these are the message I got: Program received signal SIGSEGV, Segmentation fault. 0x00323fc0 in free () from /lib/tls/libc.so.6 (gdb) info s #0 0x00323fc0 in free () from /lib/tls/libc.so.6 #1 0x00794fa1 in operator delete () from... (5 Replies)
Discussion started by: napapanbkk
5 Replies

10. Programming

Program received signal SIGABRT, Aborted.

I ran degugger in C++ and the followings are the message I got: Program received signal SIGABRT, Aborted. 0x002a57a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) info s #0 0x002a57a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x002e97f5 in raise () from /lib/tls/libc.so.6... (1 Reply)
Discussion started by: napapanbkk
1 Replies
Login or Register to Ask a Question