Date: Fri, 23 Mar 2001 22:53:04 -0500 From: tcn <nospam@videotron.ca> To: Terry Lambert <tlambert@primenet.com> Cc: leclercn@videotron.ca, Greg Lehey <grog@lemis.com>, freebsd-alpha@FreeBSD.ORG Subject: Re: Vinum(8) segfault on alpha - DEV_T SIZE PROBLEM!!! Message-ID: <3ABC1A20.7060701@videotron.ca> References: <200103240308.UAA21273@usr07.primenet.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Nope, got an unaligned access (panic trap) using this. It's really
a size mismatch!
Normand Leclerc
leclercn@videotron.ca
Terry Lambert wrote:
>> I think I found the problem. There is a size mismatch between
>> dev_t from kernel and dev_t from standard libraries. I let vinum print
>> out sizes of drive structure, got 120 from module and 118 from vinum. I
>> then printed out the only thing that I could find that could be generic:
>> dev_t structure.
>>
>> The size of dev_t from module is 8 but from vinum is 4. Types
>> defines dev_t as an int of 32 bits for non alpha BUT as a pointer for
>> alpha (64 bits)...
>
>
> #pragma pack(1).
>
>
> Terry Lambert
> terry@lambert.org
> ---
> Any opinions in this posting are my own and not those of my present
> or previous employers.
[-- Attachment #2 --]
<html><head></head><body> Nope, got an unaligned access (panic trap) using this. It's really a size mismatch!<br>
<br>
Normand Leclerc<br>
<a class="moz-txt-link-abbreviated" href="mailto:leclercn@videotron.ca">leclercn@videotron.ca</a><br>
<br>
<br>
Terry Lambert wrote:<br>
<blockquote type="cite" cite="mid:200103240308.UAA21273@usr07.primenet.com">
<blockquote type="cite"><pre wrap=""> I think I found the problem. There is a size mismatch between <br>dev_t from kernel and dev_t from standard libraries. I let vinum print <br>out sizes of drive structure, got 120 from module and 118 from vinum. I <br>then printed out the only thing that I could find that could be generic: <br>dev_t structure.<br><br> The size of dev_t from module is 8 but from vinum is 4. Types <br>defines dev_t as an int of 32 bits for non alpha BUT as a pointer for <br>alpha (64 bits)...<br></pre></blockquote>
<pre wrap=""><!----><br>#pragma pack(1).<br><br><br> Terry Lambert<br> <a class="moz-txt-link-abbreviated" href="mailto:terry@lambert.org">terry@lambert.org</a><br>---<br>Any opinions in this posting are my own and not those of my present<br>or previous employers.<br></pre>
</blockquote>
<br>
</body></html>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ABC1A20.7060701>
