Sponsored Content
Operating Systems Solaris segmentation fault core dumped Post 302262655 by junaid.nehvi on Friday 28th of November 2008 09:40:36 AM
Old 11-28-2008
i am getting segmentation fault (core dumped)
i tried following things but couldn't understand what is wrong with my prog and where the problem is....

i have only adb debugger available on solaris....
so plz help

bash-3.00$ pstack core
core 'core' of 765: ./mod_generalised_tapinread CDPERTMGTMSC01304 3.6_selectedfields gener
ff2d682c t_splay (400, 0, 0, 0, ff36e2ec, ff36e2ec) + f4
ff2d59fc _smalloc (8, 0, 98930, ff2d5bd8, fffffffe, ff3771a8) + 4c
ff2d5ab4 malloc (2, 1, 9887c, ff31b7e0, ff36e2ec, ff3784b0) + 4c
ff2c2080 calloc (1, 1, 2, 3, 126178, 1) + 58
00015aa8 getHEXString (ff37334c, 2, d134b, 80808080, ff00, 2) + 100
00012c0c parseBinaryFile (0, ff37335c, 0, 27194, ff36e2ec, 274fc) + 7ac
0001225c main (4, ffbffc3c, ffbffc50, 27b2c, ff3900c0, 0) + aa8
0001128c _start (0, 0, 0, 0, 0, 0) + 5c

7:15:29 PM
?
bash-3.00$ pflags core
core 'core' of 765: ./mod_generalised_tapinread CDPERTMGTMSC01304 3.6_selectedfields gener
data model = _ILP32 flags = MSACCT|MSFORK
/1: flags = 0
sigmask = 0xffffbefc,0x0000ffff cursig = SIGSEGV

7:19:38 PM
?
bash-3.00$ pldd core
core 'core' of 765: ./mod_generalised_tapinread CDPERTMGTMSC01304 3.6_selectedfields gener
/lib/libc.so.1
/platform/sun4u-opl/lib/libc_psr.so.1

i am getting segmentation fault (core dumped)
i tried following things but couldn't understand what is wrong with my prog and where the problem is....

i have only adb and mdb debugger available on solaris....
so plz help

bash-3.00$ pstack core
core 'core' of 765: ./mod_generalised_tapinread CDPERTMGTMSC01304 3.6_selectedfields gener
ff2d682c t_splay (400, 0, 0, 0, ff36e2ec, ff36e2ec) + f4
ff2d59fc _smalloc (8, 0, 98930, ff2d5bd8, fffffffe, ff3771a8) + 4c
ff2d5ab4 malloc (2, 1, 9887c, ff31b7e0, ff36e2ec, ff3784b0) + 4c
ff2c2080 calloc (1, 1, 2, 3, 126178, 1) + 58
00015aa8 getHEXString (ff37334c, 2, d134b, 80808080, ff00, 2) + 100
00012c0c parseBinaryFile (0, ff37335c, 0, 27194, ff36e2ec, 274fc) + 7ac
0001225c main (4, ffbffc3c, ffbffc50, 27b2c, ff3900c0, 0) + aa8
0001128c _start (0, 0, 0, 0, 0, 0) + 5c

7:15:29 PM
?
bash-3.00$ pflags core
core 'core' of 765: ./mod_generalised_tapinread CDPERTMGTMSC01304 3.6_selectedfields gener
data model = _ILP32 flags = MSACCT|MSFORK
/1: flags = 0
sigmask = 0xffffbefc,0x0000ffff cursig = SIGSEGV

7:19:38 PM
?
bash-3.00$ pldd core
core 'core' of 765: ./mod_generalised_tapinread CDPERTMGTMSC01304 3.6_selectedfields gener
/lib/libc.so.1
/platform/sun4u-opl/lib/libc_psr.so.1
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Segmentation fault (core dumped)

Hello To All! Now anfd then I receive a message on my console: Segmentation fault (core dumped) What does it mean? Or more precisely what are the implications? :confused: (1 Reply)
Discussion started by: Ivo
1 Replies

2. Programming

Segmentation Fault (core dumped)

what r the situations to receive an error msg like the one below Segmentation Fault (core dumped) (2 Replies)
Discussion started by: bankpro
2 Replies

3. UNIX for Advanced & Expert Users

Memory Fault - Core Dumped

I use SCO UNIX 5.07 on a Compaq Proliant Machine. Each time I press the Escape or Delete key while running a program or issuing a FoxBase+ command from the dot prompt, I receive the error message: "Memory Fault - Core Dumped" and the screen locks up immediately. I would appreciate if necessary... (0 Replies)
Discussion started by: bayuz
0 Replies

4. Solaris

Segmentation Fault (core dumped)

i am getting Segmentation Fault (core dumped) on solaris, but when i run the same program with same input on linux it runs successfully. How can i trace the fault in program on solaris. (6 Replies)
Discussion started by: junaid.nehvi
6 Replies

5. Red Hat

Segmentation fault (core dumped)

Hi All, I am getting "Segmentation fault (core dumped)" error in the runtime. I am new this please can you tell me why is that i am getting this error and I am not sure of my compilation : gcc -c avc_test.c gcc -c md5.c gcc avc_test.o md5.o -shared -Llibcoreavc_sdk.so -o proj ... (1 Reply)
Discussion started by: fido.genial
1 Replies

6. Programming

getting Segmentation Fault (core dumped) error but Program runs fine.

i am executing following program int main() { char str; FILE * fp; int i=0; ... (4 Replies)
Discussion started by: bhavesh.sapra
4 Replies

7. UNIX for Advanced & Expert Users

Segmentation Fault/ core dumped in metadb

When I was trying to mirror in my v880 server after OS up gradation from 8 to 10 metadb -afc 3 /dev/dsk/c1t1d0s7 I got an error metadb: Segmentation Fault Segmentation Fault (core dumped) Then I logged a case to Oracle/sun team they suggest "Please could you try metadb -ac 3... (0 Replies)
Discussion started by: taherahmed
0 Replies

8. Programming

C: Memory Fault (core dumped)

When I run programm show this message: Memory Fault (core dumped) Does anyone can help me and tell me what is wrong? please #include <stdlib.h> #include <stdio.h> #include <process.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> int main(int argc, char *argv) { ... (3 Replies)
Discussion started by: ebasse2
3 Replies

9. UNIX and Linux Applications

Tilda Segmentation fault (core dumped)

Can anyone tell me why I keep getting a Segmentation fault when I try to run tilda? $ tilda Segmentation fault (core dumped) It seemed to run after I deleted my tilda directory like this thread said to do. Unfortunately it wouldn't let me set my keybinding with anything I tried. ... (0 Replies)
Discussion started by: cokedude
0 Replies

10. UNIX for Dummies Questions & Answers

Find a string across line break (because of "segmentation fault core dumped")

Hi, thanks to a precedent post, and thanks to the reply of derekludwig of the forum, I have convert my first awk command as : test.txt is : AAAAAGHIJKLAjKMEFJKLjklABCDJkLEFGHIJKL awk -f findstring.awk test.txt > textreturn.txtfindstring.awk is : BEGIN{ SLENGTH = 3 } { ... (3 Replies)
Discussion started by: thewizarde6
3 Replies
gcore(1)							   User Commands							  gcore(1)

NAME
gcore - get core images of running processes SYNOPSIS
gcore [-pgF] [-o filename] [-c content] process-id... DESCRIPTION
The gcore utility creates a core image of each specified process. By default, the name of the core image file for the process whose process ID is process-id will be core.process-id. OPTIONS
The following options are supported: -c content Produces core image files with the specified content. The content description uses the same tokens as in coreadm(1M). The -c option does not apply to cores produced due to the -p or -g flags. -F Force. Grabs the target process even if another process has control. -g Produces core image files in the global core file repository with the global content as configured by coreadm(1M). The com- mand will fail if the user does not have permissions to the global core file repository. -o filename Substitutes filename in place of core as the first part of the name of the core image files. filename can contain the same tokens to be expanded as the paths in coreadm(1M). -p Produces a core image file in the process-specific location with the process-specific content for each process as config- ured by coreadm(1M). The command will fail if the user does not have permissions to the per-process core file repository. OPERANDS
The following operand is supported: process-id process ID EXIT STATUS
The following exit values are returned: 0 On success. non-zero On failure, such as non-existent process ID. FILES
core.process-id core images ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWtoo | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ Command Syntax is Evolving. Output Format(s) are Unstable. SEE ALSO
kill(1), coreadm(1M), setrlimit(2), core(4), proc(4), attributes(5) NOTES
gcore is unaffected by the setrlimit(2) system call using the RLIMIT_CORE value. SunOS 5.10 11 Feb 2004 gcore(1)
All times are GMT -4. The time now is 05:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy