git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Odd behavior with git and cairo-devel repo

From
AHArt Haas <ahaas@airmail.net>
Date
Jun 21, 2006, 01:00 UTC
Message-ID
<20060621010030.GP2820@artsapartment.org>
Hi.

I've been seeing some odd errors with git when it is dealing with the Cairo graphics library repo. The errors include git failing a 'fsck-objects' with a 'Floating point exception' error message and 'git prune' mangling the repo.

A fresh cloning of the repo is needed to see the FPE error. The repo is about 13M in size, btw.

$ git clone git://git.cairographics.org/git/cairo cairo [ ... git clones the repo without problem ... ] $ cd cairo $ git fsck-objects Floating point exception $

The strace of this shows that things bomb after the '.git/index' file is read. Here's the tail end of the strace output ...

close(3) = 0 open(".git/index", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=51472, ...}) = 0 mmap2(NULL, 51472, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb7f4b000 close(3) = 0 --- SIGFPE (Floating point exception) @ 0 (0) --- +++ killed by SIGFPE +++

Now, if the repo is added to and you 'git pull' to update your copy, the 'git fsck-objects' command completes without error.

As for the problem where 'git prune' mangles the local copy, it would happen after a 'git fsck-objects' run succeeds without incident. Then 'git prune' would run, seemingly without problems, and I would try and repack my repo with 'git repack -a -d'. Here, things go boom with SHA1 errors, and subsequent 'git fsck-objects' runs produce errors.

My local 'git' build is current with the 'master' branch. I've observed these problems with the Cairo repo on a machine running Debian unstable, Fedora Core 4, and Fedora Rawhide. The Debian machine uses git built by the current gcc-4.1 package, FC4 uses its current gcc-4.0 package, and rawhide uses its current gcc-4.1 package. All these machines are kept up-to-date with the respective current packages versions for that distro.

Can anyone out in git-land seeing problems with the Cairo git repo, or able to duplicate these problems?

Thanks in advance,
Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
Next: Andre Noll
Message 1 of 7 in “Odd behavior with git and cairo-devel repo”
  1. Art HaasJun 21, 2006
  2. Andre NollJun 21, 2006
  3. Junio C HamanoJun 21, 2006
  4. Art HaasJun 21, 2006
  5. Andre NollJun 21, 2006
  6. Linus TorvaldsJun 21, 2006
  7. Junio C HamanoJun 21, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.