All of lore.kernel.org
 help / color / mirror / Atom feed
* dtc crash when compiling a test file
@ 2014-06-18  0:28 Simon Glass
       [not found] ` <CAPnjgZ3pdOGOAO6ktY7gd696wUtA0zHgpcg-GZZxA8yfvHkHyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Glass @ 2014-06-18  0:28 UTC (permalink / raw)
  To: Devicetree Compiler; +Cc: David Gibson, Jon Loeliger

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dtc crash when compiling a test file
       [not found] ` <CAPnjgZ3pdOGOAO6ktY7gd696wUtA0zHgpcg-GZZxA8yfvHkHyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-18 12:50   ` David Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2014-06-18 12:50 UTC (permalink / raw)
  To: Simon Glass; +Cc: Devicetree Compiler, Jon Loeliger

[-- Attachment #1: Type: text/plain, Size: 478 bytes --]

On Tue, Jun 17, 2014 at 05:28:35PM -0700, Simon Glass wrote:
> Hi,
> 
> I noticed the following crash. I'm not offering a patch sorry, but
> thought I would report it.

Found it; off-by-2 error in treesource.c.  Fix pushed as commit
fa928fba7e1ce94aef58798e77a9261192fdbb01

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-18 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18  0:28 dtc crash when compiling a test file Simon Glass
     [not found] ` <CAPnjgZ3pdOGOAO6ktY7gd696wUtA0zHgpcg-GZZxA8yfvHkHyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-18 12:50   ` David Gibson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.