public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/3763] New: testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64
@ 2006-12-19 12:58 mark at klomp dot org
  2006-12-20 13:51 ` [Bug general/3763] " mark at klomp dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mark at klomp dot org @ 2006-12-19 12:58 UTC (permalink / raw)
  To: frysk-bugzilla

This test passes just fine on x86, but fails as follows on x86_64:

1) testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError:
section-1-alignment expected:<0> but was:<4>
   at lib.elf.tests.TestElf.testObjectFile(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

-- 
           Summary: testObjectFile(lib.elf.tests.TestElf)junit.framework.Ass
                    ertionFailedError: section-1-alignment expected:<0> but
                    was:<4> on x86_64
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: mark at klomp dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=3763

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug general/3763] testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64
  2006-12-19 12:58 [Bug general/3763] New: testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64 mark at klomp dot org
@ 2006-12-20 13:51 ` mark at klomp dot org
  2006-12-23 15:20 ` jan dot kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2006-12-20 13:51 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2006-12-20 13:51 -------
Note that this test was disabled till recently according to bug #2712

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3763

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug general/3763] testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64
  2006-12-19 12:58 [Bug general/3763] New: testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64 mark at klomp dot org
  2006-12-20 13:51 ` [Bug general/3763] " mark at klomp dot org
@ 2006-12-23 15:20 ` jan dot kratochvil at redhat dot com
  2007-01-02  9:38 ` mark at klomp dot org
  2007-01-09 14:03 ` jan dot kratochvil at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2006-12-23 15:20 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From jan dot kratochvil at redhat dot com  2006-12-23 15:20 -------
Created an attachment (id=1470)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1470&action=view)
`AC_SYS_LARGEFILE' for whole Frysk as elfutils is using it

This patch should be reviewed by a Frysk architect as I am not sure if this
change really needs to be global.
It is definitely needed for any code sharing ABI with elfutils as elfutils is
already using it.
It is also needed for any code accessing arbitrary files, which can be possibly
larger than 2GB.

Currently the layout:

/* Descriptor for data to be converted to or from memory format.  */
typedef struct
{
  void *d_buf;			/* Pointer to the actual data.	*/
  Elf_Type d_type;		/* Type of this piece of data.	*/
  unsigned int d_version;	/* ELF version.  */
  size_t d_size;		/* Size in bytes.  */
  off_t d_off;			/* Offset into section.  */ 
  size_t d_align;		/* Alignment in section.  */
} Elf_Data;

was handled differently in different parts of Frysk as `off_t' was sometimes
compiled on i686 as 4 bytes and sometimes as 8 bytes, therefore in some cases
`d_align' was fetched from a wrong offset.

After this `AC_SYS_LARGEFILE' fix gets committed the testcase
  frysk-imports$ ./TestRunner lib.elf.tests.TestElf
needs to be updated as currently it expects the buggy value 0 everywhere, there
should be some `expectedDataAlignments' and the alignments should match the
column `Al' of the output of:
  frysk-imports$ readelf -a ./frysk/pkgdatadir/helloworld.o


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3763

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug general/3763] testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64
  2006-12-19 12:58 [Bug general/3763] New: testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64 mark at klomp dot org
  2006-12-20 13:51 ` [Bug general/3763] " mark at klomp dot org
  2006-12-23 15:20 ` jan dot kratochvil at redhat dot com
@ 2007-01-02  9:38 ` mark at klomp dot org
  2007-01-09 14:03 ` jan dot kratochvil at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2007-01-02  9:38 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From mark at klomp dot org  2007-01-02 09:38 -------
Created an attachment (id=1472)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1472&action=view)
alignment info for Elf test

This adds the allignment info to the test.
This works well on x86_64, but not on x86 where the read data always seems to
come out as zero.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3763

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug general/3763] testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64
  2006-12-19 12:58 [Bug general/3763] New: testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64 mark at klomp dot org
                   ` (2 preceding siblings ...)
  2007-01-02  9:38 ` mark at klomp dot org
@ 2007-01-09 14:03 ` jan dot kratochvil at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2007-01-09 14:03 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From jan dot kratochvil at redhat dot com  2007-01-09 14:03 -------
Committed the patch of Comment 2 (to `common/'), after Andrew Cagney's approval.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=3763

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-09 14:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-19 12:58 [Bug general/3763] New: testObjectFile(lib.elf.tests.TestElf)junit.framework.AssertionFailedError: section-1-alignment expected:<0> but was:<4> on x86_64 mark at klomp dot org
2006-12-20 13:51 ` [Bug general/3763] " mark at klomp dot org
2006-12-23 15:20 ` jan dot kratochvil at redhat dot com
2007-01-02  9:38 ` mark at klomp dot org
2007-01-09 14:03 ` jan dot kratochvil at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).