openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: ed <enelson1000@comcast.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Alignment trap - deprecation.pyo
Date: Sun, 14 Mar 2010 14:51:40 -0700	[thread overview]
Message-ID: <1268603500.2247.27.camel@ed-hp-laptop> (raw)
In-Reply-To: <201003141558.24266.holger+oe@freyther.de>

On Sun, 2010-03-14 at 15:58 +0100, Holger Hans Peter Freyther wrote:
> > # /usr/lib/python2.6/site-packages/gtk-2.0/gtk/_lazyutils.pyo
> > matches /usr/lib/python2.6/site-packages/gtk-2.0/gtk/_lazyutils.py
> > import gtk._lazyutils # precompiled
> > from /usr/lib/python2.6/site-packages/gtk-2.0/gtk/_lazyutils.pyo
> > # /usr/lib/python2.6/site-packages/gtk-2.0/gtk/deprecation.pyo
> > matches /usr/lib/python2.6/site-packages/gtk-2.0/gtk/deprecation.py
> > import gtk.deprecation # precompiled
> > from /usr/lib/python2.6/site-packages/gtk-2.0/gtk/deprecation.pyo
> > Alignment trap: python (2412) PC=0x40bfa3c4 Instr=0x280069c0
> > Address=0xffffffff FSR 0x813
> > Segmentation fault
> > 
> > 
> > Does anyone have any ideas why it chokes at deprecation.pyo?????
> 
> No. but you could enable the generation of a coredump with ulimit and then use 
> gdb to figure out where it was generating this alignment trap.
> 
> 

Holger thanks for responding.  I know you and everyone else on the list 
are very busy and I appreciate if I get a response.  I try and find help
using google but that does not always pan out.

So taking your suggestion I am trying to use gdbsever but without much
success.    This is what I have done.

1. Built image to include gdbserver.
2. Downloaded to my PC python2.6-dbg
3. Downloaded GDB Macros and placed in home/ed/  as .gdbinit
4. On host in terminal window
     a. $gdb python
     b. (gdb) target remote 192.168.1.104:2345
     c. where 192.168.1.104 is IP address of target board(mini2440)
     d. Go to target machine and do step 5.
     e. eventually I get connection timed out.
     f.  I can ping the target machine from the host.
5. On target machine
     a. Verify that ulimit is set to unlimted
     b. #gdbserver 192.168.1.100:2345 python pygtkHelloWorld
     c. where 192.168.1.100 is the IP address of the host machine
     d. nothing comes back when I enter the above command.  I would have
thought from reading the wiki page
http://en.wikipedia.org/wiki/Gdbserver that I should see something after
entering the command.

I did an strace on # strace gdbserver 192.168.1.100:2345 python
and to see if it would work with just running python.  I get the
following trace.

root@mini2440:~# strace gdbserver 192.168.1.100:2345 python
execve("/usr/bin/gdbserver", ["gdbserver", "192.168.1.100:2345",
"python"], [/* 12 vars */]) = 0
brk(0)                                  = 0x21000
uname({sys="Linux", node="mini2440", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/var/run/ld.so.cache", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("/lib/tls/v4l/half/libthread_db.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/lib/tls/v4l/half", 0xbe8ae220) = -1 ENOENT (No such file or
directory)
open("/lib/tls/v4l/libthread_db.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/tls/v4l", 0xbe8ae220)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/half/libthread_db.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/tls/half", 0xbe8ae220)     = -1 ENOENT (No such file or
directory)
open("/lib/tls/libthread_db.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/tls", 0xbe8ae220)          = -1 ENOENT (No such file or
directory)
open("/lib/v4l/half/libthread_db.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/v4l/half", 0xbe8ae220)     = -1 ENOENT (No such file or
directory)
open("/lib/v4l/libthread_db.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/v4l", 0xbe8ae220)          = -1 ENOENT (No such file or
directory)
open("/lib/half/libthread_db.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/half", 0xbe8ae220)         = -1 ENOENT (No such file or
directory)
open("/lib/libthread_db.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\0\17\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=26304, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001c000
mmap2(NULL, 57676, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0x40025000
mprotect(0x4002b000, 28672, PROT_NONE)  = 0
mmap2(0x40032000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x5) = 0x40032000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\344K\1\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1127916, ...}) = 0
mmap2(NULL, 1163712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40034000
mprotect(0x40143000, 32768, PROT_NONE)  = 0
mmap2(0x4014b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x10f) = 0x4014b000
mmap2(0x4014e000, 8640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x4014e000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001d000
syscall_983045(0x4001cd40, 0x4001cd40, 0x68c, 0x4001d418, 0x40024060,
0x40024000, 0, 0xf0005, 0x60, 0xffff5874, 0, 0xbe8aeae4, 0, 0xbe8ae7e0,
0x40002010, 0x40002028, 0x20000010, 0x4001cd40, 0xb719, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0) = 0
mprotect(0x4014b000, 8192, PROT_READ)   = 0
mprotect(0x40032000, 4096, PROT_READ)   = 0
mprotect(0x40023000, 4096, PROT_READ)   = 0
rt_sigaction(SIGIO, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [IO], NULL, 8) = 0
brk(0)                                  = 0x21000
brk(0x42000)                            = 0x42000
clone(child_stack=0x22068, flags=CLONE_VM|SIGCHLD) = 2898
wait4(2898,  <unfinished ... exit status 0>
Process 2897 detached

==========================

Is there something I have not set up correctly or some step that is not
done correctly?  
Any help will be appreciated.
Thanks
Ed


  

> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel





  reply	other threads:[~2010-03-14 21:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-13 20:21 Alignment trap - deprecation.pyo ed
2010-03-14 14:58 ` Holger Hans Peter Freyther
2010-03-14 21:51   ` ed [this message]
2010-03-16 17:54 ` Josh Kropf
2010-03-16 19:12   ` Ed Nelson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1268603500.2247.27.camel@ed-hp-laptop \
    --to=enelson1000@comcast.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).