From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,eeb805df6374b43e X-Google-Attributes: gid111c93,public From: paul@wau.mis.ah.nl (Paul Slootman) Subject: Re: How to trace where "unaligned access" is happening? Date: 1998/11/10 Message-ID: <7294m8$dlf$1@pcpaul.wau.mis.ah.nl>#1/1 X-Deja-AN: 410282575 X-Nntp-Posting-Host: p1imwe29.wau.mis.ah.nl Sender: news@ahisinfr.xs4all.nl (news at janux) References: <71s5ah$ema$1@pcpaul.wau.mis.ah.nl> <71suo4$ijk@news1.newsguy.com> Organization: Albert Heijn Winkelautomatisering Newsgroups: comp.os.linux.alpha Greg Lindahl wrote: >paul@wau.mis.ah.nl (Paul Slootman) writes: > >> I have a couple of programs which repeatably generate "unaligned access >> traps" in the kernel. I know what type of thing causes this, so I'd like >> to track down where it happens to be able to fix it. > >Did you try looking in the Alpha Linux FAQ? Yes, but no go. Anyway, I've discovered it now. FYI: If you get a message like so: identd(15285): unaligned trap at 0000000120024a9c: 000000011ffffa34 2d 10 you fire up gdb on identd (which must be linked with -g, and preferably statically with the debugging version of libc) and type: info line *0x0000000120024a9c which tells you: Line 888 of "vfscanf.c" starts at address 0x120024a40 <_IO_vfscanf+10400> and ends at 0x120024aa4 <_IO_vfscanf+10500>. So, the problem is at line 888 of vfscanf.c. Paul Slootman -- home: paul@wurtel.demon.nl | work: paul@murphy.nl | debian: paul@debian.org http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands