| Summary: | Not setting xdc.runtime.Registry Diags masks causes Assert_isTrue() to seg fault for Linux apps | ||
|---|---|---|---|
| Product: | [Technology] RTSC | Reporter: | Janet Head <jhead> |
| Component: | Runtime | Assignee: | Dave Russo <d-russo> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cring, d-russo |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
When I ran this the problem was in Registry.c, not Assert_isTrue() *** This bug has been marked as a duplicate of bug 325173 *** closing "ancient" resolved bugs |
Build Identifier: xdctools_3_20_00_34_eng Build any frameworks components test for a Linux target, and do not add the following lines in the .cfg file: var Registry = xdc.useModule('xdc.runtime.Registry'); Diags.setMaskMeta("xdc.runtime.Registry", Diags.ALL, Diags.RUNTIME_OFF); By not setting the masks of xdc.runtime.Registry, Assert_isTrue() statements will cause a segmentation fault. Reproducible: Always Steps to Reproduce: 1. Clone the fc-n03 tree 2. cd to src/ti/sdo/fc/dskt2/test 3. sm-make .clean; sm-make 4. run .bin/host_platforms_PC/debug/test0.x86U just to verify that it works. 5. Edit the file common_log.cfg, commenting out the line: Diags.setMaskMeta("xdc.runtime.Registry", Diags.ALL, Diags.RUNTIME_OFF); 6. sm-make 7. run .bin/host_platforms_PC/debug/test0.x86U This time it will seg fault. Run it in gdb to see the file and line number, which is an Assert_isTrue() statemnent.