1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Optware installation problem

Discussion in 'Tomato Firmware' started by danutz68, Mar 6, 2011.

  1. danutz68

    danutz68 Networkin' Nut Member

    Hi,

    I have a Segmentation Fault error when I try to install the optware packages as you can see:

    Code:
    root@unknown:/tmp/home/root# wget http://tomatousb.org/local--files/tut:optware-
    installation/optware-install.sh -O - | tr -d '\r' > /tmp/optware-install.sh
    Segmentation fault
    
    Ping is working, scp from my laptop to ASUS router is working.

    Initially I have a DNS Segmentation Fault problem, but I managed to solved, but now the Segmentation Fault problem is reappear.

    Can you help me with some hints?

    BR,
    Danut
     
  2. shibby20

    shibby20 Network Guru Member

  3. danutz68

    danutz68 Networkin' Nut Member

    Hi,

    Still the same problem:

    Code:
    root@unknown:/opt# cd /tmp
    root@unknown:/tmp# wget http://update.groov.pl/optware-install.sh
    Segmentation fault
    
    And now the problem is escalating:

    Code:
    root@unknown:/tmp# ping -c3 yahoo.com
    PING yahoo.com (67.195.160.76): 56 data bytes
    64 bytes from 67.195.160.76: seq=1 ttl=54 time=122.036 ms
    
    --- yahoo.com ping statistics ---
    3 packets transmitted, 1 packets received, 66% packet loss
    round-trip min/avg/max = 122.036/122.036/122.036 ms
    root@unknown:/tmp# ping -c3 yahoo.com
    Segmentation fault
    
     
  4. danutz68

    danutz68 Networkin' Nut Member

    More Segmentation Fault messages:

    Code:
    root@unknown:/tmp/home/root# ping yahoo.com
    PING yahoo.com (67.195.160.76): 56 data bytes
    64 bytes from 67.195.160.76: seq=0 ttl=54 time=122.493 ms
    64 bytes from 67.195.160.76: seq=1 ttl=54 time=121.994 ms
    64 bytes from 67.195.160.76: seq=2 ttl=54 time=121.266 ms
    64 bytes from 67.195.160.76: seq=3 ttl=54 time=121.814 ms
    64 bytes from 67.195.160.76: seq=4 ttl=54 time=121.925 ms
    64 bytes from 67.195.160.76: seq=5 ttl=54 time=122.273 ms
    
    --- yahoo.com ping statistics ---
    6 packets transmitted, 6 packets received, 0% packet loss
    round-trip min/avg/max = 121.266/121.960/122.493 ms
    
    root@unknown:/tmp/home/root# wget http://tomatousb.org/local--files/tut:optware-
    installation/optware-install.sh -O - | tr -d '\r' > /tmp/optware-install.sh
    Segmentation fault
    root@unknown:/tmp/home/root# ping yahoo.com
    Segmentation fault
    
    I think I must reinstall the FW once again :(
     
  5. shibby20

    shibby20 Network Guru Member

    did you erase nvram after flash?
     
  6. danutz68

    danutz68 Networkin' Nut Member

    Hello,
    I erase the NVRAM with both procedures (from GUI and from WPS button). I reflash the router, but no luck.The ping command is working but after a while the Segfault message is reapeare. My wireless mode is AP+WDS. The connection to the internet through wireless and cable link is working normally, but inside the router, the ping command it gives me the Segfault message.
     
  7. danutz68

    danutz68 Networkin' Nut Member

    I think that a I have a DNS issue:

    Code:
    Tomato v1.28.9054 MIPSR2-beta K26 USB Ext
    root@unknown:/tmp/home/root# ping yahoo.com
    Segmentation fault
    root@unknown:/tmp/home/root# ping -c3 98.137.149.56
    PING 98.137.149.56 (98.137.149.56): 56 data bytes
    64 bytes from 98.137.149.56: seq=0 ttl=51 time=206.191 ms
    64 bytes from 98.137.149.56: seq=1 ttl=51 time=208.458 ms
    64 bytes from 98.137.149.56: seq=2 ttl=51 time=208.373 ms
    
     
  8. rhester72

    rhester72 Network Guru Member

    The segfaults and other weird behavior are caused by Optware blindly forcing library paths with LD_LIBRARY_PATH in the profile. Take it out!

    Rodney
     
  9. danutz68

    danutz68 Networkin' Nut Member

    Hi,

    This variable is not set, as I see:

    Code:
    root@unknown:/tmp/home/root# echo $PATH
    /bin:/usr/bin:/sbin:/usr/sbin:/home/root:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:
    root@unknown:/tmp/home/root# echo $LD_LIBRARY_PATH
    
    root@unknown:/tmp/home/root# cat /etc/profile
    export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/home/$USER:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:`nvram get env_path`"
    export PS1='\u@\h:\w\$ '
    
    alias l='ls -lFA'
    alias ll='ls -lF'
    
    ldd() {
            LD_TRACE_LOADED_OBJECTS=1 $*;
    }
    
    [ -f /jffs/etc/profile ] && . /jffs/etc/profile
    [ -f /opt/etc/profile ] && . /opt/etc/profile
    
    And this behavior appear even when I use PING command .
     
  10. rhester72

    rhester72 Network Guru Member

    Is there anything in /jffs/etc/profile or /opt/etc/profile?

    Rodney
     
  11. danutz68

    danutz68 Networkin' Nut Member

    Hi,
    There is not any of the /jffs/etc/profile or /opt/etc/profile file.
     
  12. rhester72

    rhester72 Network Guru Member

    Strange - there are also scattered reports on the TomatoUSB forums about unexplainable segfaults and other very similar behavior, even without optware. I've been heavily using my RT-N16 with various betas and svn builds without incident, so I'm honestly not sure where this is coming from. :( If I see/learn anything new, I'll certainly advise!

    Rodney
     
  13. danutz68

    danutz68 Networkin' Nut Member

    I also noted that tar is not working when I try to install optware.

    Code:
    tar: Invalid gzip magic
    
    I will try to build a Tomato SVN snapshot to check if the problem is still there.

    Thank you for replay.
    BR,
    Danut
     

Share This Page