[Bug 342433] Re: hexdump :: irregular illegal seek

Ancoron Luziferis 342433 at bugs.launchpad.net
Mon Jan 30 07:17:52 UTC 2012


Hi Ralph,

could you please download and execute the updated test script I have
provided to verify that your version is running correctly?

I just tested again on an Ubuntu 11.04 that has bsdmainutils 8.2.2
(which fails, but is OK since not an LTS release):

$ testHexdump.sh "ABCD"
+-------------------------------------------------------------------------+
| HEXDUMP test script v 1.2                                               |
+-------------------------------------------------------------------------+
| System: Ubuntu 11.04 (natty)
| BSD main utils version: 8.2.2
+------------------------------------------------------------------------->
| Using test string "ABCD"
| Cycles: 1
| Executions per cycle: 1000
+------------------------------------------------------------------------->
Executing test 'echo'...
   :) stable
Executing test 'echo ... | hexdump'...
   :) stable
Executing test 'echo ... | hexdump -x'...
   :) stable
Executing test 'echo ... | hexdump -x -s 1'...
   :( 61 / 1000 executions failed
Executing test 'echo ... | sed ... | iconv ... | hexdump -x -s 2'...
   :( 70 / 1000 executions failed
Executing test 'echo ... | xxd -s 1'...
   :) stable
Executing test 'echo ... | od -x -j 1'...
   :) stable


...on the other hand an 11.10 installation with bsdmainutils 8.2.3 seems to be fine:

$ ./bin/testHexdump.sh "ABCD"
+-------------------------------------------------------------------------+
| HEXDUMP test script v 1.2                                               |
+-------------------------------------------------------------------------+
| System: Ubuntu 11.10 (oneiric)
| BSD main utils version: 8.2.3
+------------------------------------------------------------------------->
| Using test string "ABCD"
| Cycles: 1
| Executions per cycle: 1000
+------------------------------------------------------------------------->
Executing test 'echo'...
   :) stable
Executing test 'echo ... | hexdump'...
   :) stable
Executing test 'echo ... | hexdump -x'...
   :) stable
Executing test 'echo ... | hexdump -x -s 1'...
   :) stable
Executing test 'echo ... | sed ... | iconv ... | hexdump -x -s 2'...
   :) stable
Executing test 'echo ... | xxd -s 1'...
   :) stable
Executing test 'echo ... | od -x -j 1'...
   :) stable


** Attachment added: "Test script v1.2"
   https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/342433/+attachment/2700784/+files/testHexdump.sh

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bsdmainutils in Ubuntu.
https://bugs.launchpad.net/bugs/342433

Title:
  hexdump :: irregular illegal seek

Status in “bsdmainutils” package in Ubuntu:
  Confirmed
Status in “bsdmainutils” package in Debian:
  Fix Released

Bug description:
  Binary package hint: bsdmainutils

  I just found out that the hexdump program from the bsdmainutils
  package at least version 6.1.10ubuntu2 (also version 6.1.6 in Debian
  4) for architecture AMD64 throws an "illegal seek" error when dealing
  with stdin input while using the -s option.

  Simple test: echo "test" | hexdump -s 1

  Most times all things are OK but sometimes it just throws an error:
  "hexdump: stdin: Illegal seek"

  The same tests made with "od" or "xxd" are OK.

  I've attached a simple test script to verify the problem
  ("testBackslashHex.sh").

  1.) using Ubuntu 8.10 (kernel 2.6.27.11-generic)
  2.) bsdmainutils 6.1.10ubuntu2
  3.) + 4.) see text

  Ancoron

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/342433/+subscriptions




More information about the foundations-bugs mailing list