Sponsored Content
Full Discussion: C prog Segmentation error.
Top Forums Programming C prog Segmentation error. Post 302476902 by Learnerabc on Thursday 2nd of December 2010 08:21:25 PM
Old 12-02-2010
C prog Segmentation error.

Hello Friends,
I made this program, it is running fine. when i try to add this line of code in to do repeat. It is giving segmentation error. can you please tell me how should i fix tht error.

program runs fine. when i add

char r;
if statement
while (ch r ='y')
some cofe
printf(" repeat");
scanf("%c" &r);

Any help will be appreciated
 

9 More Discussions You Might Find Interesting

1. Solaris

c prog gives segmentation fault

hello , I have a C program which runs perfectly on linux but gives a segmentation core dump when i try to run it on solaris. The compilation of the c code happens without any errors on solaris. Any pointers thanks Nayeem (2 Replies)
Discussion started by: nayeemmz
2 Replies

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

3. UNIX for Dummies Questions & Answers

What's the difference between Segmentation fault and Bus error and Illegal...?

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

4. UNIX for Advanced & Expert Users

Segmentation (CoreDump) error !!

Hi all, I am trying to create few directories using script and its giving me segmentation error. #!/bin/ksh createDirectories() createDirectories() { cat dirs | \ while read line do mkdir... (16 Replies)
Discussion started by: varungupta
16 Replies

5. UNIX for Advanced & Expert Users

capture sqsh segmentation fault error

hi all is there any way to capture the segmentation fault error when i run sqsh on a unix shell script. Ex: #!/bin/ksh sqsh -S "server" -U "user" -P "pwd" << EOF use mydb go exec proc1 go exit EOF retval=$? echo "sqsh return value $retval" if then exit (1 Reply)
Discussion started by: sudheer1984
1 Replies

6. Shell Programming and Scripting

Segmentation Fault(Core Dump) Error

Hi all, I have a folder with some 28 files. I have a script file that will iteratively take one file at a time from the folder and provide an output for the input file. Till the 7th file, there was no problem but from the 8th file onwards, i got this Segmentation Fault(Core Dump) error. A file... (2 Replies)
Discussion started by: mick_000
2 Replies

7. Programming

C++ Segmentation error with bi-dimensional array

Hello, I'm experiencing a weird seg fault at run time when initializing a bi-dimensional array and initializing a class. Please see below code and comments describing the error and the instances when it occurs and when it does not occur. Compiled with g++ segf.cpp -o segf output On... (5 Replies)
Discussion started by: nmset
5 Replies

8. Programming

Using gdb, ignore beginning segmentation fault until reproduce environment segmentation fault

I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this : i wrote script for watchdog my app (polo) and check every second if it's not running then start it , the problem is , if my app , remain in state of segmentation fault for a while (ie 15 ... (6 Replies)
Discussion started by: pooyair
6 Replies

9. Programming

Segmentation Fault ERROR in C

Hello guys, i have this code: int main(int argc, char *argv) { int i, j, N, result = 0, **vec; if (argc < 2) { fprintf(stderr, "Usage: %s N\n", argv); } /* ... how many numbers to read */ N = atoi(argv); /* check if N is a power of two; exit if not */ if (!... (3 Replies)
Discussion started by: DinisR
3 Replies
DCH-REPEAT(1)						      General Commands Manual						     DCH-REPEAT(1)

NAME
dch-repeat - repeats a changelog entry into an older release SYNOPSIS
dch-repeat --build-tree <PATH> dch-repeat --source-release <RELEASE> dch-repeat --target-release <RELEASE> dch-repeat --devel-release <RELEASE> dch-repeat --pocket <POCKET> dch-repeat -h DESCRIPTION
dch-repeat is used to repeat a changelog into an older release. It expects that --build-tree is laid out with each Ubuntu release as a separate directory ("feisty", "edgy", etc). For example, if gimp had a security update prepared for Feisty in $TREE/feisty/gimp-2.2.13, running dch-repeat in $TREE/edgy/gimp-2.2.13 would pull in the latest changelog from the Feisty build. OPTIONS
Listed below are the command line options for dch-repeat: -h or --help Display a help message and exit. --build-tree PATH Base of build trees. Default is /scratch/ubuntu/build. -s or --source-release RELEASE Which release to take changelog from. --target-release RELEASE Which release to build into. --devel-release RELEASE Which release is the development release. --pocket POCKET Which pocket to use. AUTHOR
dch-repeat was written by Kees Cook <kees@ubuntu.com>. This manual page was written by Jonathan Patrick Davies <jpds@ubuntu.com>. Both are released under the GNU General Public License, version 2. SEE ALSO
dch(1). ubuntu-dev-tools 10 August 2008 DCH-REPEAT(1)
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy