Prebuilt gdbserver is throwing a segfault.


Last Updated:

  1. Shiny

    Shiny New Member This Topic's Starter

    Joined:
    Jul 23, 2010
    Messages:
    1
    Likes Received:
    0
    Hi,

    I want to debug my Graphics application on zoom2 Android, so I setting up gdbserver and gdbclient. But when I am running gdbserver on device it gives segfault it self.(Attach below a stacktrace, might it helpfull)

    I doubted that It is due to mismatch of libs with it is built and libs on my machine.

    So, I am trying to build gdbserver for Android using android arm compiler and using native android static glibc library.(All static library libgcc.a libc.a libcutils.a libc_common.a) from $(ANDROID_ROOT)/out/target/product/zoom2/obj/STATIC_LIBRARIES/ location.

    But gives compile time error -

    /home/shiny/Android_Zoom2/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc -L/home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/STATIC_LIBRARIES/libcutils_intermediates/ -L/home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/STATIC_LIBRARIES/libcutils_intermediates -T/home/shiny/Android_Zoom2/android/build/core/armelf.x -nostdlib -Wl,-static -Wl,-z,nocopyreloc -Wl,--no-undefined /home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/lib/crtbegin_static.o /home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/lib/crtend_android.o /home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/STATIC_LIBRARIES/libc_intermediates/libc.a /home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutils.a /home/shiny/Android_Zoom2/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/libgcc.a /home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a /home/shiny/Android_Zoom2/android/development/ndk/build/platforms/android-5/arch-arm/usr/lib/libc.a -o gdbserver inferiors.o regcache.o remote-utils.o server.o signals.o target.o utils.o mem-break.o reg-arm.o linux-low.o linux-arm-low.o thread-db.o proc-service.o \

    /home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/STATIC_LIBRARIES/libthread_db_intermediates/libthread_db.a

    remote-utils.o: In function `prepare_resume_reply':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:697: undefined reference to `sprintf'

    remote-utils.o: In function `readchar':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:450: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:452: undefined reference to `perror'

    remote-utils.o: In function `getpkt':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:525: undefined reference to `fwrite'

    remote-utils.o: In function `signal':

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    remote-utils.o: In function `input_interrupt':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:368: undefined reference to `select'

    remote-utils.o: In function `putpkt':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:334: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:315: undefined reference to `perror'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:336: undefined reference to `perror'

    remote-utils.o: In function `look_up_one_symbol':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:781: undefined reference to `strncmp'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:806: undefined reference to `strdup'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:786: undefined reference to `fwrite'

    remote-utils.o: In function `remote_open':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:136: undefined reference to `socket'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:142: undefined reference to `setsockopt'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:150: undefined reference to `bind'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:156: undefined reference to `accept'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:162: undefined reference to `setsockopt'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:167: undefined reference to `setsockopt'

    remote-utils.o: In function `signal':

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    remote-utils.o: In function `remote_open':

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:176: undefined reference to `inet_ntoa'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:181: undefined reference to `fcntl'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:182: undefined reference to `fcntl'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:184: undefined reference to `fcntl'

    /home/shiny/gdb-6.4/gdb/gdbserver/remote-utils.c:150: undefined reference to `listen'

    server.o: In function `signal':

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    server.o: In function `signal':

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:59: undefined reference to `bsd_signal'

    server.o: In function `start_inferior':

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:59: undefined reference to `fileno'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:59: undefined reference to `tcsetpgrp'

    server.o: In function `handle_v_cont':

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:221: undefined reference to `strtoul'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:196: undefined reference to `strtol'

    server.o: In function `handle_v_requests':

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:268: undefined reference to `strncmp'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:274: undefined reference to `strncmp'

    server.o: In function `handle_query':

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:127: undefined reference to `strncmp'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:115: undefined reference to `sprintf'

    server.o: In function `main':

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:334: undefined reference to `setjmp'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:389: undefined reference to `setjmp'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:347: undefined reference to `strtoul'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:336: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:676: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:679: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:565: undefined reference to `strtoul'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:566: undefined reference to `strtol'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:592: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:535: undefined reference to `strtoul'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:536: undefined reference to `strtol'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:616: undefined reference to `strtoul'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:404: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:417: undefined reference to `waitpid'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:447: undefined reference to `strtoul'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:708: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/server.c:688: undefined reference to `fwrite'

    utils.o: In function `warning':

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:92: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:94: undefined reference to `fputc'

    utils.o: In function `fatal':

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:79: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:81: undefined reference to `fputc'

    utils.o: In function `error':

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:65: undefined reference to `fputc'

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:66: undefined reference to `longjmp'

    utils.o: In function `perror_with_name':

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:41: undefined reference to `strerror'

    /home/shiny/gdb-6.4/gdb/gdbserver/utils.c:48: undefined reference to `strcat'

    linux-low.o: In function `linux_read_auxv':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:1481: undefined reference to `snprintf'

    linux-low.o: In function `check_removed_breakpoint':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:314: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:301: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:325: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:331: undefined reference to `fwrite'

    linux-low.o: In function `linux_resume_one_process':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:897: undefined reference to `fwrite'

    linux-low.o:/home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:886: more undefined references to `fwrite' follow

    linux-low.o: In function `linux_wait_for_process':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:392: undefined reference to `waitpid'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:402: undefined reference to `usleep'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:382: undefined reference to `waitpid'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:392: undefined reference to `waitpid'

    linux-low.o: In function `linux_wait_for_event':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:575: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:565: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:522: undefined reference to `fwrite'

    linux-low.o: In function `wait_for_sigstop':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:816: undefined reference to `fwrite'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:805: undefined reference to `fwrite'

    linux-low.o:/home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:1063: more undefined references to `fwrite' follow

    linux-low.o: In function `linux_init_signals':

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    linux-low.o: In function `linux_create_inferior':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:142: undefined reference to `fork'

    linux-low.o: In function `signal':

    /home/shiny/Android_Zoom2/android/bionic/libc/include/signal.h:105: undefined reference to `bsd_signal'

    linux-low.o: In function `linux_create_inferior':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:152: undefined reference to `setpgid'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:154: undefined reference to `execv'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:156: undefined reference to `strerror'

    linux-low.o: In function `linux_attach_lwp':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:177: undefined reference to `strerror'

    linux-low.o: In function `usr_store_inferior_registers':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:1191: undefined reference to `strerror'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:1193: undefined reference to `sprintf'

    linux-low.o: In function `fetch_register':

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:1122: undefined reference to `strerror'

    /home/shiny/gdb-6.4/gdb/gdbserver/linux-low.c:1124: undefined reference to `sprintf'

    thread-db.o: In function `thread_db_err_str':

    /home/shiny/gdb-6.4/gdb/gdbserver/thread-db.c:113: undefined reference to `snprintf'

    thread-db.o: In function `thread_db_create_event':

    /home/shiny/gdb-6.4/gdb/gdbserver/thread-db.c:153: undefined reference to `fwrite'

    /home/shiny/Android_Zoom2/android/out/target/product/zoom2/obj/STATIC_LIBRARIES/libthread_db_intermediates/libthread_db.a(libthread_db.o): In function `td_ta_thr_iter':

    /home/shiny/Android_Zoom2/android/bionic/libthread_db/libthread_db.c:161: undefined reference to `snprintf'

    /home/shiny/Android_Zoom2/android/bionic/libthread_db/libthread_db.c:162: undefined reference to `opendir'

    /home/shiny/Android_Zoom2/android/bionic/libthread_db/libthread_db.c:168: undefined reference to `readdir'

    /home/shiny/Android_Zoom2/android/bionic/libthread_db/libthread_db.c:179: undefined reference to `closedir'

    collect2: ld returned 1 exit status

    make: *** [gdbserver] Error 1


    Stack trace -
    execve("/home/shiny/android-sdk-linux_86/tools/adb", ["adb", "shell", "gdbserver", ":5037"], ["GPG_AGENT_INFO=/tmp/seahorse-EXn"..., "TERM=xterm", "DESKTOP_STARTUP_ID=", "SHELL=/bin/bash", "XDG_SESSION_COOKIE=829c497660d23"..., "GTK_RC_FILES=/etc/gtk/gtkrc:/hom"..., "CVSROOT=:pserver:pat@cvsserver.k"..., "WINDOWID=48234588", "OLDPWD=/home/shiny", "USER=root", "LS_COLORS=no=00:fi=00:di=01;34:l"..., "GNOME_KEYRING_SOCKET=/tmp/keyrin"..., "SSH_AUTH_SOCK=/tmp/keyring-8Ztju"..., "USERNAME=shiny", "SESSION_MANAGER=local/shiny-desk"..., "MAIL=/var/mail/root", "DESKTOP_SESSION=default", "PATH=/usr/local/sbin:/usr/local/"..., "DISCIMAGE=/home/shiny/Android_Zo"..., "GDM_XSERVER_LOCATION=local", "PWD=/home/shiny/Android_Zoom2", "GNOME_KEYRING_PID=5739", "LANG=en_US.UTF-8", "GDM_LANG=en_US.UTF-8", "ADBHOST=192.168.7.145", "GDMSESSION=default", "HISTCONTROL=ignoreboth", "TOOLCHAIN=/home/shiny/Android_Zo"..., "HOME=/root", "SHLVL=2", "ANDROID_ROOT=/home/shiny/Android"..., "GNOME_DESKTOP_SESSION_ID=Default"..., "LOGNAME=root", "DBUS_SESSION_BUS_ADDRESS=unix:ab"..., "XDG_DATA_DIRS=/usr/local/share/:"..., "LESSOPEN=| /usr/bin/lesspipe %s", "WINDOWPATH=7", "CROSS_COMPILE=arm-eabi-", "DISPLAY=:0.0", "KERNELDIR=/home/shiny/Android_Zo"..., "LESSCLOSE=/usr/bin/lesspipe %s %"..., "XAUTHORITY=/tmp/.gdm52RFGV", "COLORTERM=gnome-terminal", "_=/usr/bin/strace"]) = 0
    brk(0) = 0x8077000
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f22000
    readlink("/proc/self/exe", "/home/shiny/android-sdk-linux_86/tools/adb", 4096) = 42
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686/sse2/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686/sse2/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686/sse2/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686/sse2", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls/i686", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/sse2/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls/sse2/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/sse2/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls/sse2", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/tls/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/tls", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/i686/sse2/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/i686/sse2/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/i686/sse2/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/i686/sse2", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/i686/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/i686/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/i686/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/i686", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/sse2/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/sse2/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/sse2/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/sse2", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib/cmov", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/home/shiny/android-sdk-linux_86/tools/../lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/home/shiny/android-sdk-linux_86/tools/../lib", 0xbfb3b65c) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_dev=makedev(8, 1), st_ino=6998966, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=120, st_size=54589, st_atime=2010/07/20-16:17:01, st_mtime=2010/07/15-15:17:37, st_ctime=2010/07/15-15:17:37}) = 0
    mmap2(NULL, 54589, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f14000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/librt.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\31"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=376935, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=64, st_size=30624, st_atime=2010/07/21-07:30:01, st_mtime=2010/05/21-19:13:12, st_ctime=2010/06/22-08:55:55}) = 0
    mmap2(NULL, 33360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f0b000
    mmap2(0xb7f12000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7f12000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/libncurses.so.5", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\220"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=360528, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=384, st_size=190584, st_atime=2010/07/21-07:30:02, st_mtime=2008/02/23-23:38:14, st_ctime=2010/06/21-14:09:33}) = 0
    mmap2(NULL, 194420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7edb000
    mmap2(0xb7f08000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c) = 0xb7f08000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20H\0\000"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=376928, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=232, st_size=112354, st_atime=2010/07/21-07:30:01, st_mtime=2010/05/21-19:13:13, st_ctime=2010/06/22-08:55:55}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eda000
    mmap2(NULL, 94688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ec2000
    mmap2(0xb7ed6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7ed6000
    mmap2(0xb7ed8000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ed8000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`*\4\000"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=4688231, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=1904, st_size=970680, st_atime=2010/07/21-07:35:02, st_mtime=2009/02/19-10:42:29, st_ctime=2010/06/21-14:10:25}) = 0
    mmap2(NULL, 993036, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dcf000
    mmap2(0xb7eb7000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe8) = 0xb7eb7000
    mmap2(0xb7ebc000, 22284, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ebc000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/libm.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@4\0\000"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=376886, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=304, st_size=149328, st_atime=2010/07/21-07:35:02, st_mtime=2010/05/21-19:13:12, st_ctime=2010/06/22-08:55:55}) = 0
    mmap2(NULL, 147584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7daa000
    mmap2(0xb7dcd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb7dcd000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/libgcc_s.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\31\0\000"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=360512, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=88, st_size=42700, st_atime=2010/07/21-07:35:02, st_mtime=2009/02/19-10:39:17, st_ctime=2010/06/21-14:09:33}) = 0
    mmap2(NULL, 41700, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d9f000
    mmap2(0xb7da9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0xb7da9000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=376859, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2680, st_size=1364388, st_atime=2010/07/21-09:17:01, st_mtime=2010/05/21-19:13:12, st_ctime=2010/06/22-08:55:55}) = 0
    mmap2(NULL, 1369712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c50000
    mmap2(0xb7d99000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149) = 0xb7d99000
    mmap2(0xb7d9c000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d9c000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\n\0\000"..., 512) = 512
    fstat64(3, {st_dev=makedev(8, 1), st_ino=376883, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=24, st_size=9684, st_atime=2010/07/21-07:30:01, st_mtime=2010/05/21-19:13:12, st_ctime=2010/06/22-08:55:55}) = 0
    mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c4c000
    mmap2(0xb7c4e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7c4e000
    close(3) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c4b000
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c4a000
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb7c4a6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    mprotect(0xb7d99000, 4096, PROT_READ) = 0
    mprotect(0xb7eb7000, 12288, PROT_READ) = 0
    munmap(0xb7f14000, 54589) = 0
    set_tid_address(0xb7c4a708) = 6279
    set_robust_list(0xb7c4a710, 0xc) = 0
    futex(0xbfb3bf10, 0x81 /* FUTEX_??? */, 1) = 0
    rt_sigaction(SIGRTMIN, {0xb7ec62c0, [], SA_SIGINFO}, NULL, 8) = 0
    rt_sigaction(SIGRT_1, {0xb7ec6340, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
    getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
    uname({sysname="Linux", nodename="shiny-desktop", release="2.6.24-26-generic", version="#1 SMP Tue Dec 1 18:37:31 UTC 2009", machine="i686"}) = 0
    socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
    connect(3, {sa_family=AF_INET, sin_port=htons(5037), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
    write(3, "000c", 4) = 4
    write(3, "host:version", 12) = 12
    read(3, "OKAY", 4) = 4
    read(3, "0004", 4) = 4
    read(3, "001a", 4) = 4
    close(3) = 0
    socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
    connect(3, {sa_family=AF_INET, sin_port=htons(5037), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
    write(3, "0012", 4) = 4
    write(3, "host:transport-any", 18) = 18
    read(3, "OKAY", 4) = 4
    write(3, "0015", 4) = 4
    write(3, "shell:gdbserver :5037", 21) = 21
    read(3, "OKAY", 4) = 4
    read(3, "[1] Segmentation fault gd"..., 4096) = 47
    fstat64(1, {st_dev=makedev(0, 11), st_ino=2, st_mode=S_IFCHR|0620, st_nlink=1, st_uid=1000, st_gid=5, st_blksize=1024, st_blocks=0, st_rdev=makedev(136, 0), st_atime=2010/07/21-11:26:07, st_mtime=2010/07/21-11:26:07, st_ctime=2010/07/21-11:07:18}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f21000
    write(1, "[1] Segmentation fault gd"..., 47) = 47
    read(3, "", 4096) = 0
    close(3) = 0
    exit_group(0) = ?



    I just frustrated with this, So would be very thankful if you could help me about this.

    Thanks.
     

    Advertisement

Share This Page

Loading...