Solved

segmentation fault

Posted on 2011-03-17
12
862 Views
Last Modified: 2013-12-06
Hello,

I am having problems when telneting to AIX from debian and trying to execute a command. The problem that I get is 'segmentation fault'.

I log in in the DEBIAN box and telnet the AIX as root, try to execute a command and then I get the error.

Debian lenny and AIX F80 3 5 000A4B80D700

Any ideas why?

Thanks
0
Comment
Question by:vlachosg
12 Comments
 
LVL 3

Expert Comment

by:Alberto Cortes
Comment Utility
Solution:

Add this line in your /etc/environment file:
LDR_CNTRL=MAXDATA
0
 

Author Comment

by:vlachosg
Comment Utility
still getting the same error...

stumbled upon this one

http://publib.boulder.ibm.com/tividd/td/ITAME/GC32-0846-00/en_US/HTML/am39_perftune11.htm

but still no luck...

any ideas?
0
 

Author Comment

by:vlachosg
Comment Utility
hmm..telneting from windows xp works fine.... the problem is that I need it to run from debian.


0
 

Author Comment

by:vlachosg
Comment Utility
just to clarify the aforementioned comment.

I mean that when I telnet from a windows XP OS I can execute the command just fine.

So that means that there is something specific in the telnet client of Debian?
0
 

Author Comment

by:vlachosg
Comment Utility
This is what it is set when i telnet from debian

AUTHSTATE=compat
CHRCLASS=greek
DFUPATH=/usr9/U/Eur/Fil/
ERRNO=10
FCEDIT=/usr/bin/ed
HOME=/usr9/U/Eur/Z/Mnu11
IFS='  
'
ISAMBUFS=1024
LANG=en_US
LC__FASTMSG=true
LDR_CNTRL=MAXDATA='0x2000000 '
LINENO=1
LOCPATH=/usr/lib/nls/loc
LOGIN=posuser1
LOGNAME=posuser1
MAIL=/usr/spool/mail/posuser1
MAILCHECK=600
MAILMSG='[YOU HAVE NEW MAIL]'
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
ODMDIR=/etc/objrepos
OPTIND=1
PATH=.:../Bat:/usr9/U/Util/Bin:/bin:/etc:/usr/bin:/usr9/U/Util:/usr2/U/js/Bin:/usr9/U/Util/Eur
PPID=921630
PS1='$ '
PS2='> '
PS3='#? '
PS4='+ '
PWD=/usr9/U/Eur/Z/Mnu11
RANDOM=8860
SCRPATH=/usr9/U/Eur/Scr/
SECONDS=5
SETUP=/usr9/U/Eur/Z/Dat11/setup.txt
SHELL=/bin/sh
TBLPATH=/usr9/U/Eur/Z/Dat11/
TERM=xterm-color
TERM_DEFAULT=lft
TMOUT=0
TTYPATH=/usr2/Util/Fil/
TZ=MEST-2
USER=posuser1
UTIL=/usr9/U/Util
UTILPATH=/usr9/U/Util/Scr/
_=clear
umask=000



This is what is set from windows xp


AUTHSTATE=compat
CHRCLASS=greek
DFUPATH=/usr9/U/Eur/Fil/
ERRNO=10
FCEDIT=/usr/bin/ed
HOME=/usr9/U/Eur/Z/Mnu11
IFS='
'
ISAMBUFS=1024
LANG=en_US
LC__FASTMSG=true
LDR_CNTRL=MAXDATA='0x2000000 '
LINENO=1
LOCPATH=/usr/lib/nls/loc
LOGIN=posuser1
LOGNAME=posuser1
MAIL=/usr/spool/mail/posuser1
MAILCHECK=600
MAILMSG='[YOU HAVE NEW MAIL]'
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
ODMDIR=/etc/objrepos
OPTIND=1
PATH=.:../Bat:/usr9/U/Util/Bin:/bin:/etc:/usr/bin:/usr9/U/Util:/usr2/U/js/Bin:/
sr9/U/Util/Eur
PPID=438502
PS1='$ '
PS2='> '
PS3='#? '
PS4='+ '
PWD=/usr9/U/Eur/Z/Mnu11
RANDOM=6439
SCRPATH=/usr9/U/Eur/Scr/
SECONDS=59
SETUP=/usr9/U/Eur/Z/Dat11/setup.txt
SHELL=/bin/sh
TBLPATH=/usr9/U/Eur/Z/Dat11/
TERM=ansi
TERM_DEFAULT=lft
TMOUT=0
TTYPATH=/usr2/Util/Fil/
TZ=MEST-2
USER=posuser1
UTIL=/usr9/U/Util
UTILPATH=/usr9/U/Util/Scr/
_=cls
umask=000
$



there has to be a major difference in the way telnet behaves in windows and in linux.



0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 3

Expert Comment

by:Alberto Cortes
Comment Utility
check /var/log/messages in Debian for errors
0
 

Author Comment

by:vlachosg
Comment Utility
no error messages there...
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
run telnet in gdb, or lift the dumped core.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
Comment Utility
After you telnet to the AIX box try issuing the command:

export TERM=ansi

and see what happens.  The only difference I can see is from Windows you termial type is set to ANSI and from Debial it set to xterm-color.
0
 

Author Closing Comment

by:vlachosg
Comment Utility
Thanks for the solution..it was simple as that..
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now