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>
next in thread | previous in thread | raw e-mail | index | archive | help
--------------070800070702060003020402 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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. --------------070800070702060003020402 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <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> --------------070800070702060003020402-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ABC1A20.7060701>