Bug 23351 - ksh fails to execute (alignment problems)
Summary: ksh fails to execute (alignment problems)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: pdksh
Version: 7.0
Hardware: ia64
OS: Linux
high
high
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-04 21:52 UTC by James Bottomley
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-01-05 12:39:52 UTC
Embargoed:


Attachments (Terms of Use)

Description James Bottomley 2001-01-04 21:52:43 UTC
When you execute ksh, it gives:

ksh(26747): unaligned access to 0x600000000000d5e8, ip=0x20000000000a92d0
Bus error (core dumped)

This can be fixed by making the default allocation alignment 16 bytes on
the
ia64 platform with the following patch:

--- pdksh-5.2.14/alloc.c        Tue May 18 10:45:09 1999
+++ pdksh-patch/alloc.c Mon Jul 31 14:10:43 2000
@@ -110,6 +110,11 @@
        Block  *block;
        struct {int _;} junk;   /* alignment */
        double djunk;           /* alignment */
+#ifdef __ia64__
+       /* IA64 requires 16 byte alignment for some objects, so make
+        * this the minimum allocation size */
+       char    ajunk[16];
+#endif
 };
 
 struct Block {

Comment 1 Trond Eivind Glomsrxd 2001-01-05 12:39:49 UTC
Thanks for the patch, will take a look at it soonish.

Comment 2 Trond Eivind Glomsrxd 2001-01-08 23:10:47 UTC
Verified, applied and upstreamed - look for pdksh-5.2.14-10



Note You need to log in before you can comment on or make changes to this bug.