Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314926 - Not setting xdc.runtime.Registry Diags masks causes Assert_isTrue() to seg fault for Linux apps
Summary: Not setting xdc.runtime.Registry Diags masks causes Assert_isTrue() to seg fa...
Status: CLOSED DUPLICATE of bug 325173
Alias: None
Product: RTSC
Classification: Technology
Component: Runtime (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 13:56 EDT by Janet Head CLA
Modified: 2011-11-09 18:55 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janet Head CLA 2010-05-28 13:56:00 EDT
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.
Comment 1 Dave Russo CLA 2010-09-13 21:13:50 EDT
When I ran this the problem was in Registry.c, not Assert_isTrue()

*** This bug has been marked as a duplicate of bug 325173 ***
Comment 2 Dave Russo CLA 2011-11-09 18:55:20 EST
closing "ancient" resolved bugs