[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: more infos on the msword import crash
From:       Stephan Kulow <coolo () kde ! org>
Date:       2001-04-26 11:05:58
[Download RAW message or body]

On Thursday, 26. April 2001 04:00, shaheed wrote:
> How strange. In my experience SIGBUS usually means an attempt to do an
> unaligned access (e.g. a U16 at addresses 0x3). Since m_fib is meant to be
> a packed structure with potnetially unaligned members, this probably means
> that we are missing the compiler tricks required for Solaris in
> filters/olefilters/winword97/mswordgenerated.h.

Hi!

I looked it up and it makes the code really ugly as you have to put a #pragma 
pack(1) in front of each structure and a #pragma pack(0) behind it to revert 
the effect. As this is all surrounded by a #if defined(__SUN_PRO_CC) it 
doesn't really get nicer. DECXX has this __unaligned hack to disable the pack 
for a single call, but I couldn't find something like this for SunCC.

But I'm trying if it helps the crash and then I'm going to commit.

Greetings, Stephan

-- 
People in cars cause accidents. Accidents in cars cause people.
_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic