Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Segmentation fault need help
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Marcia Hon  
View profile   Translate to Translated (View Original)
 More options 15 Feb 2004, 23:31
Newsgroups: comp.unix.programmer, comp.os.linux.networking, comp.lang.c, comp.os.linx, comp.os.linux.development
From: "Marcia Hon" <h...@rogers.com>
Date: Sun, 15 Feb 2004 18:40:08 GMT
Local: Sun 15 Feb 2004 18:40
Subject: Segmentation fault need help
Hi,

I am trying to run a program except I get the following segmentation fault.
I don't know how to solve it. Please if you know could you please help.

Thanks, Marcia

Program received signal SIGSEGV, Segmentation fault.

0x0a6e6962 in ?? ()

(gdb) bt

#0 0x0a6e6962 in ?? ()

Cannot access memory at address 0xa6d6461

(gdb)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Måns Rullgård  
View profile   Translate to Translated (View Original)
 More options 15 Feb 2004, 23:38
Newsgroups: comp.unix.programmer, comp.os.linux.networking, comp.lang.c, comp.os.linx, comp.os.linux.development
From: m...@kth.se (Måns Rullgård)
Date: Mon, 16 Feb 2004 00:38:35 +0100
Local: Sun 15 Feb 2004 23:38
Subject: Re: Segmentation fault need help

You have a corrupted stack.  Look for buffer overflows in
automatically allocated memory.  Another typical cause is freeing
automatic memory.  It could also be caused by using an uninitialized
pointer.  A memory debugger like Electric Fence or (for PC) valgrind
is useful for finding such bugs.

--
Måns Rullgård
m...@kth.se


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Pluzhnikov  
View profile   Translate to Translated (View Original)
 More options 16 Feb 2004, 02:20
Newsgroups: comp.unix.programmer, comp.os.linux.networking, comp.lang.c, comp.os.linx, comp.os.linux.development
From: Paul Pluzhnikov <ppluzhnikov-...@charter.net>
Date: 15 Feb 2004 18:20:31 -0800
Local: Mon 16 Feb 2004 02:20
Subject: Re: Segmentation fault need help

m...@kth.se (Måns Rullgård) writes:
> "Marcia Hon" <h...@rogers.com> writes:
> > (gdb) bt
> > #0 0x0a6e6962 in ?? ()

Note that this is ASCII: "\nnib", doing "x/s $esp" may reveal the
rest of the string which overflowed its buffer.

> You have a corrupted stack.  

Most definitely.

> Look for buffer overflows in automatically allocated memory.  

Yes. I would bet 10:1 that this is a simple strcpy() into an
automatic char array that is too small.

> Another typical cause is freeing automatic memory.

That would cause a SIGSEGV *in* malloc/free, not a jump to ASCII.

> It could also be caused by using an uninitialized pointer.  

Or it could be that.

> A memory debugger like Electric Fence or (for PC) valgrind
> is useful for finding such bugs.

EFence will not help with this kind of bug at all, valgrind might
(if this is an uninitialized pointer, but not otherwize).

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CBFalconer  
View profile   Translate to Translated (View Original)
 More options 16 Feb 2004, 20:13
Newsgroups: comp.unix.programmer, comp.os.linux.networking, comp.lang.c, comp.os.linx, comp.os.linux.development
From: CBFalconer <cbfalco...@yahoo.com>
Date: Mon, 16 Feb 2004 20:13:26 GMT
Local: Mon 16 Feb 2004 20:13
Subject: Re: Segmentation fault need help

Marcia Hon wrote:

> I am trying to run a program except I get the following segmentation fault.
> I don't know how to solve it. Please if you know could you please help.

You are getting out of hand.  Please STOP the excessive
cross-posting, and STOP posting OT matter, and START posting
cut-down compilable complete programs not exceeding 100 lines when
you need help.  Failing this I suggest wholesale PLONKING, after
which you will not be able to get help anywhere.

For you, anything over one newsgroup is excessive crossposting.

--
Chuck F (cbfalco...@yahoo.com) (cbfalco...@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcia Hon  
View profile   Translate to Translated (View Original)
 More options 17 Feb 2004, 05:45
Newsgroups: comp.unix.programmer, comp.os.linux.networking, comp.lang.c, comp.os.linx, comp.os.linux.development
From: "Marcia Hon" <h...@rogers.com>
Date: Sun, 15 Feb 2004 23:46:57 GMT
Local: Sun 15 Feb 2004 23:46
Subject: Re: Segmentation fault need help
Thanks.

I don't know how to solve it your way. I would like to learn. I, however,
solved it by sequentially putting printfs throughout the program!

Thanks again for your help.
Marcia


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nikhil bhargav  
View profile   Translate to Translated (View Original)
 More options 17 Mar 2004, 09:10
Newsgroups: comp.unix.programmer, comp.os.linux.networking, comp.lang.c, comp.os.linx, comp.os.linux.development
From: nikhilbhargav_n...@indiatimes.com (nikhil bhargav)
Date: 17 Mar 2004 01:10:08 -0800
Local: Wed 17 Mar 2004 09:10
Subject: Re: Segmentation fault need help

CBFalconer <cbfalco...@yahoo.com> wrote in message <news:403108D1.50786BF7@yahoo.com>...
> Marcia Hon wrote:

> > I am trying to run a program except I get the following segmentation fault.
> > I don't know how to solve it. Please if you know could you please help.

> You are getting out of hand.  Please STOP the excessive
> cross-posting, and STOP posting OT matter, and START posting
> cut-down compilable complete programs not exceeding 100 lines when
> you need help.  Failing this I suggest wholesale PLONKING, after
> which you will not be able to get help anywhere.

> For you, anything over one newsgroup is excessive crossposting.

Pleae avoid cross postng as it goes against spirit of user groups and
discusson forums. Instead try to post ur code if its small or uload it
somewhere and give its link, so that ppl could read it and give their
suggestions.

SIGSEV is given when a user level process tries to read/write/free a
mem region which doesnot belong to its user stack.

nikhil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google