devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
To: Devicetree Compiler
	<devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: David Gibson
	<david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>,
	Jon Loeliger <loeliger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: dtc crash when compiling a test file
Date: Tue, 17 Jun 2014 17:28:35 -0700	[thread overview]
Message-ID: <CAPnjgZ3pdOGOAO6ktY7gd696wUtA0zHgpcg-GZZxA8yfvHkHyQ@mail.gmail.com> (raw)

Hi,

I noticed the following crash. I'm not offering a patch sorry, but
thought I would report it.

$ dtc tests/label01.dts
/dts-v1/;

/memreserve/ 0x1000000000000000 0x0000000002000000;
memrsv2: /memreserve/ 0x2000000000000000 0x0100000000000000;
/memreserve/ 0x0000000000000000 0x0000000000000014;
/ {
model = "MyBoardName";
compatible = "MyBoardName", "MyBoardFamilyName";
#address-cells = <0x2>;
#size-cells = <0x2>;

cpus {
linux,phandle = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x0>;

PowerPC,970@0 {
device_type = "cpu";
reg = <0x0>;
clock-frequency = <0x5f5e1000>;
timebase-frequency = <0x1fca055>;
linux,boot-cpu;
i-cache-size = <0x10000>;
d-cache-size = <0x8000>;
};

PowerPC,970@1 {
device_type = "cpu";
reg = <0x1>;
clock-frequency = <0x5f5e1000>;
timebase-frequency = <0x1fca055>;
i-cache-size = <0x10000>;
d-cache-size = <0x8000>;
};
};

node: randomnode {
dtc: treesource.c:132: write_propval_string: Assertion `m->offset ==
val.len' failed.
prop: string = str: "foo", "stuffstuff\t\t\t\n\n\n"Aborted (core dumped)

Regards,
Simon
--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" 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:[~2014-06-18  0:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18  0:28 Simon Glass [this message]
     [not found] ` <CAPnjgZ3pdOGOAO6ktY7gd696wUtA0zHgpcg-GZZxA8yfvHkHyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-18 12:50   ` dtc crash when compiling a test file David Gibson

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=CAPnjgZ3pdOGOAO6ktY7gd696wUtA0zHgpcg-GZZxA8yfvHkHyQ@mail.gmail.com \
    --to=sjg-f7+t8e8rja9g9huczpvpmw@public.gmane.org \
    --cc=david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org \
    --cc=devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=loeliger-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).