cp leads to "error processing extended attributes: Argument list too long"

With certain PDF files to which I've added a lot of extended attributes (using Skim.app, a PDF reader/annotator which stores its notes in extended attributes), Chronosync and Finder drag-drops don't preserve extended attributes like they're supposed to (i.e. the notes aren't viewable on copies of the document). When I use cp to do they copying, the following message appears in system.log:

error processing extended attributes: Argument list too long

Googling it returns no results 😟

iMac G5, Mac OS X (10.4.10)

Posted on Jul 7, 2007 6:41 PM

Reply
5 replies

Jul 8, 2007 6:30 AM in response to Bill Scott

Bill

Are you sure you are getting this message from a manual use of cp?

This message will appear in system.log every time a periodic task is run. It is caused by the line:

cp /dev/null $tmp_output

and the fix is simple:

sudo -s
cd /usr/sbin
mv periodic periodic.orig
sed 's@cp /dev/null@>@' periodic.orig > periodic
chmod +x,u-w periodic
exit

You can tell if this is the cause of your error by comparing the time in system.log with the output of ls -l /var/log/*.out which will tell you when periodic last ran.

However, this is not the same as Derick's message. Not seen that before.

Jul 9, 2007 5:22 AM in response to Derick Fay

Hi Derick,

error processing extended attributes: Argument list too long


I have no idea why you get this error when copying a file...

There is a max size for each extended attribute (about 3800bytes), and if I try to create (by using a simple C program) an attribute larger than this limit then I get "Argument list too long" error. But in your case you are trying to make a copy of an existing PDF file whose extended attributes should be smaller than the limit, of course (Skim has no magical power of creating an attribute larger than the limit; if the note is too large then I guess Skim just splits the note into two or more attributes).

Q1: do you get the error only if you (try to) copy a PDF file with large notes? or you also get the error for a file with only small notes? How about a PDF file with many small notes?

Q2: are you copying the PDF file to external volumes? If so, are you sure it is HFS+? What happens if you copy the PDF file to the same internal disk volume, for example

cp your.pdf tmp.pdf

PowerMacG4, PowerBookG4, iMac(C2D) Mac OS X (10.4.9)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

cp leads to "error processing extended attributes: Argument list too long"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.