SDK beta 3 - libxnornet.so under Ubuntu 16.04.6 LTS - Illegal instruction (core dumped)

I have tested the SDK with Ubuntu 16.04.6 LTS under a VM

I have ecception after run the samples

test@ubuntu:~/xnor-eval-sdk-v0.3/samples/linux_x86_64/c$ build/classify_image_file ../../test-images/dog.jpg
Illegal instruction (core dumped)

Are the lib compatible with Ubuntu 16.04.6 LTS?

Thanks a lot.

12replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Ubuntu 16.04.6 LTS should be fine in a VM. Is there any way you could provide a backtrace from the core dump? Thanks!

    Reply Like
      • Andrea Zorzi
      • Developer
      • Andrea_Zorzi
      • 5 mths ago
      • Reported - view

      Todd Ferkingtad 

      I have installed 64 bit version of Ubuntu 16.04.6 LTS

      The library are compiled only for 32 bit version?

      Reply Like
      • Andrea Zorzi
      • Developer
      • Andrea_Zorzi
      • 5 mths ago
      • Reported - view

      Todd Ferkingtad 

      I have compiled the samples with debug parameter

      CFLAGS += -Wall $(INCLUDES) -g3 -O3 -mssse3

      I try to exec with gdb

      GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
      Copyright (C) 2016 Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
      and "show warranty" for details.
      This GDB was configured as "x86_64-linux-gnu".
      Type "show configuration" for configuration details.
      For bug reporting instructions, please see:
      <http://www.gnu.org/software/gdb/bugs/>.
      Find the GDB manual and other documentation resources online at:
      <http://www.gnu.org/software/gdb/documentation/>.
      For help, type "help".
      Type "apropos word" to search for commands related to "word"...
      Reading symbols from build/json_dump_objects_in_image...done.
      (gdb) run
      Starting program: /home/andrea/xnor-eval-sdk-v0.3/samples/linux_x86_64/c/build/json_dump_objects_in_image
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

      Program received signal SIGILL, Illegal instruction.
      0x00007ffff7843a69 in ?? () from build/libxnornet.so
      (gdb)

      Reply Like
      • Andrea Zorzi
      • Developer
      • Andrea_Zorzi
      • 5 mths ago
      • Reported - view

      Todd Ferkingtad 

      Makefile

      MODEL ?= person-classifier

      Here you can see what compiler have do

      ls -la build/

      71984 Mar 15 14:30 classify_image_file
      4096 Mar 15 14:31 common_util
      72792 Mar 15 14:30 detect_and_print_objects_in_image
      845416 Mar 15 14:31 gstreamer_live_overlay_object_detector
      845544 Mar 15 14:31 gstreamer_live_overlay_scene_classifier
      105264 Mar 15 14:30 json_dump_objects_in_image
      7030848 Mar 15 14:30 libxnornet.so
       68840 Mar 15 14:30 object_detector
       76856 Mar 15 14:30 segmentation_mask_of_image_file_to_file

       

      file build/libxnornet.so
      build/libxnornet.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=e58b577faeb53744f1634ddec679cf8c8ec7398c, stripped

       

      file build/json_dump_objects_in_image
      build/json_dump_objects_in_image: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=c598254799d1b253b54404e7a258cd3c3dc56ad8, not stripped


       

      Reply Like
      • Andrea Zorzi
      • Developer
      • Andrea_Zorzi
      • 5 mths ago
      • Reported - view

      Todd Ferkingtad 

      Todd,

      if you send me a libxnornet.so version with debug level all, I can try to send you a core dumped...

      Reply Like
      • Andrea Zorzi
      • Developer
      • Andrea_Zorzi
      • 5 mths ago
      • Reported - view

      Todd Ferkingtad 

      My current configuration

      gcc -v
      Using built-in specs.
      COLLECT_GCC=gcc
      COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
      Target: x86_64-linux-gnu
      Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.11' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
      Thread model: posix
      gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)

      Reply Like
  • Hey Andrea, what CPU are you running on? Can you provide the output of the following?

    cat /proc/cpuinfo/
    
    Reply Like
      • Andrea Zorzi
      • Developer
      • Andrea_Zorzi
      • 5 mths ago
      • Reported - view

      Carlo C del Mundo 

      cat /proc/cpuinfo
      processor    : 0
      vendor_id    : GenuineIntel
      cpu family    : 6
      model        : 58
      model name    : Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz
      stepping    : 9
      microcode    : 0x1b
      cpu MHz        : 2394.589
      cache size    : 3072 KB
      physical id    : 0
      siblings    : 1
      core id        : 0
      cpu cores    : 1
      apicid        : 0
      initial apicid    : 0
      fpu        : yes
      fpu_exception    : yes
      cpuid level    : 13
      wp        : yes
      flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx f16c hypervisor lahf_lm cpuid_fault pti fsgsbase tsc_adjust smep arat
      bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
      bogomips    : 4789.17
      clflush size    : 64
      cache_alignment    : 64
      address sizes    : 43 bits physical, 48 bits virtual
      power management:

      Reply Like
    • Andrea Zorzi Thanks, this is what I was looking for. It looks like your machine does not AVX2 enabled. The model you've downloaded is most likely built for AVX2.

      @Todd Ferkingtad  Could you let the platform team about this issue? Should be very easy for us to build for non-AVX2-enabled Intel machines.

      Reply Like 1
      • Andrea Zorzi
      • Developer
      • Andrea_Zorzi
      • 5 mths ago
      • Reported - view

      Carlo C del Mundo 

      Yes you are right!!

      I have changed my PC with an other and now under the VM with processor AVX2-enabled Intel machine, I have installed and test your product.

      Very well!!

      Reply Like
    • Andrea Zorzi Great. Glad to hear.

      Reply Like
  • Andrea Zorzi  yes, great to hear! And I am following up on non-AVX2 support. 

    Reply Like
Like Follow
  • 5 mths agoLast active
  • 12Replies
  • 63Views
  • 3 Following