VxWorks crash when calling SDK functions

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
brandrdrengr
Jr. Member
Jr. Member
Posts: 2
Joined: 16 Apr 2018, 16:03

VxWorks crash when calling SDK functions

Post by brandrdrengr »

I've managed to compile the SDK for a VxWorks 6.4 SH32 target. Linking with static libraries appears to have worked (viewing disassembled shared lib via nm(1)). However when my application loads and calls, e.g. OpcUa_ProxyStubConfiguration_InitializeDefault(), my RTP bails with the following output on the console:

TLB Miss/Invalid (Load)
EXPEVT Register: 0x00000040
Program Counter: 0x6064a6ae
Status Register: 0x00000000
Access Address: 0x00000000
ASID: 0x00000001
Task: 0x49f6d08c "UA Accepter"
0x49f6d08c (UA Accepter): RTP 0x49d52298 has had a failure and has been deleted.

Just for kicks, I tried calling other functions from the SDK, all to the same effect. I'm not even sure how to start debugging this. Anyone have suggestions?

brandrdrengr
Jr. Member
Jr. Member
Posts: 2
Joined: 16 Apr 2018, 16:03

Re: VxWorks crash when calling SDK functions

Post by brandrdrengr »

I've figured out that I was missing -fpic from the compilation flags. After adding this, I'm able to generate code that runs, albeit without SSL for now (still working on that).

Post Reply