Segmentation fault PreviousNext
Data Distribution Service (DDS) Forum > DDS Technical Forum >
Message/Author
Next message ishleen kaur  posted on Wednesday, September 09, 2009 - 09:58 am
I have been trying to execute the tutorial programs using OpenSplice Community edition.

1.I untarred the HDE binary, and the OpenSplice infra is up and running on the linux terminal.

2.I invoked the idl preprocessor to generate files from Chat.idl

3.I created a library 'OpenSplice_Lib_Stat.a' containing the files created by Chat.idl in Eclipse.

4.I copied the /*Create Topic*/ program from tutorial, included the INCLUDE file paths in directories tab in Eclipse, and associated 3 libraries- dcpssac,ddsdatabase,'OpenSplice_Lib_Stat.a'
5.Each time I build the code, a library is created.

**** Build of configuration Debug for project OpenSplice_07.09.09 ****
make all
Building file: ../ChatSacDcps.c
Invoking: GCC C Compiler
gcc -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/dcps/C/SAC -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/common/include -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/sys -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"ChatSacDcps.d" -MT"ChatSacDcps.d" -o"ChatSacDcps.o" "../ChatSacDcps.c"
Finished building: ../ChatSacDcps.c

Building file: ../ChatSplDcps.c
Invoking: GCC C Compiler
gcc -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/dcps/C/SAC -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/common/include -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/sys -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"ChatSplDcps.d" -MT"ChatSplDcps.d" -o"ChatSplDcps.o" "../ChatSplDcps.c"
Finished building: ../ChatSplDcps.c

Building file: ../Create_Chat_Msg.c
Invoking: GCC C Compiler
gcc -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/dcps/C/SAC -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/common/include -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include -I/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/include/sys -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Create_Chat_Msg.d" -MT"Create_Chat_Msg.d" -o"Create_Chat_Msg.o" "../Create_Chat_Msg.c"
Finished building: ../Create_Chat_Msg.c

Building target: libOpenSplice_07.09.09
Invoking: GCC C Linker
gcc -L/home/test/workspace/OpenSplice_Library_Stat/Release -L/opt/OpenSplice/V4.1.090617/HDE/x86.linux2.6/lib -m32 -shared -o"libOpenSplice_07.09.09" ./ChatSacDcps.o ./ChatSplDcps.o ./Create_Chat_Msg.o -lOpenSplice_Library_Stat -ldcpssac -lddsdatabase
Finished building target: libOpenSplice_07.09.09


6.But as soon as i RUN it, error message is - 'Launch failed. Binary not found'

When i try to DEBUG it thru DEBUG configuration, error is - 'Segmentation Fault' followed by 'Application terminated'.

New_configuration [C/C++ Local Application]
gdb/mi (9/9/09 2:05 PM) (Suspended)
Thread [0] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)
1 <symbol> 0x00000001
gdb (9/9/09 2:05 PM)
/home/test/workspace/OpenSplice_07.09.09/Debug/libOpenSplice_07.09.09
Next message ishleen kaur  posted on Wednesday, September 09, 2009 - 10:09 am
Specifications of system used during OpenSplice installation:

Operating System : Fedora 10
Version : 2.6.27.5
Release : 117.fc10
Compiler : gcc 4.2.2 20081105
Next message Hans van 't Hag  posted on Wednesday, September 09, 2009 - 10:12 am
Hi Isleen,

I saw you posted the same question on the OSPL-DEV mailing list which is the appropriate way of addressing vendor-specific issues.

In general terms, as tutorials come with instructions / make-files etc. (and for sure this Chatroom example does), my first suggestion would be to use the provided makefile (in this case for creating the Chatter/MessageBoard/UserLoad applications).

Regards,
Hans
Next message ishleen kaur  posted on Thursday, September 10, 2009 - 06:46 am
The Chatter example runs on terminal after its Makefile is issued. But the intent is to develop an executable for Chatter.c on Eclipse .

That has not happened inspite of adding all the include paths as well as libraries.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action: