3 Replies Latest reply on Dec 17, 2014 12:02 AM by Charkoteow

    Getting segfaults (Edison, Ubilinux)

    Charkoteow

      I'm trying to get a WSN software (xserve) running on my Edison.

      I've gone through the installation just like I did with another PC which runs Ubuntu 12.04LTS.

      The software runs fine on that machine but I'm struggling to get it running on Edison with Ubilinux.

      I just don't know where to start on how to fix it. Have been waiting for a reply from the company's support for a few days now so I figured that why not ask for some guidance here.

       

      Below are what I'm getting on dmesg.

       

      # dmesg

      [  547.677214] xserve[2122]: segfault at 0 ip b73e8d31 sp bfdb403c error 4 in libc-2.13.so[b7370000+14a000]

      [  547.724060] xserve[2124]: segfault at 0 ip b7393d31 sp bf93ed5c error 4 in libc-2.13.so[b731b000+14a000]

      [  547.768604] xserve[2126]: segfault at 0 ip b746fd31 sp bfefef2c error 4 in libc-2.13.so[b73f7000+14a000]

      [  547.813501] xserve[2128]: segfault at 0 ip b73f3d31 sp bfcc61cc error 4 in libc-2.13.so[b737b000+14a000]

      [  547.858479] xserve[2130]: segfault at 0 ip b7380d31 sp bfb10fcc error 4 in libc-2.13.so[b7308000+14a000]

      [  547.904162] xserve[2132]: segfault at 0 ip b739cd31 sp bf81353c error 4 in libc-2.13.so[b7324000+14a000]

      [ 1445.115658] xserve[2795]: segfault at 0 ip b73cbd31 sp bfc3e04c error 4 in libc-2.13.so[b7353000+14a000]

      [ 1445.177464] xserve[2797]: segfault at 0 ip b741fd31 sp bfd4e9cc error 4 in libc-2.13.so[b73a7000+14a000]

      [ 1445.224258] xserve[2799]: segfault at 0 ip b744bd31 sp bfe57cec error 4 in libc-2.13.so[b73d3000+14a000]

      [ 1445.271868] xserve[2801]: segfault at 0 ip b7435d31 sp bfefde5c error 4 in libc-2.13.so[b73bd000+14a000]

      [ 1445.320160] xserve[2803]: segfault at 0 ip b746fd31 sp bfe874dc error 4 in libc-2.13.so[b73f7000+14a000]

      [ 1445.367628] xserve[2805]: segfault at 0 ip b7465d31 sp bfc7004c error 4 in libc-2.13.so[b73ed000+14a000]

      [ 2001.050400] xserve[2929]: segfault at 0 ip b7393d31 sp bf8df28c error 4 in libc-2.13.so[b731b000+14a000]

      [ 2001.098343] xserve[2931]: segfault at 0 ip b7446d31 sp bf82380c error 4 in libc-2.13.so[b73ce000+14a000]

      [ 2001.144504] xserve[2933]: segfault at 0 ip b7398d31 sp bfeb500c error 4 in libc-2.13.so[b7320000+14a000]

      [ 2001.191331] xserve[2935]: segfault at 0 ip b73d6d31 sp bff5868c error 4 in libc-2.13.so[b735e000+14a000]

      [ 2001.236049] xserve[2937]: segfault at 0 ip b743ad31 sp bf86c6ac error 4 in libc-2.13.so[b73c2000+14a000]

      [ 2001.281968] xserve[2939]: segfault at 0 ip b73bed31 sp bfe5442c error 4 in libc-2.13.so[b7346000+14a000]

      [ 2480.003824] xserve[2987]: segfault at 0 ip b738ad31 sp bfa38edc error 4 in libc-2.13.so[b7312000+14a000]

      [ 2480.041527] xserve[2989]: segfault at 0 ip b73acd31 sp bfb57d0c error 4 in libc-2.13.so[b7334000+14a000]

      [ 2480.077590] xserve[2991]: segfault at 0 ip b7414d31 sp bf9086ac error 4 in libc-2.13.so[b739c000+14a000]

      [ 2480.112839] xserve[2993]: segfault at 0 ip b73a0d31 sp bfb551bc error 4 in libc-2.13.so[b7328000+14a000]

      [ 2480.148083] xserve[2995]: segfault at 0 ip b73e6d31 sp bf93c9cc error 4 in libc-2.13.so[b736e000+14a000]

      [ 2480.182765] xserve[2997]: segfault at 0 ip b73bfd31 sp bfd57cdc error 4 in libc-2.13.so[b7347000+14a000]

      [ 3140.642596] xserve[4361]: segfault at 0 ip b73e0d31 sp bf8ddc6c error 4 in libc-2.13.so[b7368000+14a000]

      [ 3140.679712] xserve[4363]: segfault at 0 ip b7438d31 sp bfae206c error 4 in libc-2.13.so[b73c0000+14a000]

      [ 3140.714495] xserve[4365]: segfault at 0 ip b73ded31 sp bfef659c error 4 in libc-2.13.so[b7366000+14a000]

      [ 3140.748465] xserve[4367]: segfault at 0 ip b741cd31 sp bfa1649c error 4 in libc-2.13.so[b73a4000+14a000]

      [ 3140.783018] xserve[4369]: segfault at 0 ip b7437d31 sp bfe21bfc error 4 in libc-2.13.so[b73bf000+14a000]

      [ 3140.817660] xserve[4371]: segfault at 0 ip b73f5d31 sp bfc8f0ec error 4 in libc-2.13.so[b737d000+14a000]

      [ 3772.272115] xserve[5146]: segfault at 0 ip b745ad31 sp bfc1fd4c error 4 in libc-2.13.so[b73e2000+14a000]

      [ 3772.319039] xserve[5148]: segfault at 0 ip b739ed31 sp bfc5c74c error 4 in libc-2.13.so[b7326000+14a000]

      [ 3772.367099] xserve[5150]: segfault at 0 ip b741ed31 sp bf8404cc error 4 in libc-2.13.so[b73a6000+14a000]

      [ 3772.413840] xserve[5152]: segfault at 0 ip b737ed31 sp bffc737c error 4 in libc-2.13.so[b7306000+14a000]

      [ 3772.460477] xserve[5154]: segfault at 0 ip b7404d31 sp bfa37e3c error 4 in libc-2.13.so[b738c000+14a000]

      [ 3772.506061] xserve[5156]: segfault at 0 ip b7458d31 sp bfa6457c error 4 in libc-2.13.so[b73e0000+14a000]

      [ 3921.875348] xserve[5202]: segfault at 0 ip b73c7d31 sp bf9ca2ec error 4 in libc-2.13.so[b734f000+14a000]

      [ 3921.924115] xserve[5204]: segfault at 0 ip b7391d31 sp bfcd082c error 4 in libc-2.13.so[b7319000+14a000]

      [ 3921.970523] xserve[5206]: segfault at 0 ip b73cdd31 sp bfbef18c error 4 in libc-2.13.so[b7355000+14a000]

      [ 3922.017672] xserve[5208]: segfault at 0 ip b7408d31 sp bff2cbbc error 4 in libc-2.13.so[b7390000+14a000]

      [ 3922.065446] xserve[5210]: segfault at 0 ip b73bcd31 sp bfda532c error 4 in libc-2.13.so[b7344000+14a000]

      [ 3922.113144] xserve[5212]: segfault at 0 ip b7397d31 sp bfe415fc error 4 in libc-2.13.so[b731f000+14a000]

      [ 5027.320743] xserve[5245]: segfault at 0 ip b7437d31 sp bfc1e67c error 4 in libc-2.13.so[b73bf000+14a000]

      [ 5027.356010] xserve[5247]: segfault at 0 ip b73c6d31 sp bfd4ccec error 4 in libc-2.13.so[b734e000+14a000]

      [ 5027.390444] xserve[5249]: segfault at 0 ip b73f7d31 sp bf89536c error 4 in libc-2.13.so[b737f000+14a000]

      [ 5027.426304] xserve[5251]: segfault at 0 ip b7467d31 sp bfb8773c error 4 in libc-2.13.so[b73ef000+14a000]

      [ 5027.461102] xserve[5253]: segfault at 0 ip b73bdd31 sp bfa761ec error 4 in libc-2.13.so[b7345000+14a000]

      [ 5027.496963] xserve[5255]: segfault at 0 ip b7428d31 sp bfb49a1c error 4 in libc-2.13.so[b73b0000+14a000]

      [ 5578.946133] xserve[5288]: segfault at 0 ip b7461d31 sp bfe6e76c error 4 in libc-2.13.so[b73e9000+14a000]

      [ 5578.991421] xserve[5290]: segfault at 0 ip b73b7d31 sp bf96c17c error 4 in libc-2.13.so[b733f000+14a000]

      [ 5579.027774] xserve[5292]: segfault at 0 ip b7394d31 sp bf8b131c error 4 in libc-2.13.so[b731c000+14a000]

      [ 5579.063262] xserve[5294]: segfault at 0 ip b7384d31 sp bfc3341c error 4 in libc-2.13.so[b730c000+14a000]

      [ 5579.098275] xserve[5296]: segfault at 0 ip b73afd31 sp bfbdf39c error 4 in libc-2.13.so[b7337000+14a000]

      [ 5579.134131] xserve[5298]: segfault at 0 ip b73bed31 sp bfd5f66c error 4 in libc-2.13.so[b7346000+14a000]

      [ 6812.812536] xserve[5340]: segfault at 0 ip b7412d31 sp bfebb5dc error 4 in libc-2.13.so[b739a000+14a000]

      [ 6812.857758] xserve[5342]: segfault at 0 ip b73e5d31 sp bfdd93ac error 4 in libc-2.13.so[b736d000+14a000]

      [ 6812.904138] xserve[5344]: segfault at 0 ip b740dd31 sp bfedf69c error 4 in libc-2.13.so[b7395000+14a000]

      [ 6812.950313] xserve[5346]: segfault at 0 ip b7415d31 sp bfa0b7ec error 4 in libc-2.13.so[b739d000+14a000]

      [ 6812.995269] xserve[5348]: segfault at 0 ip b744ad31 sp bfac476c error 4 in libc-2.13.so[b73d2000+14a000]

      [ 6813.041771] xserve[5350]: segfault at 0 ip b7452d31 sp bf8c7fec error 4 in libc-2.13.so[b73da000+14a000]

      [ 7062.064470] xserve[5704]: segfault at 0 ip b7412d31 sp bff978bc error 4 in libc-2.13.so[b739a000+14a000]

      [ 7062.111054] xserve[5706]: segfault at 0 ip b73d8d31 sp bf86405c error 4 in libc-2.13.so[b7360000+14a000]

      [ 7062.157630] xserve[5708]: segfault at 0 ip b73dbd31 sp bfd2c09c error 4 in libc-2.13.so[b7363000+14a000]

      [ 7062.203408] xserve[5710]: segfault at 0 ip b73a6d31 sp bfb3176c error 4 in libc-2.13.so[b732e000+14a000]

      [ 7062.248829] xserve[5712]: segfault at 0 ip b73cdd31 sp bfe4697c error 4 in libc-2.13.so[b7355000+14a000]

      [ 7062.294846] xserve[5714]: segfault at 0 ip b73f0d31 sp bfb39e0c error 4 in libc-2.13.so[b7378000+14a000]

      [12960.601322] xserve[5921]: segfault at 0 ip b7441d31 sp bfa1f4fc error 4 in libc-2.13.so[b73c9000+14a000]

      [12960.713156] xserve[5923]: segfault at 0 ip b73c6d31 sp bfc24cdc error 4 in libc-2.13.so[b734e000+14a000]

      [12961.085098] xserve[5925]: segfault at 0 ip b73b2d31 sp bfa9b2fc error 4 in libc-2.13.so[b733a000+14a000]

      [12961.486825] xserve[5927]: segfault at 0 ip b7418d31 sp bfdd503c error 4 in libc-2.13.so[b73a0000+14a000]

      [12961.863117] xserve[5929]: segfault at 0 ip b738ed31 sp bfe875ac error 4 in libc-2.13.so[b7316000+14a000]

      [12962.219809] xserve[5931]: segfault at 0 ip b73fad31 sp bff6b50c error 4 in libc-2.13.so[b7382000+14a000]

      [14654.145693] xserve[6185]: segfault at 0 ip b7436d31 sp bfd3ee8c error 4 in libc-2.13.so[b73be000+14a000]

      [14654.260514] xserve[6187]: segfault at 0 ip b73d7d31 sp bfc53e4c error 4 in libc-2.13.so[b735f000+14a000]

      [14654.636453] xserve[6189]: segfault at 0 ip b7415d31 sp bf9ec5cc error 4 in libc-2.13.so[b739d000+14a000]

      [14655.007699] xserve[6191]: segfault at 0 ip b7410d31 sp bf98edec error 4 in libc-2.13.so[b7398000+14a000]

      [14655.390861] xserve[6193]: segfault at 0 ip b73e9d31 sp bfb5caec error 4 in libc-2.13.so[b7371000+14a000]

      [14655.773928] xserve[6195]: segfault at 0 ip b73dad31 sp bf89a25c error 4 in libc-2.13.so[b7362000+14a000]

      [15723.431126] xserve[6205]: segfault at 0 ip b742ed31 sp bfe84e8c error 4 in libc-2.13.so[b73b6000+14a000]

      [15723.545238] xserve[6207]: segfault at 0 ip b73c0d31 sp bfd2f44c error 4 in libc-2.13.so[b7348000+14a000]

      [15723.913580] xserve[6209]: segfault at 0 ip b7389d31 sp bfe627fc error 4 in libc-2.13.so[b7311000+14a000]

      [15724.296970] xserve[6211]: segfault at 0 ip b7401d31 sp bfca6f2c error 4 in libc-2.13.so[b7389000+14a000]

      [15724.685991] xserve[6213]: segfault at 0 ip b7379d31 sp bf932bbc error 4 in libc-2.13.so[b7301000+14a000]

      [15725.074366] xserve[6215]: segfault at 0 ip b73bed31 sp bff5418c error 4 in libc-2.13.so[b7346000+14a000]

      [15783.001809] xserve[6222]: segfault at 0 ip b7451d31 sp bf8d6c9c error 4 in libc-2.13.so[b73d9000+14a000]

      [15783.122491] xserve[6224]: segfault at 0 ip b742dd31 sp bffb812c error 4 in libc-2.13.so[b73b5000+14a000]

      [15783.507894] xserve[6226]: segfault at 0 ip b7402d31 sp bf90c98c error 4 in libc-2.13.so[b738a000+14a000]

      [15783.876721] xserve[6228]: segfault at 0 ip b73b8d31 sp bfe102cc error 4 in libc-2.13.so[b7340000+14a000]

      [15784.247989] xserve[6230]: segfault at 0 ip b73b2d31 sp bf9547fc error 4 in libc-2.13.so[b733a000+14a000]

      [15784.628520] xserve[6232]: segfault at 0 ip b7407d31 sp bffa1a9c error 4 in libc-2.13.so[b738f000+14a000]

      [16116.073946] xserve[6249]: segfault at 0 ip b7474d31 sp bfd0a6fc error 4 in libc-2.13.so[b73fc000+14a000]

      [16116.197645] xserve[6251]: segfault at 0 ip b7406d31 sp bfc0e65c error 4 in libc-2.13.so[b738e000+14a000]

      [16116.568397] xserve[6253]: segfault at 0 ip b741cd31 sp bfebdabc error 4 in libc-2.13.so[b73a4000+14a000]

      [16116.950607] xserve[6255]: segfault at 0 ip b7467d31 sp bffaeebc error 4 in libc-2.13.so[b73ef000+14a000]

      [16117.329995] xserve[6257]: segfault at 0 ip b738bd31 sp bff0346c error 4 in libc-2.13.so[b7313000+14a000]

      [16117.695533] xserve[6259]: segfault at 0 ip b7389d31 sp bfc2f41c error 4 in libc-2.13.so[b7311000+14a000]

      [16208.392373] xserve[6264]: segfault at 0 ip b73cad31 sp bfe7fdec error 4 in libc-2.13.so[b7352000+14a000]

      [16208.505769] xserve[6266]: segfault at 0 ip b7470d31 sp bfc8437c error 4 in libc-2.13.so[b73f8000+14a000]

      [16208.892118] xserve[6268]: segfault at 0 ip b7385d31 sp bfbf668c error 4 in libc-2.13.so[b730d000+14a000]

      [16209.260908] xserve[6270]: segfault at 0 ip b745dd31 sp bfd7470c error 4 in libc-2.13.so[b73e5000+14a000]

      [16209.632531] xserve[6272]: segfault at 0 ip b73b7d31 sp bfeca4ec error 4 in libc-2.13.so[b733f000+14a000]

      [16210.002621] xserve[6274]: segfault at 0 ip b7461d31 sp bfe6796c error 4 in libc-2.13.so[b73e9000+14a000]

      [17866.088507] xserve[8936]: segfault at 0 ip b7401d31 sp bfb83cec error 4 in libc-2.13.so[b7389000+14a000]

      [17866.201436] xserve[8939]: segfault at 0 ip b7447d31 sp bfe4dffc error 4 in libc-2.13.so[b73cf000+14a000]

      [17866.587710] xserve[8941]: segfault at 0 ip b7437d31 sp bfd7465c error 4 in libc-2.13.so[b73bf000+14a000]

      [17866.974302] xserve[8943]: segfault at 0 ip b7436d31 sp bfc6cf0c error 4 in libc-2.13.so[b73be000+14a000]

      [17867.341878] xserve[8945]: segfault at 0 ip b741ad31 sp bfe22f3c error 4 in libc-2.13.so[b73a2000+14a000]

      [17867.714520] xserve[8947]: segfault at 0 ip b73a6d31 sp bf932dcc error 4 in libc-2.13.so[b732e000+14a000]

      [19061.767758] xserve[9032]: segfault at 0 ip b7678d31 sp bfb31cfc error 4 in libc-2.13.so[b7600000+14a000]

      [19061.890338] xserve[9034]: segfault at 0 ip b76a7d31 sp bfc03e5c error 4 in libc-2.13.so[b762f000+14a000]

      [19062.285819] xserve[9036]: segfault at 0 ip b7691d31 sp bff490cc error 4 in libc-2.13.so[b7619000+14a000]

      [19062.656782] xserve[9038]: segfault at 0 ip b76b6d31 sp bfb442ec error 4 in libc-2.13.so[b763e000+14a000]

      [19063.028254] xserve[9040]: segfault at 0 ip b7678d31 sp bf93c22c error 4 in libc-2.13.so[b7600000+14a000]

      [19063.396469] xserve[9042]: segfault at 0 ip b7651d31 sp bfd6c09c error 4 in libc-2.13.so[b75d9000+14a000]

       

      Then I ran gdb,

       

      GNU gdb (GDB) 7.4.1-debian

      Copyright (C) 2012 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 "i486-linux-gnu".

      For bug reporting instructions, please see:

      <http://www.gnu.org/software/gdb/bugs/>...

      Reading symbols from /usr/xbow/bin.linux.netbook/bin/xserve...done.

      [New LWP 9058]

      [New LWP 9059]

       

      warning: Can't read pathname for load map: Input/output error.

      [Thread debugging using libthread_db enabled]

      Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".

      Core was generated by `/usr/xbow/bin.linux.netbook/bin/xserve --nomonitor'.

      Program terminated with signal 11, Segmentation fault.

      #0  0xb763ad31 in strncmp () from /lib/i386-linux-gnu/libc-2.13.so

       

      So if you guys can point me the way, where do I have start to get this running?

        • 1. Re: Getting segfaults (Edison, Ubilinux)
          deium

          most Linux segment faults I get are from non initialized variables.

          • 2. Re: Getting segfaults (Edison, Ubilinux)
            mmi

            If you didn't compile it yourself there's always the risk of version differences, which easily end up in segfaults. The reason is that the program runs only with older or newer versions of the libraries currently installed at your system. The best is (as you have mentioned) to ask the vendor of this package.

            • 3. Re: Getting segfaults (Edison, Ubilinux)
              Charkoteow

              Yes I didn't compile it myself. The executables came with the tarball. I just need to run a perl script and it will automatically configure the software which I did and nothing went wrong (or so I believe because it was fine just as it did on my Ubuntu machine).

              Still waiting for a reply from the vendor about what libraries and toolchains that I need for this to run. I just thought that in the meantime the community might know what went wrong. Maybe the libc-2.13.so isn't functioning well on Edison like libpthread was on Galileo.