ssh -X uzak bağlantı sorunu

Başlatan zeusmaster, 06 Haziran 2012 - 15:39:27

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

zeusmaster

Yazılmış bir betiği uzaktan çalıştırmak istediğim zaman aldığım hata;
workstation@workstation:~$ coklucalis
*** glibc detected *** yad: malloc(): memory corruption: 0x0000000001f2fd30 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7a6e6)[0x7fda435306e6]
/lib/x86_64-linux-gnu/libc.so.6(+0x7c248)[0x7fda43532248]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x6d)[0x7fda435343cd]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_malloc+0x23)[0x7fda43abf683]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_strndup+0x29)[0x7fda43ad5ef9]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_ascii_strdown+0x1b)[0x7fda43ad70eb]
/usr/lib/libgdk-3.so.0(+0x3dbdf)[0x7fda4492cbdf]
/usr/lib/libgdk-3.so.0(+0x3dd11)[0x7fda4492cd11]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_newv+0x883)[0x7fda43d7f483]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_new_valist+0x1d6)[0x7fda43d7fd66]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_new+0xd4)[0x7fda43d80074]
/usr/lib/libgdk-3.so.0(+0x3c462)[0x7fda4492b462]
/usr/lib/libgdk-3.so.0(+0x40943)[0x7fda4492f943]
/usr/lib/libgdk-3.so.0(+0x3edf0)[0x7fda4492ddf0]
/usr/lib/libgtk-3.so.0(gtk_init_check+0x14)[0x7fda44cbcda4]
/usr/lib/libgtk-3.so.0(gtk_init+0x9)[0x7fda44cbcdc9]
yad[0x40c00d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fda434d730d]
yad[0x40c449]
======= Memory map: ========
00400000-0041f000 r-xp 00000000 08:05 29362996                           /usr/bin/yad
0061f000-00620000 r--p 0001f000 08:05 29362996                           /usr/bin/yad
00620000-00624000 rw-p 00020000 08:05 29362996                           /usr/bin/yad
01edb000-01f3e000 rw-p 00000000 00:00 0                                  [heap]
7fda38000000-7fda38021000 rw-p 00000000 00:00 0
7fda38021000-7fda3c000000 ---p 00000000 00:00 0
7fda3d60b000-7fda3d620000 r-xp 00000000 08:05 14290588                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fda3d620000-7fda3d81f000 ---p 00015000 08:05 14290588                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fda3d81f000-7fda3d820000 r--p 00014000 08:05 14290588                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fda3d820000-7fda3d821000 rw-p 00015000 08:05 14290588                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fda3d821000-7fda3d82f000 r-xp 00000000 08:05 29363450                   /usr/lib/liboverlay-scrollbar3-0.2.so.0.0.11
7fda3d82f000-7fda3da2e000 ---p 0000e000 08:05 29363450                   /usr/lib/liboverlay-scrollbar3-0.2.so.0.0.11
7fda3da2e000-7fda3da2f000 r--p 0000d000 08:05 29363450                   /usr/lib/liboverlay-scrollbar3-0.2.so.0.0.11
7fda3da2f000-7fda3da30000 rw-p 0000e000 08:05 29363450                   /usr/lib/liboverlay-scrollbar3-0.2.so.0.0.11
7fda3da30000-7fda3da3c000 r-xp 00000000 08:05 14287000                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fda3da3c000-7fda3dc3b000 ---p 0000c000 08:05 14287000                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fda3dc3b000-7fda3dc3c000 r--p 0000b000 08:05 14287000                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fda3dc3c000-7fda3dc3d000 rw-p 0000c000 08:05 14287000                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fda3dc3d000-7fda3dc47000 r-xp 00000000 08:05 14287002                   /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fda3dc47000-7fda3de47000 ---p 0000a000 08:05 14287002                   /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fda3de47000-7fda3de48000 r--p 0000a000 08:05 14287002                   /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fda3de48000-7fda3de49000 rw-p 0000b000 08:05 14287002                   /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fda3de49000-7fda3de60000 r-xp 00000000 08:05 14286997                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fda3de60000-7fda3e05f000 ---p 00017000 08:05 14286997                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fda3e05f000-7fda3e060000 r--p 00016000 08:05 14286997                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fda3e060000-7fda3e061000 rw-p 00017000 08:05 14286997                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fda3e061000-7fda3e063000 rw-p 00000000 00:00 0
7fda3e063000-7fda3e06b000 r-xp 00000000 08:05 14286998                   /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fda3e06b000-7fda3e26a000 ---p 00008000 08:05 14286998                   /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fda3e26a000-7fda3e26b000 r--p 00007000 08:05 14286998                   /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fda3e26b000-7fda3e26c000 rw-p 00008000 08:05 14286998                   /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fda3e26c000-7fda3eaa3000 r--p 00000000 08:05 29366335                   /usr/lib/locale/locale-archive
7fda3eaa3000-7fda3eaa8000 r-xp 00000000 08:05 29367279                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fda3eaa8000-7fda3eca7000 ---p 00005000 08:05 29367279                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fda3eca7000-7fda3eca8000 r--p 00004000 08:05 29367279                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fda3eca8000-7fda3eca9000 rw-p 00005000 08:05 29367279                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fda3eca9000-7fda3ecab000 r-xp 00000000 08:05 29367271                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fda3ecab000-7fda3eeaa000 ---p 00002000 08:05 29367271                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fda3eeaa000-7fda3eeab000 r--p 00001000 08:05 29367271                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fda3eeab000-7fda3eeac000 rw-p 00002000 08:05 29367271                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fda3eeac000-7fda3eed3000 r-xp 00000000 08:05 14290583                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fda3eed3000-7fda3f0d3000 ---p 00027000 08:05 14290583                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fda3f0d3000-7fda3f0d5000 r--p 00027000 08:05 14290583                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fda3f0d5000-7fda3f0d6000 rw-p 00029000 08:05 14290583                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fda3f0d6000-7fda3f0ed000 r-xp 00000000 08:05 14287006                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fda3f0ed000-7fda3f2ed000 ---p 00017000 08:05 14287006                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fda3f2ed000-7fda3f2ee000 r--p 00017000 08:05 14287006                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fda3f2ee000-7fda3f2ef000 rw-p 00018000 08:05 14287006                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fda3f2ef000-7fda3f2f1000 rw-p 00000000 00:00 0
7fda3f2f1000-7fda3f30d000 r-xp 00000000 08:05 14290633                   /lib/x86_64-linux-gnu/libselinux.so.1
7fda3f30d000-7fda3f50c000 ---p 0001c000 08:05 14290633                   /lib/x86_64-linux-gnu/libselinux.so.1
7fda3f50c000-7fda3f50d000 r--p 0001b000 08:05 14290633                   /lib/x86_64-linux
Up and Running...

if

@bahdem, betiğini içeriğini görme şansımız var mı?

zeusmaster

@if,tabi ki :)
#!/bin/bash

SEC=`yad --form --title 'Klasör Yapıcı' \
--field='Ana dizin adı:' \
--field='Ana dizin konumu:DIR' \
--field='Başlangıç değeri:' \
--field='Bitiş değeri:' \
--field='Artış miktarı:' \
--field='inp dosyası:FL' \
--button='gtk-execute:0' --button='gtk-quit:1' \
--fixed --sticky --mouse`

case $? in
  0)
    IFS="|"
    sec_listesi=()

    for i in ${SEC}
    do
      sec_listesi+=("$i")
    done
    unset IFS

    [[ ! -r "${sec_listesi[5]}" ]] && { printf "CSV dosyası okunabilir değil\n"; exit 1; }

    ana_dizin="${sec_listesi[1]}/${sec_listesi[0]}"
    mkdir -p "${ana_dizin}" || { printf "Ana dizin oluştururken hata\n"; exit 1; }
    cd "${ana_dizin}"
    deger="${sec_listesi[2]}"

    while true
    do
      if [ $(echo "$deger > ${sec_listesi[3]}" | bc) -eq 1 ]; then break; fi
      mkdir "${deger}"; cp "${sec_listesi[5]}" "${ana_dizin}/${deger}"
      sed -i "/%StaticMagneticField/,/%/ s/\(P_c\).*/\1\*$deger/" \
      "${deger}/$(basename "${sec_listesi[5]}")"
      deger="$(echo "$deger ${sec_listesi[4]}" | gawk '{print($1+$2)}')"
    done
    cd - &>/dev/null
    ;;
esac

Betiğin olduğu makinede çalışırken bir sorun yok. Sadece uzaktan o makineye ssh -X ile bağlandığımda çalışmıyor.
Up and Running...

heartsmagic

Betiğin içinde yad patlamış. Neden yerelde sorun yokken bu şekilde uzaktan sorun veriyor bilmiyorum ama. -X olmadan da aynı sorunu yapıyor mu? yad sürümü nedir?
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.