Bug 3568 - idl compiler crash in #pragma prefix if quotes are missing
Summary: idl compiler crash in #pragma prefix if quotes are missing
Status: RESOLVED FIXED
Alias: None
Product: TAO
Classification: Unclassified
Component: IDL Compiler (show other bugs)
Version: 1.6.5
Hardware: All Windows XP
: P3 normal
Assignee: Jeff Parsons
URL:
Depends on:
Blocks:
 
Reported: 2009-02-11 04:27 CST by Bogdan Jeram
Modified: 2010-08-20 12:09 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Jeram 2009-02-11 04:27:45 CST
Dear all,

if for some reason quotes (") are forgotten when 
#pragma prefix is specified the idl compiler crashes.
So if you have an IDL file with:
#pragma prefix abc.cdb;
instead
#pragma prefix "abc.cdb";

I know that is users mistake, but the idl compiler should not crash and it should report the problem.

The back trace from the core dump look like:
#0  0x4eabdf67 in strchr () from /lib/tls/i686/libc.so.6
#1  0xb7c80b9c in tao_yy_scan_bytes () from /alma/ACS-8.0/TAO/ACE_wrappers/build/linux/lib/libTAO_IDL_FE.so.5.6.5
#2  0xb7c80065 in tao_yy_scan_bytes () from /alma/ACS-8.0/TAO/ACE_wrappers/build/linux/lib/libTAO_IDL_FE.so.5.6.5
#3  0xb7c7ebf0 in tao_yylex () from /alma/ACS-8.0/TAO/ACE_wrappers/build/linux/lib/libTAO_IDL_FE.so.5.6.5
#4  0xb7c72ed5 in tao_yyparse () from /alma/ACS-8.0/TAO/ACE_wrappers/build/linux/lib/libTAO_IDL_FE.so.5.6.5
#5  0xb7c865fc in FE_yyparse () from /alma/ACS-8.0/TAO/ACE_wrappers/build/linux/lib/libTAO_IDL_FE.so.5.6.5
#6  0x0804f806 in DRV_drive ()
#7  0x0804fc7b in main ()

Regards
Bogdan
Comment 1 Jeff Parsons 2009-02-11 15:10:01 CST
Fixed

Wed Feb 11 21:03:46 UTC 2009  Jeff Parsons <j.parsons@vanderbilt.edu>