dwarves.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "Diego E. “Flameeyes” Pettenò"
	<flameeyes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: dwarves-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Yet another pahole crash
Date: Fri, 8 May 2009 00:54:08 -0300	[thread overview]
Message-ID: <20090508035407.GN12165@ghostprotocols.net> (raw)
In-Reply-To: <1241738974.21706.5.camel@yamato>

Em Fri, May 08, 2009 at 01:29:34AM +0200, Diego E. “Flameeyes” Pettenò escreveu:
> Trying to debug some problems I found a fun crash in pahole. The file
> producing the error is available at
> http://www.flameeyes.eu/tmp/feng.pahole.crasher.20090508.bz2

You forgot to mention that this is only when you ask for the anonymous structs:

[acme@doppio object_samples]$ pahole --anon_include feng.pahole.crasher.20090508
<BIG SNIP>
typedef struct {
	sock_type                  socktype;        /*     0     4 */
	int                        fd;              /*     4     4 */
	struct sockaddr_storage    local_stg;       /*     8   128 */
	/* --- cacheline 2 boundary (128 bytes) was 8 bytes ago --- */
	struct sockaddr_storage    remote_stg;      /*   136   128 */
	/* --- cacheline 4 boundary (256 bytes) was 8 bytes ago --- */
	struct sockaddr_storage    multicast_stg;   /*   264   128 */
	/* --- cacheline 6 boundary (384 bytes) was 8 bytes ago --- */
	sock_flags                 flags;           /*   392     4 */

	/* XXX 4 bytes hole, try to pack */

	char *                     remote_host;     /*   400     8 */
	char *                     local_host;      /*   408     8 */
	in_port_t                  remote_port;     /*   416     2 */
	in_port_t                  local_port;      /*   418     2 */

	/* XXX 4 bytes hole, try to pack */

	void *                     ssl;             /*   424     8 */
	void *                     data;            /*   432     8 */

	/* size: 440, cachelines: 7, members: 12 */
	/* sum members: 432, holes: 2, sum holes: 8 */
	/* last cacheline: 56 bytes */
} Sock;
Segmentation fault
[acme@doppio object_samples]$ pahole -Aa feng.pahole.crasher.20090508

Must be some bug I introduced in the last month or so, investigating.
 
> Have fun!

Having.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-05-08  3:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-07 23:29 Yet another pahole crash Diego E. “Flameeyes” Pettenò
2009-05-08  3:54 ` Arnaldo Carvalho de Melo [this message]
     [not found]   ` <20090508035407.GN12165-f8uhVLnGfZaxAyOMLChx1axOck334EZe@public.gmane.org>
2009-05-08  4:12     ` Arnaldo Carvalho de Melo

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=20090508035407.GN12165@ghostprotocols.net \
    --to=acme-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=dwarves-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=flameeyes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 NNTP newsgroup(s).