Date: Wed, 15 Nov 2017 21:07:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-dtrace@FreeBSD.org Subject: [Bug 223680] www/firefox: DTRACE=on fails with /usr/bin/ld: error: ../../js/src/jsarray.o: string table non-null terminated Message-ID: <bug-223680-32976-vZsLzGser3@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-223680-32976@https.bugs.freebsd.org/bugzilla/> References: <bug-223680-32976@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223680 --- Comment #3 from Dimitry Andric <dim@FreeBSD.org> --- After dtrace processes the jsarray.o file, its .strtab session is no longer null-terminated, e.g. before dtrace it looks like: Hex dump of section '.strtab': 0x00000000 005f5a32 354a535f 5265706f 72744572 ._Z25JS_ReportEr 0x00000010 726f724e 756d6265 72415343 49495039 rorNumberASCIIP9 0x00000020 4a53436f 6e746578 74504650 4b31394a JSContextPFPK19J 0x00000030 53457272 6f72466f 726d6174 53747269 SErrorFormatStri 0x00000040 6e675076 6a455334 5f6a7a00 6d656d63 ngPvjES4_jz.memc 0x00000050 7079002e 72656c61 2e746578 742e5f5a py..rela.text._Z 0x00000060 4c323043 72656174 65417272 61795072 L20CreateArrayPr 0x00000070 6f746f74 79706550 394a5343 6f6e7465 ototypeP9JSConte ... 0x00006ea0 5f30002e 4c435049 34345f30 002e4c43 _0..LCPI44_0..LC 0x00006eb0 50493234 5f30002e 4c435049 33335f30 PI24_0..LCPI33_0 0x00006ec0 002e4c43 50493233 5f30002e 4c435049 ..LCPI23_0..LCPI 0x00006ed0 325f3000 2e4c4350 4933315f 30002e4c 2_0..LCPI31_0..L 0x00006ee0 43504932 315f3000 2e4c4350 4933305f CPI21_0..LCPI30_ 0x00006ef0 30002e4c 43504932 305f3000 2e4c2e73 0..LCPI20_0..L.s 0x00006f00 74722e39 30002e72 6f646174 612e5f5a tr.90..rodata._Z 0x00006f10 4c313070 6f776572 734f6631 30002e4c L10powersOf10..L 0x00006f20 2e737472 2e313000 .str.10. After dtrace: Hex dump of section '.strtab': 0x00000000 005f5a32 354a535f 5265706f 72744572 ._Z25JS_ReportEr 0x00000010 726f724e 756d6265 72415343 49495039 rorNumberASCIIP9 0x00000020 4a53436f 6e746578 74504650 4b31394a JSContextPFPK19J 0x00000030 53457272 6f72466f 726d6174 53747269 SErrorFormatStri 0x00000040 6e675076 6a455334 5f6a7a00 6d656d63 ngPvjES4_jz.memc 0x00000050 7079002e 72656c61 2e746578 742e5f5a py..rela.text._Z 0x00000060 4c323043 72656174 65417272 61795072 L20CreateArrayPr 0x00000070 6f746f74 79706550 394a5343 6f6e7465 ototypeP9JSConte ... 0x000073a0 52657573 6547726f 75704550 394a5343 ReuseGroupEP9JSC 0x000073b0 6f6e7465 78744e32 4a533648 616e646c ontextN2JS6Handl 0x000073c0 65495038 4a534f62 6a656374 45456d00 eIP8JSObjectEEm. 0x000073d0 24647472 6163652e 5f5a4e32 6a733134 $dtrace._ZN2js14 0x000073e0 4e65774f 626a6563 74436163 68653136 NewObjectCache16 0x000073f0 6e65774f 626a6563 7446726f 6d486974 newObjectFromHit 0x00007400 4550394a 53436f6e 74657874 694e535f EP9JSContextiNS_ 0x00007410 32676331 31496e69 7469616c 48656170 2gc11InitialHeap 0x00007420 4500a5a5 a5a5a5a5 a5 E........ It looks like dtrace appends some uninitialized memory at the end of the ta= ble. I have not been able to successfully run valgrind on it, though, so I have= no idea where it comes from. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223680-32976-vZsLzGser3>