Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

VIX Illegal instruction (core dumped) on Ubuntu using sample code

$
0
0

Hi,

 

I'm trying to learn VIX but can't even get beyond the first connect call.
I get a Illegal instruction (core dumped) in SSL_InitEx ()

 

Anyone any ideas?

 

Thanks,

 

Jan

 

// c-program

 

#include <stdio.h>
#include <stdlib.h>

 

#include "vix.h"

 

int
main(int argc, char **argv)
{
    VixHandle jobHandle = VIX_INVALID_HANDLE;

 

    jobHandle = VixHost_Connect(VIX_API_VERSION,
        VIX_SERVICEPROVIDER_VMWARE_WORKSTATION,
        "", // *hostName,
        0,  // hostPort,
        "", // *userName,
        0,  // *password,
        0,  // options,
        VIX_INVALID_HANDLE, // propertyListHandle,
        NULL, // *callbackProc,
        NULL); // *clientData);
    return 0;
}

 

// MakeFile

 

all : test.c
    gcc test.c -I/usr/include/vmware-vix -o test -lvixAllProducts -ldl

 


// ldd

 

ldd test
    linux-vdso.so.1 =>  (0x00007fffd5fff000)
    libvixAllProducts.so => /usr/lib/libvixAllProducts.so (0x00007fe481f32000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007fe481d2e000)
    libc.so.6 => /lib/libc.so.6 (0x00007fe4819aa000)
    libz.so.1 => /lib/libz.so.1 (0x00007fe481792000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fe48157c000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fe48223c000)

 


// output

 

Illegal instruction (core dumped)

 

// gdb stack trace

 

Program terminated with signal 4, Illegal instruction.
#0  0x00007f5fa4fa37f5 in SSL_InitEx () from /usr/lib/vmware-vix/Workstation-7.1.0/64bit/libvix.so
(gdb) where
#0  0x00007f5fa4fa37f5 in SSL_InitEx () from /usr/lib/vmware-vix/Workstation-7.1.0/64bit/libvix.so
#1  0x00007f5fa4c6e50a in VixHost_ConnectEx () from /usr/lib/vmware-vix/Workstation-7.1.0/64bit/libvix.so
#2  0x00007f5fa4c6eb8f in VixHost_Connect () from /usr/lib/vmware-vix/Workstation-7.1.0/64bit/libvix.so
#3  0x00007f5fa8095ab3 in VixHost_Connect () from /usr/lib/libvixAllProducts.so
#4  0x0000000000400670 in main ()

 

// Platform

 

Linux 2.6.35-23-generic #40-Ubuntu SMP Wed Nov 17 22:14:33 UTC 2010 x86_64 GNU/Linux

 

// Installed

 

VMware-VIX-1.10.2-331862.x86_64.bundle
VMware-Workstation-Full-7.1.3-324285.x86_64.bundle


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>