View Single Post
Old 08-19-2013, 04:42 PM   #12
Morg
Junior Member
Morg began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2012
Location: Germany
Device: Kobo Touch N905C
Kevin,

you're right about the installer - though everything it does is moving the pygame libraries to /usr/lib (so you wouldn't need LD_LIBRARY_PATH at all) and linking the executable to /usr/bin.

I ran

strace -v -o py-trace.txt python -v -v -v

and entered

import pygame

The result: (only last lines; I guess, the rest is not interesting...)

Code:
open("/mnt/onboard/.python/lib/python2.7/lib-dynload/strop.so", O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_dev=makedev(179, 3), st_ino=456, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=112, st_s
ize=56132, st_atime=2013/08/19-02:00:00, st_mtime=2012/02/04-22:19:44, st_ctime=2013/08/19-03:51:46}) = 0
write(2, "dlopen(\"/mnt/onboard/.python/lib"..., 70) = 70
futex(0x2aaf00a4, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/mnt/onboard/.python/lib/python2.7/lib-dynload/strop.so", O_RDONLY|O_CLOEXEC) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\344\16\0\0004\0\0\0"..., 512) = 512
lseek(6, 49152, SEEK_SET)               = 49152
read(6, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1480) = 1480
lseek(6, 21012, SEEK_SET)               = 21012
read(6, "A-\0\0\0aeabi\0\1#\0\0\0\5ARM9TDMI\0\6\2\10\1\t\1"..., 46) = 46
exit_group(1)                           = ?
So as far as I can see, the lib strop.so is opened successfully, some bytes are read from ist (512, then 1480, then 46).

For some - unknown - reason, after exit_group the process stops.

Any further ideas how to use strace? I'd be glad to help.. :-)
Attached Files
File Type: txt py-trace.txt (131.8 KB, 477 views)
Morg is offline   Reply With Quote