[openib-general] Re: mstflint failing on sparc64

Michael S. Tsirkin mst at mellanox.co.il
Thu Jan 6 13:52:57 PST 2005


Hello!
Quoting r. Michael S. Tsirkin (mst at mellanox.co.il) "[openib-general] Re: mstflint failing on sparc64":
> > > > tat:~# ./mstflint -d 81:00.0 q
> > > > Bus error
> > > 
> > > Interesting. Maybe mmap does not work as it should?
> > > Could you run it under gdb and do a backtrace? I also added
> > > a sanity checks on mmap result, maybe that will help us
> > > see what is the problem.
> > 
> > tat:~# gdb ./mstflint
> > GNU gdb 6.3-debian
> > Copyright 2004 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you
> > are
> > welcome to change it and/or distribute copies of it under certain
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for
> > details.
> > This GDB was configured as "sparc-linux"...Using host libthread_db
> > library "/lib/libthread_db.so.1".
> > 
> > (gdb) run -d 81:00.0 q
> > Starting program: /root/mstflint -d 81:00.0 q
> > warning: linux_test_for_tracefork: unexpected result from waitpid
> > (10830, status 0xb7f)
> > 
> > Program received signal SIGBUS, Bus error.
> > 0x00011400 in mread4 (mf=0x2c050, offset=984060, value=0xeffff1cc)
> >     at mtcr.h:355
> > 355     mtcr.h: No such file or directory.
> >         in mtcr.h
> > (gdb) bt
> > #0  0x00011400 in mread4 (mf=0x2c050, offset=984060, value=0xeffff1cc)
> >     at mtcr.h:355
> > #1  0x00011b24 in Flash::open (this=0xeffff6e8, device=0x2c050 "")
> >     at flint.cpp:909
> > #2  0x00017554 in main (ac=4, av=0xeffffda4) at flint.cpp:3589
> 
> 
> Crashes on access to mapped memory.
> Could you print mf->ptr and offset at that point?
> Generally, do yo happend to know if mmapping /dev/mem
> to userspace works on this architecture?
> 
> [... snip ...]

Tom, if you can try it before the weekend I'll be thankful,
I am working on Sundays, but I dont have a sparc.

mst



More information about the general mailing list