1 |
@Iain: I tried that but it didn't really work. But thanks to THAT suggestion |
2 |
I found the solution to the problem. Read below. |
3 |
@ Volker: I may try to do that, though I must say I've installed many |
4 |
systems using the -Os instead of -O2 without a single problem. It turned out |
5 |
to be something really simple, though still weird. Read below. |
6 |
|
7 |
When I tried to turn off bash_completion by not invoking it when a shell |
8 |
opens (and it didn't work) I had an insight. :-) |
9 |
My $HOME/.bash_profile makes theese two calls: |
10 |
|
11 |
> [[ -f $HOME/.bashrc ]] && . $HOME/.bashrc |
12 |
> [[ -f /etc/bash_completion ]] && source /etc/bash_completion |
13 |
|
14 |
|
15 |
My $HOME/.bashrc, among other things (regular ones), calls a script I have |
16 |
with many (many many) aliases and mods for my shells. So this is my .bashrc: |
17 |
|
18 |
> [[ -f $HOME/.loginscript ]] && source $HOME/.loginscript |
19 |
|
20 |
|
21 |
When I decided to comment the above call to $HOME/.loginscript, everything |
22 |
worked ok. No more memory leak problems, no more weird shell command |
23 |
interpretation. Everything started to work Super (as Al Pacino would say in |
24 |
Scent of a Woman). :-) |
25 |
What do I have inside .loginscript? Here it is: |
26 |
|
27 |
> #! /bin/bash |
28 |
> |
29 |
> #PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' |
30 |
> DATE=$(date +"%Y-%m-%d") |
31 |
> |
32 |
> alias up="cd .." |
33 |
> alias sshic='ssh -Cl ra037415 xaveco.lab.ic.unicamp.br' |
34 |
> alias sshquasar='ssh -Cl saffi quasar.las.ic.unicamp.br' |
35 |
> alias sshquasarroot='ssh -Cl root quasar.las.ic.unicamp.br' |
36 |
> alias sshbackup='ssh -Cl root backup.las' |
37 |
> alias sshargonath='ssh -Cl saffi argonath.las.ic.unicamp.br' |
38 |
> alias sshargonathroot='ssh -Cl root argonath.las.ic.unicamp.br' |
39 |
> alias sshpulsar='ssh -Cl root pulsar.itautec.inovasoft.unicamp.br' |
40 |
> alias sshdeathstar='ssh -Cl root deathstar.itautec.inovasoft.unicamp.br' |
41 |
> alias sshhaya='ssh -Cl saffi hayabusa.las' |
42 |
> alias ssheagle='ssh -Cl saffi saffi.homeip.net' |
43 |
> alias ssheagleroot='ssh -Cl root saffi.homeip.net' |
44 |
> alias spy='echo -e "Last refresh: $(date +"%r")" ; echo; finger; echo; w; |
45 |
> echo; tty ; echo' |
46 |
> alias usage='echo ; echo -en "\a$USER disk usage is of "; du -sh ~; echo;' |
47 |
> alias ls='ls -F --color=auto' |
48 |
> alias ll='ls -lh' |
49 |
> alias llr='ll -R' |
50 |
> alias lla='ll -a' |
51 |
> alias can='cat -n' |
52 |
> alias myproc='ps -u $USER' |
53 |
> alias showM='du -h . 2> /dev/null | grep [0-9].[0-9]M | sort' |
54 |
> alias showK='du -h . 2> /dev/null | grep [1-9][0-9][0-9]K | sort' |
55 |
> alias resume='screen -r' |
56 |
> alias stop='screen -d' |
57 |
> alias steal='screen -dr' |
58 |
> alias share='screen -x' |
59 |
> alias list='screen -ls' |
60 |
> alias improve='vim ~/.loginscript' |
61 |
> alias quasartunnel='ssh -D 5000 -Cl saffi quasar.las.ic.unicamp.br' |
62 |
> |
63 |
> # Disable console messaging |
64 |
> mesg n |
65 |
> |
66 |
> # Allow a larger console history |
67 |
> HISTSIZE=3840 |
68 |
> HISTFILESIZE=524288 |
69 |
> HISTTIMEFORMAT="%F %T " |
70 |
> |
71 |
|
72 |
Again: I already do this with other computers I work with and never had a |
73 |
problem with such thing. Two funny things: the very same sequence os scripts |
74 |
runs when I login with my local user (rsaffi). No problem, just with root. |
75 |
Another funny thing: after commenting the "[[ -f $HOME/.loginscript ]] && |
76 |
source $HOME/.loginscript" from the .bashrc file, the problem was gone. |
77 |
Then, after I log in, I ran: "source ~/.loginscript" and had no problem. |
78 |
That's weird. |
79 |
|
80 |
Anyway, I appreciate your help, guys. Thanks for all the patience and tips. |
81 |
|
82 |
Regards, |
83 |
|
84 |
Saffi |
85 |
|
86 |
On 10/10/07, Volker Armin Hemmann <volker.armin.hemmann@××××××××××××.de> |
87 |
wrote: |
88 |
> |
89 |
> replace -Os with O2 and rebuild system&bash? |
90 |
> and if that does not help: |
91 |
> remove all the crap you don't need from the kernel? try without raid? only |
92 |
> start the init-scripts you really need? |
93 |
> |
94 |
> oh, please remove the fb-stuff that makes nvidia complain.... |
95 |
> -- |
96 |
> gentoo-user@g.o mailing list |
97 |
> |
98 |
> |
99 |
-- |
100 |
<b>Ricardo Saffi Marques</b> |
101 |
Laboratório de Administração e Segurança de Sistemas (LAS/IC) |
102 |
Universidade Estadual de Campinas (UNICAMP) |
103 |
<i>Cell:</i> +55 (19) 8128-0435 |
104 |
<i>Skype:</i> ricardo_saffi_marques |
105 |
<i>Website:</i> <u>http://www.rsaffi.com</u> |