Received: (at submit) by bugs.debian.org; 16 Jun 1997 02:02:55 +0000 Received: (qmail 27701 invoked from network); 16 Jun 1997 02:02:52 -0000 Received: from kleinmann.com (root@204.215.142.65) by master.debian.org with SMTP; 16 Jun 1997 02:02:51 -0000 Received: from sgk.tiac.net (sgk@lo [127.0.0.1]) by kleinmann.com (8.8.5/8.8.5) with ESMTP id WAA00722; Sun, 15 Jun 1997 22:11:33 -0400 Message-Id: <199706160211.WAA00722@kleinmann.com> Reply-to: sgk@kleinmann.com Subject: 'strip' lseeks anomalously large value To: submit@bugs.debian.org cc: sgk@kleinmann.com Date: Sun, 15 Jun 1997 22:11:33 -0400 From: "Susan G. Kleinmann" Package: binutils Version: 2.7.0.9-3 In the process of trying to make some boot-floppies, I got stuck on a script that called 'strip'. The precise command invocation was: strip --remove-section=.note --remove-section=.comment \ --remove-section=.debug /var/tmp/lib.$$ 'strip' exits with a comment something like: strip: sta29909: Invalid argument ^^^^^ this changes on each invocation I ran 'strace strip' on the appropriate lib file, and got result given below. It looks as if there's an lseek on some huge value: lseek(4, 4294967295, SEEK_SET) = -1 EINVAL (Invalid argument) The details of the strace are attached below. Susan Kleinmann ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =======START: strace strip /tmp/l17822 execve("/usr/bin/strip", ["strip", "/tmp/l17822"], [/* 19 vars */]) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40007000 mprotect(0x40000000, 20301, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 mprotect(0x8048000, 146493, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=6131, ...}) = 0 open("/etc/ld.so.cache", O_RDONLY) = 3 mmap(0, 6131, PROT_READ, MAP_SHARED, 3, 0) = 0x40008000 close(3) = 0 stat("/etc/ld.so.preload", 0xbffffcd0) = -1 ENOENT (No such file or directory) open("/usr/lib/libbfd.so.2.7.0.9", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096 mmap(0, 229376, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000a000 mmap(0x4000a000, 212603, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000a000 mmap(0x4003e000, 15708, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x33000) = 0x4003e000 close(3) = 0 mprotect(0x4000a000, 212603, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 open("/usr/lib/libc.so.5", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.5", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096 mmap(0, 761856, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40042000 mmap(0x40042000, 528883, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x40042000 mmap(0x400c4000, 19556, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x81000) = 0x400c4000 mmap(0x400c9000, 206540, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400c9000 close(3) = 0 mprotect(0x40042000, 528883, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 munmap(0x40008000, 6131) = 0 mprotect(0x8048000, 146493, PROT_READ|PROT_EXEC) = 0 mprotect(0x4000a000, 212603, PROT_READ|PROT_EXEC) = 0 mprotect(0x40042000, 528883, PROT_READ|PROT_EXEC) = 0 mprotect(0x40000000, 20301, PROT_READ|PROT_EXEC) = 0 personality(PER_LINUX) = 0 geteuid() = 0 getuid() = 0 getgid() = 0 getegid() = 0 brk(0x806d6c8) = 0x806d6c8 brk(0x806d6f0) = 0x806d6f0 brk(0x806e000) = 0x806e000 getpid() = 18429 stat("/tmp/sta18429", 0xbffffc7c) = -1 ENOENT (No such file or directory) brk(0x806f000) = 0x806f000 open("/tmp/l17822", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=425904, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000 lseek(3, 0, SEEK_SET) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096 lseek(3, 409600, SEEK_SET) = 409600 read(3, "\1\0\0\00001.01\0\0\0\10\0\0\0\0"..., 4096) = 4096 lseek(3, 0, SEEK_SET) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096 brk(0x8070000) = 0x8070000 brk(0x8071000) = 0x8071000 brk(0x8072000) = 0x8072000 unlink("/tmp/sta18429") = -1 ENOENT (No such file or directory) open("/tmp/sta18429", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 brk(0x8073000) = 0x8073000 brk(0x8075000) = 0x8075000 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 brk(0x8079000) = 0x8079000 brk(0x807d000) = 0x807d000 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40009000 lseek(4, 52, SEEK_SET) = 52 write(4, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 brk(0x8081000) = 0x8081000 read(3, "\"\0\n\0004\5\0\0\300\306\0\0\0\0"..., 4096) = 4096 read(3, "\22\0\n\0\246\20\0\0$1\1\0\0\0\0"..., 4096) = 4096 read(3, "\"\0\n\0R\34\0\0|N\2\0\356\1\0\0"..., 4096) = 4096 read(3, "\22\0\n\0?)\0\0X\251\4\0#\0\0\0\""..., 4096) = 4096 write(4, "\255\0\0\0\317\1\0\0\0\0\0\0\25\1"..., 4096) = 4096 write(4, "R\5\0\0 \307\0\0\0\0\0\0\"\0\n\0"..., 12288) = 12288 read(3, "east_marker\0_IO_switch_to_main_"..., 4096) = 4096 read(3, "et\0getdtablesize\0xdr_enum\0xdr"..., 4096) = 4096 write(4, "b)\0\0\340\7\6\0@\0\0\0\21\0\r\0"..., 4096) = 4096 write(4, "o_backup_area\0_IO_switch_to_get"..., 4096) = 4096 read(3, "\10\0\0\0\20\360\5\0\10\0\0\0\24"..., 4096) = 4096 read(3, "\1\352\1\0\240\1\6\0\1\311\0\0\260"..., 4096) = 4096 write(4, "r_opaque\0xdr_accepted_reply\0xd"..., 4096) = 4096 write(4, "(\360\5\0\10\0\0\0,\360\5\0\10\0"..., 4096) = 4096 read(3, "\7\271\1\0\334\v\6\0\7n\0\0\340\v"..., 4096) = 4096 write(4, "\330\1\6\0\1i\1\0\340\1\6\0\1k\1"..., 4096) = 4096 read(3, "\340\363\377\377\377\243\20\3\0\0"..., 4096) = 4096 write(4, "\364\v\6\0\7\224\1\0\370\v\6\0\7"..., 941) = 941 lseek(4, 41956, SEEK_SET) = 41956 write(4, "\377\263\4\0\0\0\377\243\10\0\0\0"..., 4096) = 4096 mmap(0, 315392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400fc000 read(3, "E\f\205\300u\5\270\1\0\0\0\213\31"..., 4096) = 4096 read(3, "\377\377\211F\4\203\304\10\205\300"..., 4096) = 4096 read(3, "\204\300u\330\203\372\1}\0071\300"..., 4096) = 4096 read(3, "\203\300\4\277\7\0\0\0\231\367\377"..., 4096) = 4096 read(3, "\215G\1P\353>\2156\215Q\0109<\20"..., 4096) = 4096 read(3, "\24\203\372\377tb\205\322\17\205"..., 4096) = 4096 read(3, "\371/\17\204\354\0\0\0\200\371-u"..., 4096) = 4096 read(3, "\f\0269\321v:\211\320)\310\203\340"..., 4096) = 4096 read(3, "\213D$\30P\350jo\377\377\211\301"..., 4096) = 4096 read(3, "\374\271\377\377\377\377\362\256"..., 4096) = 4096 read(3, "T$T\211\223\310J\0\0\203\304\10\211"..., 4096) = 4096 read(3, "\377\377\211\306\203\304\10\205\366"..., 4096) = 4096 read(3, "\213D$(\213\0\211D$(\213|$(W\350"..., 4096) = 4096 read(3, "9\0u\320\200?\0\17\205\367\375\377"..., 4096) = 4096 read(3, "\366u\21\350\234\25\377\377\307\0"..., 4096) = 4096 read(3, "\250\373\377\377\377ux\213\223\344"..., 4096) = 4096 read(3, "\377\211\6\353C\215v\0\203E\20\4"..., 4096) = 4096 read(3, "\213\265\344\372\377\377\213\205"..., 4096) = 4096 read(3, "9\215\364\372\377\377sJ\213\205\364"..., 4096) = 4096 read(3, "\0\17\204\256\2\0\0\213l$$\203\305"..., 4096) = 4096 read(3, "|$\20\213\203\4\6\0\0\307\0\0\0\0"..., 4096) = 4096 read(3, "8\0u)\215\203\367\217\377\377Pj\5"..., 4096) = 4096 read(3, "\271\377\377\377\377\362\256\367"..., 4096) = 4096 read(3, "\377\377\213\205(\377\377\377\215"..., 4096) = 4096 read(3, "\376\377\203\304\20f\211G\22\213"..., 4096) = 4096 read(3, "u\252\17\266\21A\211L$\20\211\370"..., 4096) = 4096 read(3, "\17<\2u\7\377D$\24\353\2\220F\350"..., 4096) = 4096 read(3, "\377\211\205\\\375\377\377\366@\10"..., 4096) = 4096 read(3, "\0\203~D\1u\5\270\2\0\0\0[^_]\203"..., 4096) = 4096 read(3, "\213\2250\377\377\377\213\205 \377"..., 4096) = 4096 read(3, "\0\0\211\6\211\265l\1\0\0\211\362"..., 4096) = 4096 read(3, "\375\377Rj\4\213\214$\220\0\0\0Q"..., 4096) = 4096 read(3, "D$8\213\0\211D$(H\213T$8\211\2\203"..., 4096) = 4096 read(3, "\303\215v\0\213L$\24\377\1\213|$"..., 4096) = 4096 read(3, "[^_]\203\304\4\303\307F\10\0\0\0"..., 4096) = 4096 read(3, "\0\0\213\205\210\327\377\377\351"..., 4096) = 4096 read(3, "\370\3}1\203\370\2}\27\213\24\226"..., 4096) = 4096 read(3, "B>\211\302\301\372\5k\302:\215\4"..., 4096) = 4096 read(3, "t\33\213}\20\367\307 \0\0\0\17\205"..., 4096) = 4096 read(3, "\5\330\2\0\\\330\2\0\\\330\2\0\\"..., 4096) = 4096 read(3, "\34\307D$ \0\0\0\0\307D$$\0\0\0\0"..., 4096) = 4096 read(3, "\367t=\205\377t1\205\366t%\213\7"..., 4096) = 4096 read(3, "\213\215p\377\377\377Q\350\350C\375"..., 4096) = 4096 read(3, "t\rOt\37\212\1AB\210\2\204\300u\325"..., 4096) = 4096 read(3, "\1\0\0\213\274$\370\1\0\0009\362"..., 4096) = 4096 read(3, "\0\0\211\204$\274\1\0\0\205\355u"..., 4096) = 4096 read(3, "$\24\2\0\0\0\0\0\0\277\1\0\0\0\213"..., 4096) = 4096 read(3, "\0001\322)\372\31\360\211\327\211"..., 4096) = 4096 read(3, "\0\0+\274$4\1\0\0\307\204$\20\1\0"..., 4096) = 4096 read(3, "X\307D$\\\0\0\0\0\215D$HPVj\r\350"..., 4096) = 4096 read(3, "\315\374\377\203\304\10\205\300t"..., 4096) = 4096 read(3, "\34\0\0\0\0\213V\30\213F\20)\320"..., 4096) = 4096 read(3, "\307D$\24\0\0\0\0\213|$L\211|$$\213"..., 4096) = 4096 read(3, "\377\213}\20\301\347\2\211\275\364"..., 4096) = 4096 read(3, "l$p\307D$`\0\0\0\0\203|$x\1t2\177"..., 4096) = 4096 read(3, "F\0301\3009l$\20t\5\270\377\377\377"..., 4096) = 4096 read(3, "\353\'\2156\213u\354\17\266\26F\211"..., 4096) = 4096 read(3, "\203\342\3\205\311~\37\205\322t%"..., 4096) = 4096 read(3, "L$`Q\350\353M\374\377\211\302\213"..., 4096) = 4096 read(3, "\0049E\20\177\3261\322\353\31\215"..., 4096) = 4096 read(3, "\0\215v\0\213t$<\213\4\216\213|$"..., 4096) = 4096 read(3, "LW\213t$,V\350\310\25\374\377\211"..., 4096) = 4096 read(3, "WQVV\350\33\20\374\377\353\20\220"..., 4096) = 4096 read(3, "\213\214$0\1\0\0Q\213\214$,\1\0\0"..., 4096) = 4096 read(3, "\200D\1\0tD\1\0\350B\1\0\350B\1\0"..., 4096) = 4096 read(3, "\24\1\0\0009\264$\24\1\0\0s\3339"..., 4096) = 4096 read(3, "\f\213\224$ \2\0\0\2154\225\0\0\0"..., 4096) = 4096 read(3, "\302\10\211\224$\30\1\0\0P\213\214"..., 4096) = 4096 read(3, "\213\214$$\1\0\0\323\350\211\204"..., 4096) = 4096 read(3, "\361)\321\211\214$ \1\0\0Q\270\1"..., 4096) = 4096 read(3, "\224\373\377\211\204$\324\1\0\0\213"..., 4096) = 4096 read(3, "\204\264\24\2\0\0\0\0\0\0F9\356\17"..., 4096) = 4096 read(3, "\331\0\0\0\307\204$\30\2\0\0\0\0"..., 4096) = 4096 read(3, "\24\2\0\0\211\204$\30\2\0\0\307\204"..., 4096) = 4096 read(3, "\361\213\223\204\5\0\0\213\22f\213"..., 4096) = 4096 read(3, "\4VW\350\f@\373\377\203\304\f\205"..., 4096) = 4096 write(4, "\377\243\10\4\0\0h\370\7\0\0\351"..., 1296) = 1296 lseek(4, 47360, SEEK_SET) = 47360 write(4, "VS\350\0\0\0\0[\201\303uO\5\0\215"..., 311296) = 311296 munmap(0x400fc000, 315392) = 0 brk(0x8088000) = 0x8088000 read(3, "on abort\0Network dropped connec"..., 4096) = 4096 read(3, "ory\0clnttcp_create: %s\n\0out o"..., 4096) = 4096 read(3, "[truncated] \0%s\0\n\0/dev/conso"..., 4096) = 4096 read(3, "\302\0\0\0\303\0\0\0\304\0\0\0\305"..., 4096) = 4096 read(3, "\3318\322\301\324\0254c\34\0\0\0"..., 4096) = 4096 read(3, "NAL RECORDS:\n\0\n;; ...truncate"..., 4096) = 4096 write(4, "\4\325<\1w\342\203\317 \200>.um\275"..., 1273) = 1273 lseek(4, 359932, SEEK_SET) = 359932 write(4, "Quota exceeded\0Remote I/O error"..., 20480) = 20480 read(3, "\371\202\5\0\342\202\5\0\273\202"..., 4096) = 4096 read(3, "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1"..., 4096) = 4096 write(4, "lnet\0smtp\0time\0rlp\0name\0who"..., 4091) = 4091 lseek(4, 384504, SEEK_SET) = 384504 write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 write(4, "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^"..., 4096) = 4096 read(3, "2.1 Objective-C snapshot 960906\0"..., 4096) = 4096 read(3, "snapshot 960906\0\0GCC: (GNU) 2."..., 4096) = 4096 read(3, "\0GCC: (GNU) 2.7.2.1 Objective-C"..., 4096) = 4096 read(3, "2.1 Objective-C snapshot 960906\0"..., 4096) = 4096 write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 write(4, " 960906\0\0GCC: (GNU) 2.7.2.1 Ob"..., 8192) = 8192 read(3, "\1\0\0\00001.01\0\0\0\10\0\0\0\0"..., 4096) = 4096 write(4, "ctive-C snapshot 960906\0\0GCC: "..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4016 write(4, "\1\0\0\00001.01\0\0\0\10\0\0\0\0"..., 2472) = 2472 lseek(4, 4294967295, SEEK_SET) = -1 EINVAL (Invalid argument) lseek(4, 0, SEEK_CUR) = 411552 stat("/etc/locale/C/libc.cat", 0xbffff788) = -1 ENOENT (No such file or directory) stat("/usr/share/locale/C/libc.cat", 0xbffff788) = -1 ENOENT (No such file or directory) stat("/usr/share/locale/libc/C", 0xbffff788) = -1 ENOENT (No such file or directory) stat("/usr/share/locale/C/libc.cat", 0xbffff788) = -1 ENOENT (No such file or directory) stat("/usr/local/share/locale/C/libc.cat", 0xbffff788) = -1 ENOENT (No such file or directory) write(2, "strip: /tmp/sta18429: Invalid ar"..., 39strip: /tmp/sta18429: Invalid argument ) = 39 write(4, "\0.symtab\0.strtab\0.shstrtab\0."..., 206) = 206 lseek(4, 0, SEEK_SET) = 0 write(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 52) = 52 lseek(4, 411760, SEEK_SET) = 411760 write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960 close(4) = 0 munmap(0x40009000, 4096) = 0 close(3) = 0 munmap(0x40008000, 4096) = 0 unlink("/tmp/sta18429") = 0 _exit(1) = ? =======END: strace strip /tmp/l17822