You are not logged in.

#1 2014-03-18 19:11:20

baronmog
Member
Registered: 2013-11-01
Posts: 60

bash update (4.2.045-5 -> 4.3-2) wipes history?

Rebooted shortly after updating bash, this morning. After the reboot, the bash history of both user accounts (root and my account) was wiped, and nothing's being written to the history files, despite having "shopt -s histappend" in /etc/bash.bashrc.

Is anyone else seeing something like this?

Offline

#2 2014-03-18 19:40:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

My ~/.bash_history is still there. I'm using 'shopt -s histappend' too.
What's the output of 'ls -l ~/.bash_history'?

Offline

#3 2014-03-18 21:41:50

baronmog
Member
Registered: 2013-11-01
Posts: 60

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

karol wrote:

My ~/.bash_history is still there. I'm using 'shopt -s histappend' too.
What's the output of 'ls -l ~/.bash_history'?

Ok. Have now rebooted a few times. Initially, `ls -l ~/.bash_history` showed

-rw------- 1 klevin users    0 Mar 18 10:32:00 .bash_history

The time corresponded to the first reboot after updating bash.
Exiting an active shell resulted in .bash_history being written to (indicating that the histappend setting is not being processed or is getting overridden somewhere now).

However, a subsequent reboot resulted in .bash_history suddenly having the contents of a different shell, from earlier in the day (not one that had been running during the immediately preceding uptime). This seems like some sort of fs corruption/ext4 journal gone wrong. I did also switch from a 3.13.0-1-00038-gb0031f2 (git) kernel to the 3.13.6-1-ARCH kernel, so maybe something went wacky there. Still have to figure out why histappend is being ignored.

Offline

#4 2014-04-15 08:30:40

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

@baronmog, how things went up?

Since last week am encoutering the same behaviour with the root user only:

-rw------- 1 root root    0 12 avril 19:18 /root/.bash_history

Stayed empty so far.

Bash 4.3.008-2 (updated from 4.3-3 but issue stayed)
I'm using 'shopt -s histappend' too from /etc/bash.bashrc.


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#5 2014-04-21 21:34:49

indianahorst
Member
Registered: 2008-08-23
Posts: 133

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

Same here. .bash_history is empty.

$ ls -l ~/.bash_history
-rw-r--r-- 1 myusername users 0 21. Apr 02:44 /home/myusername/.bash_history

The time is corresponding with the last shutdown.

Offline

#6 2014-04-21 23:51:01

baronmog
Member
Registered: 2013-11-01
Posts: 60

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

kozaki wrote:

@baronmog, how things went up?

Seems to be working ok lately. I have nothing to support this, but I wonder if it was related to the different kernel versions I was bouncing between at the time (one of which was a build from git sources).

Offline

#7 2014-04-22 15:37:03

baronmog
Member
Registered: 2013-11-01
Posts: 60

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

Seems to be working ok lately. I have nothing to support this, but I wonder if it was related to the different kernel versions I was bouncing between at the time (one of which was a build from git sources).

Heh. Open my big mouth. Booted up this morning, and my user account's bash history is empty. Not root's though. Still running the same kernel as yesterday, so that's not it (didn't really think it was, anyway).

Offline

#8 2014-04-25 07:33:13

indianahorst
Member
Registered: 2008-08-23
Posts: 133

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

Problem persists here too. Started my system today and .bash_history had a size of 0 with the last change date of the shutdown yesterday. This is very annoying.

Is there a bugreport filed?

Offline

#9 2014-04-30 01:56:38

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: bash update (4.2.045-5 -> 4.3-2) wipes history?

Updated yesterday (2.1-4 -> 2.1-5) and .bash_history was wiped on next boot. It was* a symlink to a file on another volume. I thought that may have had something to do with it until I remembered this thread. I also have some settings exported in .bashrc:

export HISTCONTROL='ignoreboth:erasedups'
export HISTIGNORE="&:cd:exit:startx:off:rere"

Root's history is intact, but it's a normal file in the default location and hasn't been touched in over a month.

* Was because I've since moved to the proper solution of exporting HISTFILE.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB