Git add. Gives me a bus error (kernel is reset)

I am using ubuntu and trying to put my code in github, but when I tried to use "git add"., I got the error "Bus dump (core dumped)".

joannah@joannah-Inspiron-N5040 :~/Macerdo$ git init Initialized empty Git repository in /home/joannah/Macerdo/.git/ joannah@joannah-Inspiron-N5040 :~/Macerdo$ git add . Bus error (core dumped) joannah@joannah-Inspiron-N5040 :~/Macerdo$ 

I would appreciate any help.

+6
source share
3 answers

For future reference. I solved this by creating a new folder and placing all my project files there, and when I did "git add". and "git commit" it worked, but I still don't know why the first one failed to work. Well, at least I got a solution and moved on. It's the most important. Thanks for the input.

+1
source

This is how I solved this problem, assuming you can still run git diff :

  • Creating a diff patch
  • Delete repo
  • Clone Repeat
  • Apply patch

 git diff --patch > /tmp/patch.diff cd .. rm -rf my_repo git clone <my_repo> cd my_repo patch -p1 /tmp/patch.diff 
0
source

Take a look at dmesg . In my case, this was due to a hardware error: bad sector on my disk. :(

This may explain why the command worked after copying the files.

You should find something like this:

 [ 1387.312569] ata3.00: exception Emask 0x0 SAct 0x800 SErr 0x0 action 0x0 [ 1387.314589] ata3.00: irq_stat 0x40000008 [ 1387.316618] ata3.00: failed command: READ FPDMA QUEUED [ 1387.318638] ata3.00: cmd 60/08:58:48:1e:54/00:00:12:00:00/40 tag 11 ncq 4096 in res 41/40:00:4b:1e:54/00:00:12:00:00/40 Emask 0x409 (media error) <F> [ 1387.322675] ata3.00: status: { DRDY ERR } [ 1387.324690] ata3.00: error: { UNC } [ 1387.363352] ata3.00: configured for UDMA/133 [ 1387.363369] sd 2:0:0:0: [sda] tag#11 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 1387.363375] sd 2:0:0:0: [sda] tag#11 Sense Key : Medium Error [current] [descriptor] [ 1387.363379] sd 2:0:0:0: [sda] tag#11 Add. Sense: Unrecovered read error - auto reallocate failed [ 1387.363384] sd 2:0:0:0: [sda] tag#11 CDB: Read(10) 28 00 12 54 1e 48 00 00 08 00 [ 1387.363388] blk_update_request: I/O error, dev sda, sector 307502667 [ 1387.365427] ata3: EH complete 
0
source

Source: https://habr.com/ru/post/977399/


All Articles