Segmentation (CoreDump) error !!


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Segmentation (CoreDump) error !!
# 15  
Old 04-17-2008
Quote:
Originally Posted by matrixmadhan
I hope this should not be the reason, but give it a shot
Ya, you are right this time, its not the reason of Segmentation fault - coredump error.
If i am not wrong, core dump comes when there is some problem with memory allocation or memory address resolution. Is there could be any other reason for that ?
Smilie
# 16  
Old 04-18-2008
Did you try to remove the parentheses from the invocation of the function, like taran suggested?

Can you successively remove lines from the script and get it to work without bombing?

Segmentation violation is a fairly unspecific error, it means the program ended up writing to memory it shouldn't write to, but the number of possible root causes for such behavior is large. Basically it's a programming error under any circumstances; the program should catch the error and report a more meaningful diagnostic, rather than plunge ahead into code which doesn't work.
# 17  
Old 04-21-2008
Quote:
Originally Posted by era
Did you try to remove the parentheses from the invocation of the function, like taran suggested?

Can you successively remove lines from the script and get it to work without bombing?

Segmentation violation is a fairly unspecific error, it means the program ended up writing to memory it shouldn't write to, but the number of possible root causes for such behavior is large. Basically it's a programming error under any circumstances; the program should catch the error and report a more meaningful diagnostic, rather than plunge ahead into code which doesn't work.
Hey,

Ya, it worked out when removed the braces () while calling the function defined. I don't know why and how this worked out as in other scripts i call functions with braces and it works perfectly fine. I am using AIX5.3 version.
Anyways solution to this problem I got, thanks for all.
But then, if you could help in resolving Open Question, why and how function calls are different ? Sometimes it works with braces () and sometimes it doesn't work.

Thanks.Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Why segmentation(coredump) in the following code in C?

hi I have a method which returns char*. In this method am using switch case. I am getting segmentation error in case 49 and my code is case 49: if(intFlag == 0210) { iiIDCode = atoi(getsubstring(sReq,262,2)); l =... (7 Replies)
Discussion started by: AAKhan
7 Replies

2. AIX

Error: Memory fault(coredump)

Hi Experts, While running a command, i saw this error below # ls -lrt total 74008 -rw-r--r-- 1 rr57104 edcfes 37889134 May 16 12:41 LGTOnw.clnt.7.4.2.0.bff.tar.gz drwxr-xr-x 2 root system 256 May 18 12:42 lost+found # gunzip LGTOnw.clnt.7.4.2.0.bff.tar.gz Memory fault(coredump) ... (2 Replies)
Discussion started by: EngnrRG
2 Replies

3. HP-UX

Need help on Bus error(coredump)

Hi all, I am quite weak in C but I need to get some work done. Hope someone can help me out. I keep getting this error when i try to run my C application in my HP-UX 10.20 machine. Some code snippet: Month(DBTime) =====This is a function which will return variable "CutOffTime" to be use... (5 Replies)
Discussion started by: Vision©
5 Replies

4. Shell Programming and Scripting

Segmentation Fault(coredump)

I'm getting this error when trying to run a Acucobol program thru UNIX.. Segmentation Fault(coredump) Precompiler error prevents compilation of xxxxxx.co. Please help me in this case.. (1 Reply)
Discussion started by: Manish4
1 Replies

5. UNIX for Dummies Questions & Answers

bus error (coredump)

Hi all, I am getting bus error problem in SunOS. Can you please help me out in this regard. Actually, my entire code till the last line has been executed. But after tht i am getting a bus error. Please help me. Thanks in advance. Charu. (4 Replies)
Discussion started by: charu
4 Replies

6. Solaris

lpstat gives segmentation coredump error

hi everyone, we have solaris 8 in sun v480 server. it gives this error. Segmentation Fault(coredump) can anyone help me in this - urgently. Regards Karthik C (8 Replies)
Discussion started by: cksriramchandra
8 Replies

7. AIX

Segmentation fault(coredump)

Hi All Can anybody help me? When ever am trying to run topas system gives me an error Segmentation fault(coredump) does anybody ahve solution for this? (4 Replies)
Discussion started by: vjm
4 Replies

8. HP-UX

SSL key give coredump error!!

Hi there, After setup my apache server, I have using mkcert.sh file to generate a SSL key. But when I tried to start my apache server it is prompted me to enter the pass phrase password, in fact I had entered the same correct password which I provided during the key generation and it give me the... (0 Replies)
Discussion started by: e_jeffhang
0 Replies

9. UNIX for Advanced & Expert Users

Bus Error(coredump)

Hi, I am using HP-UX. While i try to run the Sqlplus command using the shel script in encounter the following error: <shell script name>: some number Bus Error(coredump) What may be the reason behind this. I read few previous threads in this forum where i found some similar case. There it was... (2 Replies)
Discussion started by: Jayesh
2 Replies

10. UNIX for Dummies Questions & Answers

Bus error(coredump

aix 5.3 ML1 system was functioing well, when suddenly telnet session hung and then I got the following message "Bus error(coredump)" would appreciate if anyone would assist as to what to do next. (3 Replies)
Discussion started by: Student37
3 Replies
Login or Register to Ask a Question