Beaglebone black cross compiling

Sysprogs forums Forums VisualGDB Beaglebone black cross compiling

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11290
    themeroving
    Participant

    Hallo.

    I’ created an hello world project using the cross compiling option. After after the automatic tool chain installation i’m able to compile and remotely debug the application.

    Problems start when i try to import the sysroot from the device. After that che compiling is still ok, but the debugger hangs with a segmentation fault at ld-linux-armhf.

    This is my log file:

    C:\SysGCC\beaglebone\bin\arm-linux-gnueabihf-gdb.exe –interpreter mi –args “C:\Users\andrea\Documents\Dati\VisualGDB\Test\LinuxProject4\LinuxProject4/Debug/LinuxProject4″
    [ 0 ms] -gdb-version
    [ 44 ms] =thread-group-added,id=”i1″
    [ 44 ms] ~”GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1\n”
    [ 44 ms] ~”Copyright (C) 2014 Free Software Foundation, Inc.\n”
    [ 44 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    [ 45 ms] ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-linux-gnueabihf\”.\nType \”show configuration\” for configuration details.”
    [ 45 ms] ~”\nFor bug reporting instructions, please see:\n”
    [ 45 ms] ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    [ 45 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    [ 45 ms] ~”For help, type \”help\”.\n”
    [ 45 ms] ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    [ 45 ms] ~”Reading symbols from C:\\Users\\andrea\\Documents\\Dati\\VisualGDB\\Test\\LinuxProject4\\LinuxProject4/Debug/LinuxProject4…”
    [ 46 ms] ~”done.\n”
    [ 48 ms] ~”GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1\n”
    [ 48 ms] ~”Copyright (C) 2014 Free Software Foundation, Inc.\n”
    [ 48 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    [ 48 ms] ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-linux-gnueabihf\”.\nType \”show configuration\” for configuration details.”
    [ 48 ms] ~”\nFor bug reporting instructions, please see:\n”
    [ 48 ms] ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    [ 48 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    [ 48 ms] ~”For help, type \”help\”.\n”
    [ 48 ms] ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
    [ 48 ms] ^done
    [ 48 ms] -list-features
    [ 48 ms] ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
    [ 48 ms] -gdb-set disassembly-flavor intel
    [ 49 ms] ^error,msg=”No symbol \”disassembly\” in current context.”
    [ 49 ms] ^error,msg=”No symbol \”disassembly\” in current context.”
    [ 49 ms] -gdb-set print demangle off
    [ 49 ms] ^done
    [ 49 ms] -break-insert -f main
    [ 59 ms] ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x000106e6″,func=”main(int, char**)”,file=”LinuxProject4.cpp”,fullname=”C:\\Users\\andrea\\Documents\\Dati\\VisualGDB\\Test\\LinuxProject4\\LinuxProject4\\LinuxProject4.cpp”,line=”7″,thread-groups=[“i1″],times=”0″,original-location=”main”}
    [ 59 ms] -gdb-set solib-search-path C:/Users/andrea/Documents/Dati/VisualGDB/Test/LinuxProject4/LinuxProject4/Debug
    [ 59 ms] ^done
    [ 59 ms] -gdb-show sysroot
    [ 60 ms] ^done,value=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot”
    [ 60 ms] -gdb-show debug-file-directory
    [ 60 ms] ^done,value=”c:\\q\\gnu\\beaglebone\\out\\lib\\debug”
    [ 60 ms] -gdb-set debug-file-directory c:/sysgcc/beaglebone/arm-linux-gnueabihf/sysroot/usr/lib/debug
    [ 60 ms] ^done
    [ 60 ms] ^done
    [ 60 ms] -target-select remote 192.168.1.15:2000
    [ 92 ms] =thread-group-started,id=”i1″,pid=”836″
    [ 92 ms] =thread-created,id=”1″,group-id=”i1″
    [ 95 ms] =library-loaded,id=”/lib/ld-linux-armhf.so.3″,target-name=”/lib/ld-linux-armhf.so.3″,host-name=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3″,symbols-loaded=”0″,thread-group=”i1″
    [ 116 ms] &”Cannot access memory at address 0x0\n”
    [ 125 ms] *stopped,frame={addr=”0xb6fd7a40″,func=”??”,args=[],from=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3″},thread-id=”1″,stopped-threads=”all”,core=”0″
    [ 127 ms] ^connected
    [ 127 ms] ^connected
    [ 127 ms] info shared
    [ 127 ms] &”info shared\n”
    [ 128 ms] ~”From To Syms Read Shared Object Library\n”
    [ 129 ms] ~”0xb6fd7840 0xb6feaa38 Yes c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 129 ms] ^done
    [ 132 ms] info target
    [ 139 ms] &”info target\n”
    [ 139 ms] ~”Symbols from \”C:\\Users\\andrea\\Documents\\Dati\\VisualGDB\\Test\\LinuxProject4\\LinuxProject4\\Debug\\LinuxProject4\”.\n”
    [ 139 ms] ~”Remote serial target in gdb-specific protocol:\n”
    [ 139 ms] ~”Debugging a target over a serial line.\n”
    [ 139 ms] ~”\tWhile running this, GDB does not access memory from…\n”
    [ 139 ms] ~”Local exec file:\n”
    [ 139 ms] ~”\t`C:\\Users\\andrea\\Documents\\Dati\\VisualGDB\\Test\\LinuxProject4\\LinuxProject4\\Debug\\LinuxProject4′, file type elf32-littlearm.\n”
    [ 139 ms] ~”\tEntry point: 0x105fc\n”
    [ 139 ms] ~”\t0x00010134 – 0x0001014d is .interp\n”
    [ 139 ms] ~”\t0x00010150 – 0x00010170 is .note.ABI-tag\n”
    [ 139 ms] ~”\t0x00010170 – 0x00010194 is .note.gnu.build-id\n”
    [ 139 ms] ~”\t0x00010194 – 0x000101dc is .gnu.hash\n”
    [ 139 ms] ~”\t0x000101dc – 0x000102cc is .dynsym\n”
    [ 139 ms] ~”\t0x000102cc – 0x0001048a is .dynstr\n”
    [ 139 ms] ~”\t0x0001048a – 0x000104a8 is .gnu.version\n”
    [ 139 ms] ~”\t0x000104a8 – 0x00010518 is .gnu.version_r\n”
    [ 139 ms] ~”\t0x00010518 – 0x00010528 is .rel.dyn\n”
    [ 139 ms] ~”\t0x00010528 – 0x00010570 is .rel.plt\n”
    [ 139 ms] ~”\t0x00010570 – 0x0001057c is .init\n”
    [ 149 ms] ~”\t0x0001057c – 0x000105fc is .plt\n”
    [ 149 ms] ~”\t0x000105fc – 0x000107bc is .text\n”
    [ 149 ms] ~”\t0x000107bc – 0x000107c4 is .fini\n”
    [ 149 ms] ~”\t0x000107c4 – 0x000107d4 is .rodata\n”
    [ 149 ms] ~”\t0x000107d4 – 0x000107e0 is .ARM.extab\n”
    [ 149 ms] ~”\t0x000107e0 – 0x000107f8 is .ARM.exidx\n”
    [ 149 ms] ~”\t0x000107f8 – 0x000107fc is .eh_frame\n”
    [ 149 ms] ~”\t0x000207fc – 0x00020804 is .init_array\n”
    [ 149 ms] ~”\t0x00020804 – 0x00020808 is .fini_array\n”
    [ 149 ms] ~”\t0x00020808 – 0x0002080c is .jcr\n”
    [ 149 ms] ~”\t0x0002080c – 0x00020914 is .dynamic\n”
    [ 149 ms] ~”\t0x00020914 – 0x00020948 is .got\n”
    [ 149 ms] ~”\t0x00020948 – 0x0002094c is .data\n”
    [ 149 ms] ~”\t0x00020950 – 0x000209e4 is .bss\n”
    [ 149 ms] ~”\t0xb6fd7114 – 0xb6fd7138 is .note.gnu.build-id in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd7138 – 0xb6fd71f8 is .hash in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd71f8 – 0xb6fd72d4 is .gnu.hash in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd72d4 – 0xb6fd74a4 is .dynsym in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd74a4 – 0xb6fd7647 is .dynstr in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd7648 – 0xb6fd7682 is .gnu.version in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd7684 – 0xb6fd76e0 is .gnu.version_d in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd76e0 – 0xb6fd7780 is .rel.dyn in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd7780 – 0xb6fd77b0 is .rel.plt in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd77b0 – 0xb6fd7818 is .plt in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fd7840 – 0xb6feaa38 is .text in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6feaa38 – 0xb6fee598 is .rodata in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fee598 – 0xb6fee599 is .stapsdt.base in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fee59c – 0xb6fee5d8 is .ARM.extab in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fee5d8 – 0xb6fee670 is .ARM.exidx in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6ffec90 – 0xb6ffef44 is .data.rel.ro in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6ffef44 – 0xb6ffeffc is .dynamic in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fff000 – 0xb6fff04c is .got in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fff050 – 0xb6fff884 is .data in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ~”\t0xb6fff884 – 0xb6fff958 is .bss in c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3\n”
    [ 149 ms] ^done
    [ 151 ms] -break-insert -f C:/Users/andrea/Documents/Dati/VisualGDB/Test/LinuxProject4/LinuxProject3/LinuxProject3.cpp:7
    [ 162 ms] &”No source file named C:/Users/andrea/Documents/Dati/VisualGDB/Test/LinuxProject4/LinuxProject3/LinuxProject3.cpp.\n”
    [ 162 ms] ^done,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”C:/Users/andrea/Documents/Dati/VisualGDB/Test/LinuxProject4/LinuxProject3/LinuxProject3.cpp:7″,times=”0″,original-location=”C:/Users/andrea/Documents/Dati/VisualGDB/Test/LinuxProject4/LinuxProject3/LinuxProject3.cpp:7″}
    [ 162 ms] -file-list-exec-source-files
    [ 166 ms] ^done,files=[{file=”LinuxProject4.cpp”,fullname=”C:\\Users\\andrea\\Documents\\Dati\\VisualGDB\\Test\\LinuxProject4\\LinuxProject4\\LinuxProject4.cpp”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include/wctype.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include\\wctype.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits/atomic_word.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits\\atomic_word.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include\\arm-linux-gnueabihf\\bits/types.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include\\arm-linux-gnueabihf\\bits\\types.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include/locale.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include\\locale.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\ext/numeric_traits.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\ext\\numeric_traits.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\ext/new_allocator.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\ext\\new_allocator.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits/predefined_ops.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits\\predefined_ops.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\debug/debug.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\debug\\debug.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include/time.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include\\time.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9/iosfwd”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\iosfwd”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9/cwctype”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\cwctype”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits/ios_base.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits\\ios_base.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9/clocale”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\clocale”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits/c++config.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits\\c++config.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits/char_traits.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\bits\\char_traits.h”},{file=”<built-in>”,fullname=”C:\\Users\\andrea\\Documents\\Dati\\VisualGDB\\Test\\LinuxProject4\\LinuxProject4/<built-in>”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9/cwchar”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\cwchar”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include/wchar.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include\\wchar.h”},{file=”c:\\sysgcc\\beaglebone\\lib\\gcc\\arm-linux-gnueabihf\\4.9\\include/stddef.h”,fullname=”c:\\sysgcc\\beaglebone\\lib\\gcc\\arm-linux-gnueabihf\\4.9\\include\\stddef.h”},{file=”c:\\sysgcc\\beaglebone\\lib\\gcc\\arm-linux-gnueabihf\\4.9\\include/stdarg.h”,fullname=”c:\\sysgcc\\beaglebone\\lib\\gcc\\arm-linux-gnueabihf\\4.9\\include\\stdarg.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include/stdio.h”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot\\usr\\include\\stdio.h”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9/iostream”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\iostream”},{file=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9/iostream”,fullname=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\include\\c++\\4.9\\iostream”}]
    [ 166 ms] -break-after 2 0
    [ 176 ms] ^done
    [ 180 ms] info signals
    [ 186 ms] &”info signals\n”
    [ 186 ms] ~”Signal Stop\tPrint\tPass to program\tDescription\n”
    [ 186 ms] ~”\n”
    [ 186 ms] ~”SIGHUP Yes\tYes\tYes\t\tHangup\n”
    [ 186 ms] ~”SIGINT Yes\tYes\tNo\t\tInterrupt\n”
    [ 186 ms] ~”SIGQUIT Yes\tYes\tYes\t\tQuit\n”
    [ 186 ms] ~”SIGILL Yes\tYes\tYes\t\tIllegal instruction\n”
    [ 186 ms] ~”SIGTRAP Yes\tYes\tNo\t\tTrace/breakpoint trap\n”
    [ 186 ms] ~”SIGABRT Yes\tYes\tYes\t\tAborted\n”
    [ 186 ms] ~”SIGEMT Yes\tYes\tYes\t\tEmulation trap\n”
    [ 186 ms] ~”SIGFPE Yes\tYes\tYes\t\tArithmetic exception\n”
    [ 186 ms] ~”SIGKILL Yes\tYes\tYes\t\tKilled\n”
    [ 186 ms] ~”SIGBUS Yes\tYes\tYes\t\tBus error\n”
    [ 186 ms] ~”SIGSEGV Yes\tYes\tYes\t\tSegmentation fault\n”
    [ 186 ms] ~”SIGSYS Yes\tYes\tYes\t\tBad system call\n”
    [ 186 ms] ~”SIGPIPE Yes\tYes\tYes\t\tBroken pipe\n”
    [ 186 ms] ~”SIGALRM No\tNo\tYes\t\tAlarm clock\n”
    [ 186 ms] ~”SIGTERM Yes\tYes\tYes\t\tTerminated\n”
    [ 186 ms] ~”SIGURG No\tNo\tYes\t\tUrgent I/O condition\n”
    [ 186 ms] ~”SIGSTOP Yes\tYes\tYes\t\tStopped (signal)\n”
    [ 186 ms] ~”SIGTSTP Yes\tYes\tYes\t\tStopped (user)\n”
    [ 186 ms] ~”SIGCONT Yes\tYes\tYes\t\tContinued\n”
    [ 186 ms] ~”SIGCHLD No\tNo\tYes\t\tChild status changed\n”
    [ 186 ms] ~”SIGTTIN Yes\tYes\tYes\t\tStopped (tty input)\n”
    [ 186 ms] ~”SIGTTOU Yes\tYes\tYes\t\tStopped (tty output)\n”
    [ 186 ms] ~”SIGIO No\tNo\tYes\t\tI/O possible\n”
    [ 186 ms] ~”SIGXCPU Yes\tYes\tYes\t\tCPU time limit exceeded\n”
    [ 186 ms] ~”SIGXFSZ Yes\tYes\tYes\t\tFile size limit exceeded\n”
    [ 186 ms] ~”SIGVTALRM No\tNo\tYes\t\tVirtual timer expired\n”
    [ 186 ms] ~”SIGPROF No\tNo\tYes\t\tProfiling timer expired\n”
    [ 186 ms] ~”SIGWINCH No\tNo\tYes\t\tWindow size changed\n”
    [ 186 ms] ~”SIGLOST Yes\tYes\tYes\t\tResource lost\n”
    [ 186 ms] ~”SIGUSR1 Yes\tYes\tYes\t\tUser defined signal 1\n”
    [ 186 ms] ~”SIGUSR2 Yes\tYes\tYes\t\tUser defined signal 2\n”
    [ 186 ms] ~”SIGPWR Yes\tYes\tYes\t\tPower fail/restart\n”
    [ 186 ms] ~”SIGPOLL No\tNo\tYes\t\tPollable event occurred\n”
    [ 186 ms] ~”SIGWIND Yes\tYes\tYes\t\tSIGWIND\n”
    [ 186 ms] ~”SIGPHONE Yes\tYes\tYes\t\tSIGPHONE\n”
    [ 186 ms] ~”SIGWAITING No\tNo\tYes\t\tProcess’s LWPs are blocked\n”
    [ 186 ms] ~”SIGLWP No\tNo\tYes\t\tSignal LWP\n”
    [ 186 ms] ~”SIGDANGER Yes\tYes\tYes\t\tSwap space dangerously low\n”
    [ 186 ms] ~”SIGGRANT Yes\tYes\tYes\t\tMonitor mode granted\n”
    [ 186 ms] ~”SIGRETRACT Yes\tYes\tYes\t\tNeed to relinquish monitor mode\n”
    [ 186 ms] ~”SIGMSG Yes\tYes\tYes\t\tMonitor mode data available\n”
    [ 186 ms] ~”SIGSOUND Yes\tYes\tYes\t\tSound completed\n”
    [ 186 ms] ~”SIGSAK Yes\tYes\tYes\t\tSecure attention\n”
    [ 186 ms] ~”SIGPRIO No\tNo\tYes\t\tSIGPRIO\n”
    [ 186 ms] ~”SIG33 Yes\tYes\tYes\t\tReal-time event 33\n”
    [ 186 ms] ~”SIG34 Yes\tYes\tYes\t\tReal-time event 34\n”
    [ 187 ms] ~”SIG35 Yes\tYes\tYes\t\tReal-time event 35\n”
    [ 187 ms] ~”SIG36 Yes\tYes\tYes\t\tReal-time event 36\n”
    [ 187 ms] ~”SIG37 Yes\tYes\tYes\t\tReal-time event 37\n”
    [ 187 ms] ~”SIG38 Yes\tYes\tYes\t\tReal-time event 38\n”
    [ 187 ms] ~”SIG39 Yes\tYes\tYes\t\tReal-time event 39\n”
    [ 187 ms] ~”SIG40 Yes\tYes\tYes\t\tReal-time event 40\n”
    [ 187 ms] ~”SIG41 Yes\tYes\tYes\t\tReal-time event 41\n”
    [ 187 ms] ~”SIG42 Yes\tYes\tYes\t\tReal-time event 42\n”
    [ 187 ms] ~”SIG43 Yes\tYes\tYes\t\tReal-time event 43\n”
    [ 187 ms] ~”SIG44 Yes\tYes\tYes\t\tReal-time event 44\n”
    [ 187 ms] ~”SIG45 Yes\tYes\tYes\t\tReal-time event 45\n”
    [ 187 ms] ~”SIG46 Yes\tYes\tYes\t\tReal-time event 46\n”
    [ 187 ms] ~”SIG47 Yes\tYes\tYes\t\tReal-time event 47\n”
    [ 187 ms] ~”SIG48 Yes\tYes\tYes\t\tReal-time event 48\n”
    [ 187 ms] ~”SIG49 Yes\tYes\tYes\t\tReal-time event 49\n”
    [ 187 ms] ~”SIG50 Yes\tYes\tYes\t\tReal-time event 50\n”
    [ 187 ms] ~”SIG51 Yes\tYes\tYes\t\tReal-time event 51\n”
    [ 187 ms] ~”SIG52 Yes\tYes\tYes\t\tReal-time event 52\n”
    [ 187 ms] ~”SIG53 Yes\tYes\tYes\t\tReal-time event 53\n”
    [ 187 ms] ~”SIG54 Yes\tYes\tYes\t\tReal-time event 54\n”
    [ 187 ms] ~”SIG55 Yes\tYes\tYes\t\tReal-time event 55\n”
    [ 187 ms] ~”SIG56 Yes\tYes\tYes\t\tReal-time event 56\n”
    [ 187 ms] ~”SIG57 Yes\tYes\tYes\t\tReal-time event 57\n”
    [ 187 ms] ~”SIG58 Yes\tYes\tYes\t\tReal-time event 58\n”
    [ 187 ms] ~”SIG59 Yes\tYes\tYes\t\tReal-time event 59\n”
    [ 187 ms] ~”SIG60 Yes\tYes\tYes\t\tReal-time event 60\n”
    [ 187 ms] ~”SIG61 Yes\tYes\tYes\t\tReal-time event 61\n”
    [ 187 ms] ~”SIG62 Yes\tYes\tYes\t\tReal-time event 62\n”
    [ 187 ms] ~”SIG63 Yes\tYes\tYes\t\tReal-time event 63\n”
    [ 187 ms] ~”SIGCANCEL No\tNo\tYes\t\tLWP internal signal\n”
    [ 187 ms] ~”SIG32 Yes\tYes\tYes\t\tReal-time event 32\n”
    [ 187 ms] ~”SIG64 Yes\tYes\tYes\t\tReal-time event 64\n”
    [ 187 ms] ~”SIG65 Yes\tYes\tYes\t\tReal-time event 65\n”
    [ 187 ms] ~”SIG66 Yes\tYes\tYes\t\tReal-time event 66\n”
    [ 187 ms] ~”SIG67 Yes\tYes\tYes\t\tReal-time event 67\n”
    [ 187 ms] ~”SIG68 Yes\tYes\tYes\t\tReal-time event 68\n”
    [ 187 ms] ~”SIG69 Yes\tYes\tYes\t\tReal-time event 69\n”
    [ 187 ms] ~”SIG70 Yes\tYes\tYes\t\tReal-time event 70\n”
    [ 187 ms] ~”SIG71 Yes\tYes\tYes\t\tReal-time event 71\n”
    [ 187 ms] ~”SIG72 Yes\tYes\tYes\t\tReal-time event 72\n”
    [ 187 ms] ~”SIG73 Yes\tYes\tYes\t\tReal-time event 73\n”
    [ 187 ms] ~”SIG74 Yes\tYes\tYes\t\tReal-time event 74\n”
    [ 187 ms] ~”SIG75 Yes\tYes\tYes\t\tReal-time event 75\n”
    [ 187 ms] ~”SIG76 Yes\tYes\tYes\t\tReal-time event 76\n”
    [ 187 ms] ~”SIG77 Yes\tYes\tYes\t\tReal-time event 77\n”
    [ 187 ms] ~”SIG78 Yes\tYes\tYes\t\tReal-time event 78\n”
    [ 187 ms] ~”SIG79 Yes\tYes\tYes\t\tReal-time event 79\n”
    [ 187 ms] ~”SIG80 Yes\tYes\tYes\t\tReal-time event 80\n”
    [ 187 ms] ~”SIG81 Yes\tYes\tYes\t\tReal-time event 81\n”
    [ 187 ms] ~”SIG82 Yes\tYes\tYes\t\tReal-time event 82\n”
    [ 187 ms] ~”SIG83 Yes\tYes\tYes\t\tReal-time event 83\n”
    [ 187 ms] ~”SIG84 Yes\tYes\tYes\t\tReal-time event 84\n”
    [ 187 ms] ~”SIG85 Yes\tYes\tYes\t\tReal-time event 85\n”
    [ 187 ms] ~”SIG86 Yes\tYes\tYes\t\tReal-time event 86\n”
    [ 187 ms] ~”SIG87 Yes\tYes\tYes\t\tReal-time event 87\n”
    [ 187 ms] ~”SIG88 Yes\tYes\tYes\t\tReal-time event 88\n”
    [ 188 ms] ~”SIG89 Yes\tYes\tYes\t\tReal-time event 89\n”
    [ 188 ms] ~”SIG90 Yes\tYes\tYes\t\tReal-time event 90\n”
    [ 188 ms] ~”SIG91 Yes\tYes\tYes\t\tReal-time event 91\n”
    [ 188 ms] ~”SIG92 Yes\tYes\tYes\t\tReal-time event 92\n”
    [ 188 ms] ~”SIG93 Yes\tYes\tYes\t\tReal-time event 93\n”
    [ 188 ms] ~”SIG94 Yes\tYes\tYes\t\tReal-time event 94\n”
    [ 188 ms] ~”SIG95 Yes\tYes\tYes\t\tReal-time event 95\n”
    [ 188 ms] ~”SIG96 Yes\tYes\tYes\t\tReal-time event 96\n”
    [ 188 ms] ~”SIG97 Yes\tYes\tYes\t\tReal-time event 97\n”
    [ 188 ms] ~”SIG98 Yes\tYes\tYes\t\tReal-time event 98\n”
    [ 188 ms] ~”SIG99 Yes\tYes\tYes\t\tReal-time event 99\n”
    [ 188 ms] ~”SIG100 Yes\tYes\tYes\t\tReal-time event 100\n”
    [ 188 ms] ~”SIG101 Yes\tYes\tYes\t\tReal-time event 101\n”
    [ 188 ms] ~”SIG102 Yes\tYes\tYes\t\tReal-time event 102\n”
    [ 188 ms] ~”SIG103 Yes\tYes\tYes\t\tReal-time event 103\n”
    [ 188 ms] ~”SIG104 Yes\tYes\tYes\t\tReal-time event 104\n”
    [ 188 ms] ~”SIG105 Yes\tYes\tYes\t\tReal-time event 105\n”
    [ 188 ms] ~”SIG106 Yes\tYes\tYes\t\tReal-time event 106\n”
    [ 188 ms] ~”SIG107 Yes\tYes\tYes\t\tReal-time event 107\n”
    [ 188 ms] ~”SIG108 Yes\tYes\tYes\t\tReal-time event 108\n”
    [ 188 ms] ~”SIG109 Yes\tYes\tYes\t\tReal-time event 109\n”
    [ 188 ms] ~”SIG110 Yes\tYes\tYes\t\tReal-time event 110\n”
    [ 188 ms] ~”SIG111 Yes\tYes\tYes\t\tReal-time event 111\n”
    [ 188 ms] ~”SIG112 Yes\tYes\tYes\t\tReal-time event 112\n”
    [ 188 ms] ~”SIG113 Yes\tYes\tYes\t\tReal-time event 113\n”
    [ 188 ms] ~”SIG114 Yes\tYes\tYes\t\tReal-time event 114\n”
    [ 188 ms] ~”SIG115 Yes\tYes\tYes\t\tReal-time event 115\n”
    [ 188 ms] ~”SIG116 Yes\tYes\tYes\t\tReal-time event 116\n”
    [ 188 ms] ~”SIG117 Yes\tYes\tYes\t\tReal-time event 117\n”
    [ 188 ms] ~”SIG118 Yes\tYes\tYes\t\tReal-time event 118\n”
    [ 188 ms] ~”SIG119 Yes\tYes\tYes\t\tReal-time event 119\n”
    [ 188 ms] ~”SIG120 Yes\tYes\tYes\t\tReal-time event 120\n”
    [ 188 ms] ~”SIG121 Yes\tYes\tYes\t\tReal-time event 121\n”
    [ 188 ms] ~”SIG122 Yes\tYes\tYes\t\tReal-time event 122\n”
    [ 188 ms] ~”SIG123 Yes\tYes\tYes\t\tReal-time event 123\n”
    [ 188 ms] ~”SIG124 Yes\tYes\tYes\t\tReal-time event 124\n”
    [ 188 ms] ~”SIG125 Yes\tYes\tYes\t\tReal-time event 125\n”
    [ 188 ms] ~”SIG126 Yes\tYes\tYes\t\tReal-time event 126\n”
    [ 188 ms] ~”SIG127 Yes\tYes\tYes\t\tReal-time event 127\n”
    [ 188 ms] ~”SIGINFO Yes\tYes\tYes\t\tInformation request\n”
    [ 188 ms] ~”EXC_BAD_ACCESS Yes\tYes\tYes\t\tCould not access memory\n”
    [ 188 ms] ~”EXC_BAD_INSTRUCTION Yes\tYes\tYes\t\tIllegal instruction/operand\n”
    [ 188 ms] ~”EXC_ARITHMETIC Yes\tYes\tYes\t\tArithmetic exception\n”
    [ 188 ms] ~”EXC_EMULATION Yes\tYes\tYes\t\tEmulation instruction\n”
    [ 188 ms] ~”EXC_SOFTWARE Yes\tYes\tYes\t\tSoftware generated exception\n”
    [ 188 ms] ~”EXC_BREAKPOINT Yes\tYes\tYes\t\tBreakpoint\n”
    [ 188 ms] ~”32 Yes\tYes\tYes\t\tLinuxThreads restart signal\n”
    [ 188 ms] ~”33 Yes\tYes\tYes\t\tLinuxThreads cancel signal\n”
    [ 188 ms] ~”34 Yes\tYes\tYes\t\tLinuxThreads debug signal\n”
    [ 188 ms] ~”\nUse the \”handle\” command to change these tables.\n”
    [ 188 ms] ^done
    [ 189 ms] -exec-continue
    [ 205 ms] ^running
    [ 205 ms] *running,thread-id=”all”
    [ 225 ms] *stopped,reason=”signal-received”,signal-name=”SIGSEGV”,signal-meaning=”Segmentation fault”,frame={addr=”0xb6fd9822″,func=”??”,args=[],from=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3″},thread-id=”1″,stopped-threads=”all”,core=”0″
    [ 226 ms] -stack-list-frames –thread 1
    [ 254 ms] ^done,stack=[frame={level=”0″,addr=”0xb6fd9822″,func=”??”,from=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3″},frame={level=”1″,addr=”0xb6fd983a”,func=”??”,from=”c:\\sysgcc\\beaglebone\\arm-linux-gnueabihf\\sysroot/lib/ld-linux-armhf.so.3″}]
    [ 255 ms] -stack-list-arguments –thread 1 0
    [ 264 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]}]
    [ 267 ms] -data-evaluate-expression “sizeof(void *)”
    [ 274 ms] ^done,value=”4″
    [ 274 ms] -data-evaluate-expression “sizeof(int)”
    [ 284 ms] ^done,value=”4″
    [ 284 ms] -data-evaluate-expression “sizeof(short)”
    [ 284 ms] ^done,value=”2″
    [ 284 ms] -data-evaluate-expression “sizeof(long)”
    [ 284 ms] ^done,value=”4″
    [ 285 ms] -data-evaluate-expression “sizeof(long long)”
    [ 285 ms] ^done,value=”8″
    [ 285 ms] -data-evaluate-expression “sizeof(char)”
    [ 285 ms] ^done,value=”1″
    [ 285 ms] -data-evaluate-expression “sizeof(wchar_t)”
    [ 285 ms] ^done,value=”4″
    [ 286 ms] -data-evaluate-expression “sizeof(float)”
    [ 286 ms] ^done,value=”4″
    [ 286 ms] -data-evaluate-expression “sizeof(double)”
    [ 286 ms] ^done,value=”8″
    [ 286 ms] -data-evaluate-expression “sizeof(long double)”
    [ 286 ms] ^done,value=”8″
    [ 1502 ms] -gdb-exit
    [ 1503 ms] ^exit
    [ 1503 ms] =thread-group-exited,id=”i1″

    The problem seems to be related to the message: [ 116 ms] “Cannot access memory at address 0x0\n”

    if i run gdb server manually and connect using the mingw gdb from my windows machine i get the same message.

    Thank you for your help.

    Regards

    Andrea

     

    #11294
    support
    Keymaster

    Hi,

    If your sysroot contains different versions of system libraries than the toolchain does, the compiled code may not work on the device. Please use the system image listed under “compatible image” for the toolchain you are using here: http://gnutoolchains.com/beaglebone/

    #11295
    themeroving
    Participant

    Hi,

    Sadly i need to use a customized image for my application. I set up an ubuntu image with only xorg e openbox. I also tried importing the whole sysroot from the system, but with no results.

    Just a hint. Im able to debug the application using the quick debug option in VisualGDB. What’s the difference if there is any difference ?

    #11296
    themeroving
    Participant

    Another thing. If i simpy run the app on the device or use the gdb that is located in the device everything is ok.

    #11305
    support
    Keymaster

    Hi,

    When using quick debug, are you running gdb on the device? If yes, this could be a compatibility issue between the gdb and gdbserver. Please try using gdbserver from the original Beaglebone image or building a cross-gdb for Windows based on the same sources that were used to build gdbserver in your image.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.