Sponsored Content
Top Forums Shell Programming and Scripting Segmentation Fault(Core Dump) Error Post 302442181 by mick_000 on Tuesday 3rd of August 2010 01:14:01 PM
Old 08-03-2010
Hi,

I didn't try running any debugger. I will just describe the problem in detail. I have some 20 odd xls files which has some data in it. The filesize is less than 600KB put together. I have an unix script that will iteratively pick one file at a time and then call a java pgm which will perform some operations n write a output text file.

Given below is the code snippet:

Code:
FILES="*"
for file in `ls $FILES`
do
java -Xms512m -Xmx512m -classpath "-jars" javaFile $file        --Line NO 4
done

am passing the filename to the java pgm for performing some operations. Out of the 20 odd files , till the 9th file the whole pgm runs perfectly after which for each file i am getting an error in Line No.4 saying "Segmentation Fault(Core Dump)". I am running this script in unix server.

I tried executing a script file tat takes an input file size of 30MB and tat generates an output file of same size. The execution went well and i got no segementation fault for this scenario.

But in the case of less file size am getting this error. Can someone suggest an idea?

Thanks in advance.
 

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. 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

4. HP-UX

memory fault(core dump)

i am getting memory fault (core dump) in a C program i want to know which statement execution caused it. i tried following things $ gdb generalised_tapinread_mod HP gdb 5.4.0 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x. Copyright 1986 - 2001 Free Software Foundation, Inc.... (2 Replies)
Discussion started by: junaid.nehvi
2 Replies

5. UNIX for Advanced & Expert Users

Segmentation Fault and Core dump

Hi All, I have this dbt since long ... What is the difference between Segmentation Fault and Core Dump ? As far as I know Seg fault is due to memory leakage or memory which cannot be accessed. Please let me know if I am wrong. Can some one tell me what is the diff between Segmentation... (1 Reply)
Discussion started by: shubhranshu
1 Replies

6. Solaris

segmentation fault core dumped

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... (4 Replies)
Discussion started by: junaid.nehvi
4 Replies

7. 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

8. 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

9. 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

10. 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
jpackage-utils(7)						RPM Java packaging						 jpackage-utils(7)

NAME
jpackage-utils - Utilities, macros and other files for the JPackage Project <http://www.jpackage.org/>: SYNOPSIS
build-classpath build the Java classpath in a portable manner build-jar-repository build a jar repository in a portable manner rebuild-jar-repository rebuild a jar repository in a portable manner (after a jvm change...) build-classpath-directory build the Java classpath from a directory diff-jars show jar content differences jvmjar install jvm extensions create-jar-links create custom jar links clean-binary-files remove binary files from sources check-binary-files check for presence of unexpected binary files DESCRIPTION
The JPackage Project has two primary goals: - To provide a coherent set of Java software packages for Linux, satisfying all quality requirements of other applications. - To establish an efficient and robust policy for Java software packaging and installation. We focus on free and open source software whenever possible. For convenience, we also provide non-free packages without the restricted source code. Our RPMs are generic in that they should work on any RPM based Linux distribution (Mandriva, Red Hat, SuSE, others). Other packaging format suggestions are welcome too. FILES
/use/share/java-utils/java-functions shell script functions library for Java applications /etc/java/jpackage-release string identifying the currently installed JPackage release /etc/java/java.conf system-wide Java configuration file ~/.java/java.conf user's Java configuration /etc/rpm/macros.jpackage RPM macros for Java packagers and developers SEE ALSO
Regular Manual Pages build-classpath(1) build-classpath-directory(1) build-jar-repository(1) check-binary-files(1) clean-binary-files(1) create-jar-links(1) diff-jars(1) find-jar(1) jvmjar(1) rebuild-jar-repository(1) rebuild-security-providers(1) java.conf(5) Documentation Following files are located in your standard documentation directory HEADER.JPP A standard header with license for spec files of JPackage Project clean-binary-files.txt A further documentation for check-binary-files(1), clean-binary-files(1) and create-jar-links(1) commands httpd-javadoc.conf Example JPackage javadoc configuration snippet for Apache jpackage-1.5-policy.xhtml JPackage Java infrastructure design and packaging policy jpackage-utils-policy JPackage packaging (naming) policy AUTHOR
Written by the JPackage Project REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/) jpackage-utils 1.7.5 February 2009 jpackage-utils(7)
All times are GMT -4. The time now is 05:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy