@Iain: I tried that but it didn't really work. But thanks to THAT suggestion
I found the solution to the problem. Read below.
@ Volker: I may try to do that, though I must say I've installed many
systems using the -Os instead of -O2 without a single problem. It turned out
to be something really simple, though still weird. Read below.
When I tried to turn off bash_completion by not invoking it when a shell
opens (and it didn't work) I had an insight. :-)
My $HOME/.bash_profile makes theese two calls:
[[ -f $HOME/.bashrc ]] . $HOME/.bashrc
[[ -f /etc/bash_completion ]] source /etc/bash_completion
My $HOME/.bashrc, among other things (regular ones), calls a script I have
with many (many many) aliases and mods for my shells. So this is my .bashrc:
[[ -f $HOME/.loginscript ]] source $HOME/.loginscript
When I decided to comment the above call to $HOME/.loginscript, everything
worked ok. No more memory leak problems, no more weird shell command
interpretation. Everything started to work Super (as Al Pacino would say in
Scent of a Woman). :-)
What do I have inside .loginscript? Here it is:
#! /bin/bash
#PS1='\[\033[01;[EMAIL PROTECTED];34m\] \w \$\[\033[00m\] '
DATE=$(date +%Y-%m-%d)
alias up=cd ..
alias sshic='ssh -Cl ra037415 xaveco.lab.ic.unicamp.br'
alias sshquasar='ssh -Cl saffi quasar.las.ic.unicamp.br'
alias sshquasarroot='ssh -Cl root quasar.las.ic.unicamp.br'
alias sshbackup='ssh -Cl root backup.las'
alias sshargonath='ssh -Cl saffi argonath.las.ic.unicamp.br'
alias sshargonathroot='ssh -Cl root argonath.las.ic.unicamp.br'
alias sshpulsar='ssh -Cl root pulsar.itautec.inovasoft.unicamp.br'
alias sshdeathstar='ssh -Cl root deathstar.itautec.inovasoft.unicamp.br'
alias sshhaya='ssh -Cl saffi hayabusa.las'
alias ssheagle='ssh -Cl saffi saffi.homeip.net'
alias ssheagleroot='ssh -Cl root saffi.homeip.net'
alias spy='echo -e Last refresh: $(date +%r) ; echo; finger; echo; w;
echo; tty ; echo'
alias usage='echo ; echo -en \a$USER disk usage is of ; du -sh ~; echo;'
alias ls='ls -F --color=auto'
alias ll='ls -lh'
alias llr='ll -R'
alias lla='ll -a'
alias can='cat -n'
alias myproc='ps -u $USER'
alias showM='du -h . 2 /dev/null | grep [0-9].[0-9]M | sort'
alias showK='du -h . 2 /dev/null | grep [1-9][0-9][0-9]K | sort'
alias resume='screen -r'
alias stop='screen -d'
alias steal='screen -dr'
alias share='screen -x'
alias list='screen -ls'
alias improve='vim ~/.loginscript'
alias quasartunnel='ssh -D 5000 -Cl saffi quasar.las.ic.unicamp.br'
# Disable console messaging
mesg n
# Allow a larger console history
HISTSIZE=3840
HISTFILESIZE=524288
HISTTIMEFORMAT=%F %T
Again: I already do this with other computers I work with and never had a
problem with such thing. Two funny things: the very same sequence os scripts
runs when I login with my local user (rsaffi). No problem, just with root.
Another funny thing: after commenting the [[ -f $HOME/.loginscript ]]
source $HOME/.loginscript from the .bashrc file, the problem was gone.
Then, after I log in, I ran: source ~/.loginscript and had no problem.
That's weird.
Anyway, I appreciate your help, guys. Thanks for all the patience and tips.
Regards,
Saffi
On 10/10/07, Volker Armin Hemmann [EMAIL PROTECTED]
wrote:
replace -Os with O2 and rebuild systembash?
and if that does not help:
remove all the crap you don't need from the kernel? try without raid? only
start the init-scripts you really need?
oh, please remove the fb-stuff that makes nvidia complain
--
[EMAIL PROTECTED] mailing list
--
bRicardo Saffi Marques/b
Laboratório de Administração e Segurança de Sistemas (LAS/IC)
Universidade Estadual de Campinas (UNICAMP)
iCell:/i +55 (19) 8128-0435
iSkype:/i ricardo_saffi_marques
iWebsite:/i uhttp://www.rsaffi.com/u