{"thread":{"id":"331","subject":"cg-add and update-cache add fails","startedAt":"2005-04-26T16:35:46Z","lastAt":"2005-04-26T19:02:01Z","messageCount":4,"participants":["Rhys Hardwick","Daniel Barkalow","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"1747","messageId":"200504261735.47008.rhys@rhyshardwick.co.uk","threadId":"331","inReplyTo":null,"subject":"cg-add and update-cache add fails","fromName":"Rhys Hardwick","fromEmail":"rhys@rhyshardwick.co.uk","sentAt":"2005-04-26T16:35:46Z","receivedAt":"2005-04-26T16:35:46Z","isPatch":false,"sender":{"key":"rhys@rhyshardwick.co.uk","avatar":null},"body":"Hey there,\n\nI posted a little while ago about this, but thought I would collate all my \nfindings.  I am very lost.  Trying to add files to the repository does not \nseem to work, no matter which git repository I try.  Creating new trees and \nupdating current trees, as well as removing files is not a problem.  All \nother areas of git seem to work perfectly.  I am currently using cogito-0.8.  \nThis error started to occur in pasky-0.63.\n\nHere is the error I get:\n\nrhys@metatron:~/repo/learning.repo$ cg-add w1p4d1.c\nfatal: Unable to add w1p4d1.c to database\nrhys@metatron:~/repo/learning.repo$ update-cache --add w1p4d1.c\nfatal: Unable to add w1p4d1.c to database\n\nAll the files under the .git folder appear to be owned by me, and are \nread-writable.  The disk is not full.  \n\nI have attached the output from strace and ltrace.\n\nIf anyone could shed any light on why this might be happening, I would be very \ngrateful.\n\nRhys\n\n\nrhys@metatron:~/repo/learning.repo$ strace cg-add w1d4p1.c\nexecve(\"/home/rhys/bin/cg-add\", [\"cg-add\", \"w1d4p1.c\"], [/* 37 vars */]) = 0\nuname({sys=\"Linux\", node=\"metatron\", ...}) = 0\nbrk(0)                                  = 0x804c000\nold_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe9000\naccess(\"/etc/ld.so.nohwcap\", F_OK)      = -1 ENOENT (No such file or directory)\nopen(\"/etc/ld.so.preload\", O_RDONLY)    = -1 ENOENT (No such file or directory)\nopen(\"/etc/ld.so.cache\", O_RDONLY)      = 3\nfstat64(3, {st_mode=S_IFREG|0644, st_size=78602, ...}) = 0\nold_mmap(NULL, 78602, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fd5000\nclose(3)                                = 0\naccess(\"/etc/ld.so.nohwcap\", F_OK)      = -1 ENOENT (No such file or directory)\nopen(\"/lib/tls/libc.so.6\", O_RDONLY)    = 3\nread(3, \"\\177ELF\\1\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0\\3\\0\\1\\0\\0\\0`Z\\1\\000\"..., 512) = 512\nfstat64(3, {st_mode=S_IFREG|0644, st_size=1254468, ...}) = 0\nold_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ea0000\nold_mmap(0xb7fca000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129000) = 0xb7fca000\nold_mmap(0xb7fd3000, 7308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fd3000\nclose(3)                                = 0\nold_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e9f000\nset_thread_area({entry_number:-1 -> 6, base_addr:0xb7e9f460, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0\nmunmap(0xb7fd5000, 78602)               = 0\nopen(\"/usr/lib/locale/locale-archive\", O_RDONLY|O_LARGEFILE) = 3\nfstat64(3, {st_mode=S_IFREG|0644, st_size=290448, ...}) = 0\nmmap2(NULL, 290448, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7e58000\nclose(3)                                = 0\nbrk(0)                                  = 0x804c000\nbrk(0x806d000)                          = 0x806d000\nbrk(0)                                  = 0x806d000\nexecve(\"/usr/local/bin/bash\", [\"bash\", \"/home/rhys/bin/cg-add\", \"w1d4p1.c\"], [/* 37 vars */]) = -1 ENOENT (No such file or directory)\nexecve(\"/usr/bin/bash\", [\"bash\", \"/home/rhys/bin/cg-add\", \"w1d4p1.c\"], [/* 37 vars */]) = -1 ENOENT (No such file or directory)\nexecve(\"/bin/bash\", [\"bash\", \"/home/rhys/bin/cg-add\", \"w1d4p1.c\"], [/* 37 vars */]) = 0\nuname({sys=\"Linux\", node=\"metatron\", ...}) = 0\nbrk(0)                                  = 0x80f1000\nold_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe9000\naccess(\"/etc/ld.so.nohwcap\", F_OK)      = -1 ENOENT (No such file or directory)\nopen(\"/etc/ld.so.preload\", O_RDONLY)    = -1 ENOENT (No such file or directory)\nopen(\"/etc/ld.so.cache\", O_RDONLY)      = 3\nfstat64(3, {st_mode=S_IFREG|0644, st_size=78602, ...}) = 0\nold_mmap(NULL, 78602, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fd5000\nclose(3)                                = 0\naccess(\"/etc/ld.so.nohwcap\", F_OK)      = -1 ENOENT (No such file or directory)\nopen(\"/lib/libncurses.so.5\", O_RDONLY)  = 3\nread(3, \"\\177ELF\\1\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0\\3\\0\\1\\0\\0\\0\\220\\342\"..., 512) = 512\nfstat64(3, {st_mode=S_IFREG|0644, st_size=252592, ...}) = 0\nold_mmap(NULL, 257868, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7f96000\nold_mmap(0xb7fcc000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x35000) = 0xb7fcc000\nclose(3)                                = 0\naccess(\"/etc/ld.so.nohwcap\", F_OK)      = -1 ENOENT (No such file or directory)\nopen(\"/lib/tls/libdl.so.2\", O_RDONLY)   = 3\nread(3, \"\\177ELF\\1\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0\\3\\0\\1\\0\\0\\0\\320\\32\"..., 512) = 512\nfstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0\nold_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f95000\nold_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7f92000\nold_mmap(0xb7f94000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0xb7f94000\nclose(3)                                = 0\naccess(\"/etc/ld.so.nohwcap\", F_OK)      = -1 ENOENT (No such file or directory)\nopen(\"/lib/tls/libc.so.6\", O_RDONLY)    = 3\nread(3, \"\\177ELF\\1\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0\\3\\0\\1\\0\\0\\0`Z\\1\\000\"..., 512) = 512\nfstat64(3, {st_mode=S_IFREG|0644, st_size=1254468, ...}) = 0\nold_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7e5d000\nold_mmap(0xb7f87000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129000) = 0xb7f87000\nold_mmap(0xb7f90000, 7308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f90000\nclose(3)                                = 0\nset_thread_area({entry_number:-1 -> 6, base_addr:0xb7f95b80, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0\nmunmap(0xb7fd5000, 78602)               = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nopen(\"/dev/tty\", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3\nclose(3)                                = 0\nopen(\"/usr/lib/locale/locale-archive\", O_RDONLY|O_LARGEFILE) = 3\nfstat64(3, {st_mode=S_IFREG|0644, st_size=290448, ...}) = 0\nmmap2(NULL, 290448, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7e16000\nclose(3)                                = 0\nbrk(0)                                  = 0x80f1000\nbrk(0)                                  = 0x80f1000\nbrk(0x80f2000)                          = 0x80f2000\nbrk(0)                                  = 0x80f2000\nbrk(0x80f3000)                          = 0x80f3000\nbrk(0)                                  = 0x80f3000\nbrk(0x80f4000)                          = 0x80f4000\ngetuid32()                              = 1000\ngetgid32()                              = 1000\ngeteuid32()                             = 1000\ngetegid32()                             = 1000\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\ntime(NULL)                              = 1114533106\nbrk(0)                                  = 0x80f4000\nbrk(0x80f5000)                          = 0x80f5000\nopen(\"/etc/mtab\", O_RDONLY)             = 3\nfstat64(3, {st_mode=S_IFREG|0644, st_size=381, ...}) = 0\nmmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e15000\nread(3, \"/dev/hda7 / ext3 rw,errors=remou\"..., 4096) = 381\nclose(3)                                = 0\nmunmap(0xb7e15000, 4096)                = 0\nopen(\"/proc/meminfo\", O_RDONLY)         = 3\nfstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0\nmmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e15000\nread(3, \"MemTotal:       906680 kB\\nMemFre\"..., 1024) = 598\nclose(3)                                = 0\nmunmap(0xb7e15000, 4096)                = 0\nbrk(0)                                  = 0x80f5000\nbrk(0x80f6000)                          = 0x80f6000\nrt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0\nrt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0\nrt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0\nrt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0\nrt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0\nrt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0\nuname({sys=\"Linux\", node=\"metatron\", ...}) = 0\nbrk(0)                                  = 0x80f6000\nbrk(0x80f7000)                          = 0x80f7000\nstat64(\"/home/rhys/repo/learning.repo\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nstat64(\".\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\ngetpid()                                = 9873\nopen(\"/usr/lib/gconv/gconv-modules.cache\", O_RDONLY) = -1 ENOENT (No such file or directory)\nbrk(0)                                  = 0x80f7000\nbrk(0x80f8000)                          = 0x80f8000\nopen(\"/usr/lib/gconv/gconv-modules\", O_RDONLY) = 3\nfstat64(3, {st_mode=S_IFREG|0644, st_size=45278, ...}) = 0\nmmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e15000\nread(3, \"# GNU libc iconv configuration.\\n\"..., 4096) = 4096\nbrk(0)                                  = 0x80f8000\nbrk(0x80f9000)                          = 0x80f9000\nread(3, \".B1.002//\\nalias\\tJS//\\t\\t\\tJUS_I.B1.\"..., 4096) = 4096\nbrk(0)                                  = 0x80f9000\nbrk(0x80fa000)                          = 0x80fa000\nbrk(0)                                  = 0x80fa000\nbrk(0x80fb000)                          = 0x80fb000\nbrk(0)                                  = 0x80fb000\nbrk(0x80fc000)                          = 0x80fc000\nread(3, \"859-3\\t1\\nmodule\\tINTERNAL\\t\\tISO-885\"..., 4096) = 4096\nbrk(0)                                  = 0x80fc000\nbrk(0x80fd000)                          = 0x80fd000\nbrk(0)                                  = 0x80fd000\nbrk(0x80fe000)                          = 0x80fe000\nbrk(0)                                  = 0x80fe000\nbrk(0x80ff000)                          = 0x80ff000\nread(3, \"9-14//\\nalias\\tLATIN8//\\t\\tISO-8859-\"..., 4096) = 4096\nbrk(0)                                  = 0x80ff000\nbrk(0x8100000)                          = 0x8100000\nbrk(0)                                  = 0x8100000\nbrk(0x8101000)                          = 0x8101000\nbrk(0)                                  = 0x8101000\nbrk(0x8102000)                          = 0x8102000\nread(3, \"CSEBCDICES//\\t\\tEBCDIC-ES//\\nalias\\t\"..., 4096) = 4096\nbrk(0)                                  = 0x8102000\nbrk(0x8103000)                          = 0x8103000\nbrk(0)                                  = 0x8103000\nbrk(0x8104000)                          = 0x8104000\nread(3, \"IBM284//\\nalias\\tEBCDIC-CP-ES//\\t\\tI\"..., 4096) = 4096\nbrk(0)                                  = 0x8104000\nbrk(0x8105000)                          = 0x8105000\nbrk(0)                                  = 0x8105000\nbrk(0x8106000)                          = 0x8106000\nbrk(0)                                  = 0x8106000\nbrk(0x8107000)                          = 0x8107000\nread(3, \"ias\\t864//\\t\\t\\tIBM864//\\nalias\\tCSIBM\"..., 4096) = 4096\nbrk(0)                                  = 0x8107000\nbrk(0x8108000)                          = 0x8108000\nbrk(0)                                  = 0x8108000\nbrk(0x8109000)                          = 0x8109000\nbrk(0)                                  = 0x8109000\nbrk(0x810a000)                          = 0x810a000\nread(3, \"\\tIBM937\\t\\t1\\nmodule\\tINTERNAL\\t\\tIBM9\"..., 4096) = 4096\nbrk(0)                                  = 0x810a000\nbrk(0x810b000)                          = 0x810b000\nbrk(0)                                  = 0x810b000\nbrk(0x810c000)                          = 0x810c000\nbrk(0)                                  = 0x810c000\nbrk(0x810d000)                          = 0x810d000\nread(3, \"UC-JP//\\nmodule\\tEUC-JP//\\t\\tINTERNA\"..., 4096) = 4096\nbrk(0)                                  = 0x810d000\nbrk(0x810e000)                          = 0x810e000\nbrk(0)                                  = 0x810e000\nbrk(0x810f000)                          = 0x810f000\nbrk(0)                                  = 0x810f000\nbrk(0x8110000)                          = 0x8110000\nread(3, \"143IECP271//\\tIEC_P27-1//\\nalias\\tI\"..., 4096) = 4096\nbrk(0)                                  = 0x8110000\nbrk(0x8111000)                          = 0x8111000\nbrk(0)                                  = 0x8111000\nbrk(0x8112000)                          = 0x8112000\nread(3, \"\\nmodule\\tINTERNAL\\t\\tISO_10367-BOX/\"..., 4096) = 4096\nbrk(0)                                  = 0x8112000\nbrk(0x8113000)                          = 0x8113000\nbrk(0)                                  = 0x8113000\nbrk(0x8114000)                          = 0x8114000\nbrk(0)                                  = 0x8114000\nbrk(0x8115000)                          = 0x8115000\nread(3, \"\\t\\tto\\t\\t\\tmodule\\t\\tcost\\nmodule\\tShift\"..., 4096) = 222\nread(3, \"\", 4096)                       = 0\nclose(3)                                = 0\nmunmap(0xb7e15000, 4096)                = 0\nbrk(0)                                  = 0x8115000\nbrk(0x8116000)                          = 0x8116000\nopen(\"/usr/lib/gconv/ISO8859-1.so\", O_RDONLY) = 3\nread(3, \"\\177ELF\\1\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0\\3\\0\\1\\0\\0\\0`\\6\\0\\000\"..., 512) = 512\nfstat64(3, {st_mode=S_IFREG|0644, st_size=5920, ...}) = 0\nbrk(0)                                  = 0x8116000\nbrk(0x8117000)                          = 0x8117000\nold_mmap(NULL, 8860, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7e13000\nold_mmap(0xb7e15000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0xb7e15000\nclose(3)                                = 0\ngetppid()                               = 9872\nstat64(\".\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nstat64(\"/usr/local/bin/bash\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/bin/bash\", 0xbffff490)     = -1 ENOENT (No such file or directory)\nstat64(\"/bin/bash\", {st_mode=S_IFREG|0755, st_size=667180, ...}) = 0\ngetgroups32(32, [20, 24, 25, 29, 33, 44, 1000]) = 7\nstat64(\"/bin/bash\", {st_mode=S_IFREG|0755, st_size=667180, ...}) = 0\ngetpgrp()                               = 9872\nrt_sigaction(SIGCHLD, {0x807ac80, [], 0}, {SIG_DFL}, 8) = 0\nbrk(0)                                  = 0x8117000\nbrk(0x8118000)                          = 0x8118000\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nopen(\"/home/rhys/bin/cg-add\", O_RDONLY|O_LARGEFILE) = 3\nioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbffff608) = -1 ENOTTY (Inappropriate ioctl for device)\n_llseek(3, 0, [0], SEEK_CUR)            = 0\nread(3, \"#!/usr/bin/env bash\\n#\\n# Add new \"..., 80) = 80\n_llseek(3, 0, [0], SEEK_SET)            = 0\ngetrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0\ndup2(3, 255)                            = 255\nclose(3)                                = 0\nfcntl64(255, F_SETFD, FD_CLOEXEC)       = 0\nfcntl64(255, F_GETFL)                   = 0x8000 (flags O_RDONLY|O_LARGEFILE)\nfstat64(255, {st_mode=S_IFREG|0755, st_size=300, ...}) = 0\n_llseek(255, 0, [0], SEEK_CUR)          = 0\nbrk(0)                                  = 0x8118000\nbrk(0x8119000)                          = 0x8119000\nbrk(0)                                  = 0x8119000\nbrk(0x811a000)                          = 0x811a000\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nread(255, \"#!/usr/bin/env bash\\n#\\n# Add new \"..., 300) = 300\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nstat64(\".\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nstat64(\"/usr/local/bin/cg-Xlib\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/bin/cg-Xlib\", 0xbffff490)  = -1 ENOENT (No such file or directory)\nstat64(\"/bin/cg-Xlib\", 0xbffff490)      = -1 ENOENT (No such file or directory)\nstat64(\"/usr/bin/X11/cg-Xlib\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/games/cg-Xlib\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/home/rhys/bin/cg-Xlib\", {st_mode=S_IFREG|0755, st_size=835, ...}) = 0\nstat64(\"/home/rhys/bin/cg-Xlib\", {st_mode=S_IFREG|0755, st_size=835, ...}) = 0\nopen(\"/home/rhys/bin/cg-Xlib\", O_RDONLY|O_LARGEFILE) = 3\nfstat64(3, {st_mode=S_IFREG|0755, st_size=835, ...}) = 0\nread(3, \"#!/usr/bin/env bash\\n#\\n# Common c\"..., 835) = 835\nclose(3)                                = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nbrk(0)                                  = 0x811a000\nbrk(0x811b000)                          = 0x811b000\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nstat64(\".git\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nstat64(\".git/remotes\", 0xbffff070)      = -1 ENOENT (No such file or directory)\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nstat64(\".git\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nstat64(\".git/refs\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nstat64(\".\", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\nstat64(\"/usr/local/bin/update-cache\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/bin/update-cache\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/bin/update-cache\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/bin/X11/update-cache\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/games/update-cache\", 0xbffff490) = -1 ENOENT (No such file or directory)\nstat64(\"/home/rhys/bin/update-cache\", {st_mode=S_IFREG|0755, st_size=91464, ...}) = 0\nstat64(\"/home/rhys/bin/update-cache\", {st_mode=S_IFREG|0755, st_size=91464, ...}) = 0\nbrk(0)                                  = 0x811b000\nbrk(0x811c000)                          = 0x811c000\nrt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0\nclone(fatal: Unable to add w1d4p1.c to database\nchild_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7f95bc8) = 9874\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\n--- SIGCHLD (Child exited) @ 0 (0) ---\nwaitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG) = 9874\nwaitpid(-1, 0xbffff164, WNOHANG)        = -1 ECHILD (No child processes)\nsigreturn()                             = ? (mask now [])\nrt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0\nrt_sigaction(SIGINT, {0x8079bd0, [], 0}, {SIG_DFL}, 8) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigaction(SIGINT, {SIG_DFL}, {0x8079bd0, [], 0}, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nread(255, \"\", 300)                      = 0\nexit_group(1)                           = ?\n\n========================================================================================\n\nrhys@metatron:~/repo/learning.repo$ ltrace update-cache --add w1d4p1.c\n__libc_start_main(0x80496b0, 3, 0xbffff854, 0x804ae20, 0x804ae80 <unfinished ...>\ngetenv(\"GIT_INDEX_FILE\")                         = NULL\nsnprintf(\".git/index.lock\", 4097, \"%s.lock\", \".git/index\") = 15\nopen(\".git/index.lock\", 194, 0600)               = 3\n__cxa_atexit(0x8049690, 0, 0, 0xb7f8de80, 0xbffff7c8) = 0\n__errno_location()                               = 0xb7d59280\ngetenv(\"SHA1_FILE_DIRECTORY\")                    = NULL\naccess(\".git/objects\", 1)                        = 0\ngetenv(\"GIT_INDEX_FILE\")                         = NULL\nopen(\".git/index\", 0, 026777021220)              = 4\n__fxstat(3, 4, 0xbffff710)                       = 0\n__errno_location()                               = 0xb7d59280\nmmap(0, 176, 1, 2, 4)                            = 0xb7fe8000\nclose(4)                                         = 0\nSHA1_Init(0xbffff660, 0xb7e67bc8, 0xb7fc2290, 0x804870e, 96) = 1\nSHA1_Update(0xbffff660, 0xb7fe8000, 156, 0x804870e, 96) = 1\nSHA1_Final(0xbffff640, 0xbffff660, 156, 0x804870e, 96) = 1\ncalloc(27, 4)                                    = 0x8050008\nopen(\"w1d4p1.c\", 0, 044653)                      = -1\n__errno_location()                               = 0xb7d59280\nfputs(\"fatal: \", 0xb7f86f60fatal: )                     = 1\nvfprintf(0xb7f86f60, \"Unable to add %s to database\", 0xbffff794Unable to add w1d4p1.c to database) = 34\nfputc('\\n', 0xb7f86f60\n)                          = 10\nexit(1 <unfinished ...>\nunlink(\".git/index.lock\")                        = 0\n+++ exited (status 1) +++\nrhys@metatron:~/repo/learning.repo$      \n"},{"id":"1750","messageId":"200504261744.44394.rhys@rhyshardwick.co.uk","threadId":"331","inReplyTo":"200504261735.47008.rhys@rhyshardwick.co.uk","subject":"(SOLVED) Re: cg-add and update-cache add fails","fromName":"Rhys Hardwick","fromEmail":"rhys@rhyshardwick.co.uk","sentAt":"2005-04-26T16:44:44Z","receivedAt":"2005-04-26T16:44:44Z","isPatch":false,"sender":{"key":"rhys@rhyshardwick.co.uk","avatar":null},"body":"Ok, I have been known to be silly.  But this silly? :)\n\nCreate the file, then add it to the repository.  Makes sense really.\n\nRhys\n\nOn Tuesday 26 Apr 2005 17:35, Rhys Hardwick wrote:\n> Hey there,\n>\n> I posted a little while ago about this, but thought I would collate all my\n> findings.  I am very lost.  Trying to add files to the repository does not\n> seem to work, no matter which git repository I try.  Creating new trees and\n> updating current trees, as well as removing files is not a problem.  All\n> other areas of git seem to work perfectly.  I am currently using\n> cogito-0.8. This error started to occur in pasky-0.63.\n>\n> Here is the error I get:\n>\n> rhys@metatron:~/repo/learning.repo$ cg-add w1p4d1.c\n> fatal: Unable to add w1p4d1.c to database\n> rhys@metatron:~/repo/learning.repo$ update-cache --add w1p4d1.c\n> fatal: Unable to add w1p4d1.c to database\n>\n> All the files under the .git folder appear to be owned by me, and are\n> read-writable.  The disk is not full.\n>\n> I have attached the output from strace and ltrace.\n>\n> If anyone could shed any light on why this might be happening, I would be\n> very grateful.\n>\n> Rhys\n\n\n"},{"id":"1755","messageId":"Pine.LNX.4.21.0504261349210.30848-100000@iabervon.org","threadId":"331","inReplyTo":"200504261744.44394.rhys@rhyshardwick.co.uk","subject":"Re: (SOLVED) Re: cg-add and update-cache add fails","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2005-04-26T17:51:54Z","receivedAt":"2005-04-26T17:51:54Z","isPatch":false,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"On Tue, 26 Apr 2005, Rhys Hardwick wrote:\n\n> Ok, I have been known to be silly.  But this silly? :)\n> \n> Create the file, then add it to the repository.  Makes sense really.\n\nYou might do well to send in a patch that gives a useful error message,\nlike \"something.c: File not found\", since other people have been known to\nbe silly, too.\n\n\t-Daniel\n*This .sig left intentionally blank*\n\n"},{"id":"1775","messageId":"20050426190201.GD13224@pasky.ji.cz","threadId":"331","inReplyTo":"200504261735.47008.rhys@rhyshardwick.co.uk","subject":"Re: cg-add and update-cache add fails","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2005-04-26T19:02:01Z","receivedAt":"2005-04-26T19:02:01Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Tue, Apr 26, 2005 at 06:35:46PM CEST, I got a letter\nwhere Rhys Hardwick <rhys@rhyshardwick.co.uk> told me that...\n> Here is the error I get:\n> \n> rhys@metatron:~/repo/learning.repo$ cg-add w1p4d1.c\n> fatal: Unable to add w1p4d1.c to database\n> rhys@metatron:~/repo/learning.repo$ update-cache --add w1p4d1.c\n> fatal: Unable to add w1p4d1.c to database\n> \n> All the files under the .git folder appear to be owned by me, and are \n> read-writable.  The disk is not full.  \n\nCould you please show output of ls -l w1p4d1.c, done in the same\ndirectory?\n\nThanks,\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nC++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor\n"}]}