public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Raúl Huertas" <raulh39@ya.com>
Cc: gdb@sourceware.org
Subject: Re: segmentation fault
Date: Sat, 11 Nov 2006 20:29:00 -0000	[thread overview]
Message-ID: <455632B3.2020909@ya.com> (raw)
In-Reply-To: <200611110221.11772.oliver@block-online.eu>

Oliver Block escribió:
> Hello,
> ...
> (gdb) p sizeof(struct servent)
> $1 = 16
>
> When I extract
>
> from #2:
> sptr = (struct servent *) 0x804b028
>
> from #4:
> r = 0x804b030 
>
> as servent has a size of 16 bytes
>
> 804b028 + 16 = 0x804b038
>
> These two variables seem to overlap. Do you agree? 
>
>   
No. ;)
Maybe I'm wrong, but sptr is a pointer, so it uses 0x804b028 and 0x804b029.
The memory pointed by this pointer is the one that has size 16.

Regards,
Raul.

  reply	other threads:[~2006-11-11 20:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-11  1:21 Oliver Block
2006-11-11 20:29 ` Raúl Huertas [this message]
2006-11-11 20:46   ` Daniel Jacobowitz
2006-11-11 21:02     ` Raúl Huertas
  -- strict thread matches above, loose matches on Subject: below --
2006-11-11  1:23 Oliver Block
2004-06-10 21:08 John

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=455632B3.2020909@ya.com \
    --to=raulh39@ya.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).