Modify

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#6192 closed defect (fixed)

Python segmentation fault when importing ctypes on RouterStation Pro (ar71xx)

Reported by: riskable@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: python Cc:

Description

root@OpenWrt:/# python
Python 2.6.4 (r264:75706, Nov 20 2009, 18:24:38)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
Segmentation fault

Note: It does this with both Python 2.6.1 and 2.6.4 (I decided to try 2.6.4 to see if that fixed the issue--it didn't). This is with today's trunk release (18354).

The problem also occurs on the regular RouterStation.

Here's the strace output:

root@OpenWrt:~# strace python -c "import ctypes"
execve("/usr/bin/python", ["python", "-c", "import ctypes"], [/* 8 vars */]) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
stat("/etc/ld.so.cache", 0x7f87bd30)    = -1 ENOENT (No such file or directory)          
open("/lib/libpthread.so.0", O_RDONLY)  = 3                                              
fstat(3, {st_mode=S_IFREG|0644, st_size=71532, ...}) = 0                                 
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0004\300\0\0\0004\0"..., 4096) = 4096
old_mmap(NULL, 147456, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000                 
old_mmap(0x2aabe000, 50088, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000       
old_mmap(0x2aada000, 22380, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0x2aada000 
old_mmap(0x2aae0000, 6768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aae0000
close(3)                                = 0                                                              
munmap(0x2aaae000, 4096)                = 0                                                              
open("/lib/libdl.so.0", O_RDONLY)       = 3                                                              
fstat(3, {st_mode=S_IFREG|0644, st_size=8312, ...}) = 0                                                  
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\10`\0\0\0004\0"..., 4096) = 4096           
old_mmap(NULL, 77824, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aae2000                          
old_mmap(0x2aae2000, 6512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aae2000                
old_mmap(0x2aaf3000, 4216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x2aaf3000          
close(3)                                = 0                                                              
munmap(0x2aaae000, 4096)                = 0                                                              
open("/lib/libutil.so.0", O_RDONLY)     = 3                                                              
fstat(3, {st_mode=S_IFREG|0644, st_size=3915, ...}) = 0                                                  
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\7\0\0\0\0004\0"..., 4096) = 3915           
old_mmap(NULL, 69632, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaf5000                          
old_mmap(0x2aaf5000, 3780, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aaf5000                
old_mmap(0x2ab05000, 3915, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab05000               
close(3)                                = 0                                                              
munmap(0x2aaae000, 4096)                = 0                                                              
open("/lib/libm.so.0", O_RDONLY)        = 3                                                              
fstat(3, {st_mode=S_IFREG|0644, st_size=101700, ...}) = 0                                                
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\0250\0\0\0004\0"..., 4096) = 4096          
old_mmap(NULL, 167936, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab06000                         
old_mmap(0x2ab06000, 101212, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab06000              
old_mmap(0x2ab2e000, 3396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x18000) = 0x2ab2e000         
close(3)                                = 0                                                              
munmap(0x2aaae000, 4096)                = 0                                                              
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3                                                              
fstat(3, {st_mode=S_IFREG|0644, st_size=64300, ...}) = 0                                                 
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\33\340\0\0\0004\0"..., 4096) = 4096        
old_mmap(NULL, 131072, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab2f000                         
old_mmap(0x2ab2f000, 62236, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab2f000               
old_mmap(0x2ab4e000, 2860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x2ab4e000          
close(3)                                = 0                                                              
munmap(0x2aaae000, 4096)                = 0                                                              
open("/lib/libc.so.0", O_RDONLY)        = 3                                                              
fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\252\300\0\0\0004\0"..., 4096) = 4096       
old_mmap(NULL, 487424, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab4f000                         
old_mmap(0x2ab4f000, 396416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab4f000              
old_mmap(0x2abbf000, 8148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x60000) = 0x2abbf000         
old_mmap(0x2abc1000, 19456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2abc1000
close(3)                                = 0                                                               
munmap(0x2aaae000, 4096)                = 0                                                               
open("/lib/libc.so.0", O_RDONLY)        = 3                                                               
fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                 
close(3)                                = 0                                                               
open("/lib/libc.so.0", O_RDONLY)        = 3                                                               
fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                 
close(3)                                = 0                                                               
open("/lib/libc.so.0", O_RDONLY)        = 3                                                               
fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                 
close(3)                                = 0                                                               
open("/lib/libc.so.0", O_RDONLY)        = 3                                                               
fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                 
close(3)                                = 0                                                               
open("/lib/libc.so.0", O_RDONLY)        = 3                                                               
fstat(3, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                 
close(3)                                = 0                                                               
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=20708, ...}) = 0                               
mprotect(0x2aada000, 4096, PROT_READ)   = 0                                                               
mprotect(0x2aaf3000, 4096, PROT_READ)   = 0                                                               
mprotect(0x2abbf000, 4096, PROT_READ)   = 0                                                               
mprotect(0x2aabc000, 4096, PROT_READ)   = 0                                                               
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0                                               
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0                                               
getpid()                                = 1742                                                            
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0                                 
setrlimit(RLIMIT_STACK, {rlim_cur=2040*1024, rlim_max=RLIM_INFINITY}) = 0                                 
rt_sigaction(SIGRT_0, {SIG_DFL, [], SA_STACK|SA_INTERRUPT|SA_SIGINFO|0x2ac9d84}, NULL, 16) = 0            
rt_sigaction(SIGRT_1, {SIG_DFL, [], SA_STACK|SA_INTERRUPT|SA_SIGINFO|0x2ac9c94}, NULL, 16) = 0            
rt_sigaction(SIGRT_2, {SIG_DFL, [], SA_STACK|SA_INTERRUPT|SA_SIGINFO|0x2ac8e74}, NULL, 16) = 0            
rt_sigprocmask(SIG_BLOCK, [RT_0], NULL, 16) = 0                                                           
rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 16) = 0                                                         
brk(0)                                  = 0x55e000                                                        
brk(0x55f000)                           = 0x55f000                                                        
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0                                               
old_mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x2abc6000                
brk(0x561000)                           = 0x561000                                                        
brk(0x562000)                           = 0x562000                                                        
brk(0x563000)                           = 0x563000                                                        
brk(0x564000)                           = 0x564000                                                        
brk(0x565000)                           = 0x565000                                                        
brk(0x566000)                           = 0x566000                                                        
brk(0x567000)                           = 0x567000                                                        
brk(0x568000)                           = 0x568000                                                        
brk(0x569000)                           = 0x569000                                                        
brk(0x56a000)                           = 0x56a000                                                        
brk(0x56b000)                           = 0x56b000                                                        
brk(0x56c000)                           = 0x56c000                                                        
brk(0x572000)                           = 0x572000                                                        
brk(0x573000)                           = 0x573000                                                        
fstat64(0, 0x7f87be40)                  = 0                                                               
fstat64(0, 0x7f87bd48)                  = 0                                                               
fstat64(0x1, 0x7f87bd48)                = 0                                                               
fstat64(0x2, 0x7f87bd48)                = 0                                                               
stat64(0x55be4c, 0x7f878d28)            = -1 ENOENT (No such file or directory)                           
stat64(0x55be4c, 0x7f878d28)            = -1 ENOENT (No such file or directory)                           
stat64(0x55be4c, 0x7f878d28)            = 0                                                               
readlink("/usr/bin/python", "python2.6"..., 4096) = 9                                                     
readlink("/usr/bin/python2.6", 0x7f87ae70, 4096) = -1 EINVAL (Invalid argument)                           
stat64(0x559e44, 0x7f878d00)            = -1 ENOENT (No such file or directory)                           
stat64(0x559e44, 0x7f878ce8)            = -1 ENOENT (No such file or directory)                           
stat64(0x559e44, 0x7f878ce8)            = -1 ENOENT (No such file or directory)                           
stat64(0x559e44, 0x7f878ce8)            = 0                                                               
stat64(0x55ae48, 0x7f878d00)            = -1 ENOENT (No such file or directory)                           
stat64(0x55ae48, 0x7f878d00)            = -1 ENOENT (No such file or directory)                           
stat64(0x55ae48, 0x7f878d00)            = 0                                                               
brk(0x574000)                           = 0x574000                                                        
brk(0x575000)                           = 0x575000                                                        
brk(0x576000)                           = 0x576000                                                        
brk(0x577000)                           = 0x577000                                                        
brk(0x578000)                           = 0x578000                                                        
rt_sigaction(SIGPIPE, {SIG_DFL, [], SA_NOCLDSTOP}, {SIG_DFL, [], 0}, 16) = 0                              
rt_sigaction(SIGXFSZ, {SIG_DFL, [], SA_NOCLDSTOP}, {SIG_DFL, [], 0}, 16) = 0                              
getpid()                                = 1742                                                            
rt_sigaction(SIGHUP, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], SA_NOCLDSTOP}, 16) = 0                                          
rt_sigaction(SIGILL, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGTRAP, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGIOT, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGEMT, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGKILL, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGSYS, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGPIPE, NULL, {SIG_DFL, [], SA_NOCLDSTOP}, 16) = 0                                          
rt_sigaction(SIGALRM, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGUSR1, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGUSR2, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGPWR, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGWINCH, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGURG, NULL, {SIG_DFL, [], 0}, 16) = 0                                                      
rt_sigaction(SIGIO, NULL, {SIG_DFL, [], 0}, 16) = 0                                                       
rt_sigaction(SIGSTOP, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGTSTP, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGCONT, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGTTIN, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGTTOU, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGVTALRM, NULL, {SIG_DFL, [], 0}, 16) = 0                                                   
rt_sigaction(SIGPROF, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGXCPU, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGXFSZ, NULL, {SIG_DFL, [], SA_NOCLDSTOP}, 16) = 0                                          
rt_sigaction(SIGRT_3, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGRT_4, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGRT_5, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGRT_6, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGRT_7, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGRT_8, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGRT_9, NULL, {SIG_DFL, [], 0}, 16) = 0                                                     
rt_sigaction(SIGRT_10, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_11, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_12, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_13, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_14, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_15, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_16, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_17, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_18, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_19, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_20, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_21, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_22, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_23, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_24, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_25, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_26, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_27, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_28, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_29, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_30, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_31, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_32, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_33, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_34, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_35, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_36, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_37, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_38, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_39, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_40, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_41, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_42, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_43, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_44, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_45, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_46, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_47, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_48, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_49, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_50, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_51, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_52, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_53, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_54, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_55, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_56, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_57, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_58, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_59, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_60, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_61, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_62, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_63, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_64, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_65, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_66, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_67, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_68, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_69, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_70, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_71, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_72, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_73, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_74, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_75, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_76, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_77, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_78, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_79, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_80, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_81, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_82, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_83, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_84, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_85, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_86, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_87, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_88, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_89, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_90, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_91, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_92, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_93, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_94, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGRT_95, NULL, {SIG_DFL, [], 0}, 16) = 0                                                    
rt_sigaction(SIGINT, {SIG_DFL, [], SA_STACK|SA_INTERRUPT|0x2ac67a4}, {SIG_DFL, [], 0}, 16) = 0            
brk(0x579000)                           = 0x579000                                                        
stat64(0x7f876b60, 0x7f876a30)          = -1 ENOENT (No such file or directory)                           
stat64(0x7f876b60, 0x7f876a30)          = 0                                                               
stat64(0x2abcac94, 0x7f877a48)          = -1 ENOENT (No such file or directory)                           
stat64(0x7f876b60, 0x7f876a30)          = 0                                                               
stat64(0x2abcacc4, 0x7f877a48)          = 0                                                               
stat64(0x7f879da8, 0x7f877bb8)          = -1 ENOENT (No such file or directory)                           
open("/usr/lib/python2.6/site.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)          
open("/usr/lib/python2.6/sitemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)    
open("/usr/lib/python2.6/site.py", O_RDONLY|O_LARGEFILE) = 3                                              
ioctl(3, TIOCNXCL, 0x7f877b50)          = -1 ENOTTY (Inappropriate ioctl for device)                      
brk(0x57a000)                           = 0x57a000                                                        
fstat64(0x3, 0x7f878c38)                = 0                                                               
open("/usr/lib/python2.6/site.pyc", O_RDONLY|O_LARGEFILE) = 4                                             
ioctl(4, TIOCNXCL, 0x7f878ba8)          = -1 ENOTTY (Inappropriate ioctl for device)                      
brk(0x57b000)                           = 0x57b000                                                        
read(4, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\6\0\0\0@\0\0\0sT\1\0\0d\0\0"..., 4096) = 4096                 
fstat64(0x4, 0x7f874b40)                = 0                                                               
brk(0x580000)                           = 0x580000                                                        
read(4, "\0\0gettotalrefcounts\10\0\0\0-pydebugN("..., 14187) = 14179                                     
read(4, ""..., 8)                       = 0                                                               
brk(0x581000)                           = 0x581000                                                        
brk(0x582000)                           = 0x582000                                                        
close(4)                                = 0                                                               
stat64(0x7f876a10, 0x7f874820)          = -1 ENOENT (No such file or directory)                           
open("/usr/lib/python2.6/os.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)            
open("/usr/lib/python2.6/osmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/os.py", O_RDONLY|O_LARGEFILE) = 4                                                
ioctl(4, TIOCNXCL, 0x7f8747b8)          = -1 ENOTTY (Inappropriate ioctl for device)                      
fstat64(0x4, 0x7f8758a0)                = 0                                                               
open("/usr/lib/python2.6/os.pyc", O_RDONLY|O_LARGEFILE) = 5                                               
ioctl(5, TIOCNXCL, 0x7f875810)          = -1 ENOTTY (Inappropriate ioctl for device)                      
read(5, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\36\0\0\0@\0\0\0sH\7\0\0d\0\0"..., 4096) = 4096                
fstat64(0x5, 0x7f8717a8)                = 0                                                               
brk(0x588000)                           = 0x588000                                                        
read(5, "intermediate path segment (not\n  "..., 22214) = 22206                                           
read(5, ""..., 8)                       = 0                                                               
old_mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x2ac07000                
close(5)                                = 0                                                               
brk(0x589000)                           = 0x589000                                                        
brk(0x58a000)                           = 0x58a000                                                        
brk(0x58b000)                           = 0x58b000                                                        
brk(0x58d000)                           = 0x58d000                                                        
stat64(0x7f873678, 0x7f871488)          = -1 ENOENT (No such file or directory)                           
open("/usr/lib/python2.6/posixpath.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)     
open("/usr/lib/python2.6/posixpathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/posixpath.py", O_RDONLY|O_LARGEFILE) = 5                                          
ioctl(5, TIOCNXCL, 0x7f871420)          = -1 ENOTTY (Inappropriate ioctl for device)                       
brk(0x58e000)                           = 0x58e000                                                         
fstat64(0x5, 0x7f872508)                = 0                                                                
open("/usr/lib/python2.6/posixpath.pyc", O_RDONLY|O_LARGEFILE) = 7                                         
ioctl(7, TIOCNXCL, 0x7f872478)          = -1 ENOTTY (Inappropriate ioctl for device)                       
brk(0x58f000)                           = 0x58f000                                                         
read(7, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0+\0\0\0@\0\0\0s\320\1\0\0d\0\0"..., 4096) = 4096                
fstat64(0x7, 0x7f86e410)                = 0                                                                
read(7, "\0\0\0(\0\0\0\0(\0\0\0\0s\37\0\0\0/usr/lib/python"..., 6827) = 6819                               
read(7, ""..., 8)                       = 0                                                                
close(7)                                = 0                                                                
stat64(0x7f8702e0, 0x7f86e0f0)          = -1 ENOENT (No such file or directory)                            
open("/usr/lib/python2.6/stat.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)           
open("/usr/lib/python2.6/statmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)     
open("/usr/lib/python2.6/stat.py", O_RDONLY|O_LARGEFILE) = 7                                               
ioctl(7, TIOCNXCL, 0x7f86e088)          = -1 ENOTTY (Inappropriate ioctl for device)                       
brk(0x590000)                           = 0x590000                                                         
fstat64(0x7, 0x7f86f170)                = 0                                                                
open("/usr/lib/python2.6/stat.pyc", O_RDONLY|O_LARGEFILE) = 8                                              
ioctl(8, TIOCNXCL, 0x7f86f0e0)          = -1 ENOTTY (Inappropriate ioctl for device)                       
brk(0x591000)                           = 0x591000                                                         
read(8, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\1\0\0\0@\0\0\0so\1\0\0d\0\0"..., 4096) = 2683                  
fstat64(0x8, 0x7f86b078)                = 0                                                                
read(8, ""..., 8)                       = 0                                                                
close(8)                                = 0                                                                
close(7)                                = 0                                                                
stat64(0x7f8702e0, 0x7f86e0f0)          = -1 ENOENT (No such file or directory)                            
open("/usr/lib/python2.6/genericpath.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)    
open("/usr/lib/python2.6/genericpathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/genericpath.py", O_RDONLY|O_LARGEFILE) = 7                                          
ioctl(7, TIOCNXCL, 0x7f86e088)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x7, 0x7f86f170)                = 0                                                                  
open("/usr/lib/python2.6/genericpath.pyc", O_RDONLY|O_LARGEFILE) = 8                                         
ioctl(8, TIOCNXCL, 0x7f86f0e0)          = -1 ENOTTY (Inappropriate ioctl for device)                         
read(8, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\n\0\0\0@\0\0\0s\221\0\0\0d\0\0"..., 4096) = 3272                 
fstat64(0x8, 0x7f86b078)                = 0                                                                  
read(8, ""..., 8)                       = 0                                                                  
close(8)                                = 0                                                                  
close(7)                                = 0                                                                  
stat64(0x7f8702e0, 0x7f86e0f0)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/warnings.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)         
open("/usr/lib/python2.6/warningsmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)   
open("/usr/lib/python2.6/warnings.py", O_RDONLY|O_LARGEFILE) = 7                                             
ioctl(7, TIOCNXCL, 0x7f86e088)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x7, 0x7f86f170)                = 0                                                                  
open("/usr/lib/python2.6/warnings.pyc", O_RDONLY|O_LARGEFILE) = 8                                            
ioctl(8, TIOCNXCL, 0x7f86f0e0)          = -1 ENOTTY (Inappropriate ioctl for device)                         
read(8, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\r\0\0\0@\0\0\0s3\2\0\0d\0\0"..., 4096) = 4096                    
fstat64(0x8, 0x7f86b078)                = 0                                                                  
read(8, "\0i\3\0\4d\1\0\2I\4|\2\0\2IJq\7\0\1Xq\7\0Wd\0\0S(\2\0"..., 8898) = 8890                             
read(8, ""..., 8)                       = 0                                                                  
brk(0x592000)                           = 0x592000                                                           
close(8)                                = 0                                                                  
stat64(0x7f86cf48, 0x7f86ad58)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/linecache.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/linecachemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)  
open("/usr/lib/python2.6/linecache.py", O_RDONLY|O_LARGEFILE) = 8                                            
ioctl(8, TIOCNXCL, 0x7f86acf0)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x8, 0x7f86bdd8)                = 0                                                                  
open("/usr/lib/python2.6/linecache.pyc", O_RDONLY|O_LARGEFILE) = 9                                           
ioctl(9, TIOCNXCL, 0x7f86bd48)          = -1 ENOTTY (Inappropriate ioctl for device)                         
brk(0x593000)                           = 0x593000                                                           
read(9, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\5\0\0\0@\0\0\0sp\0\0\0d\0\0"..., 4096) = 3191                    
fstat64(0x9, 0x7f867ce0)                = 0                                                                  
read(9, ""..., 8)                       = 0                                                                  
brk(0x5ab000)                           = 0x5ab000                                                           
close(9)                                = 0                                                                  
close(8)                                = 0                                                                  
stat64(0x7f86cf48, 0x7f86ad58)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/types.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)            
open("/usr/lib/python2.6/typesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/types.py", O_RDONLY|O_LARGEFILE) = 8                                                
ioctl(8, TIOCNXCL, 0x7f86acf0)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x8, 0x7f86bdd8)                = 0                                                                  
open("/usr/lib/python2.6/types.pyc", O_RDONLY|O_LARGEFILE) = 9                                               
ioctl(9, TIOCNXCL, 0x7f86bd48)          = -1 ENOTTY (Inappropriate ioctl for device)                         
read(9, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\17\0\0\0@\0\0\0so\2\0\0d\0\0"..., 4096) = 2608                   
fstat64(0x9, 0x7f867ce0)                = 0                                                                  
read(9, ""..., 8)                       = 0                                                                  
close(9)                                = 0                                                                  
close(8)                                = 0                                                                  
close(7)                                = 0                                                                  
close(5)                                = 0                                                                  
stat64(0x7f873678, 0x7f871488)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/UserDict.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)         
open("/usr/lib/python2.6/UserDictmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)   
open("/usr/lib/python2.6/UserDict.py", O_RDONLY|O_LARGEFILE) = 5                                             
ioctl(5, TIOCNXCL, 0x7f871420)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x5, 0x7f872508)                = 0                                                                  
open("/usr/lib/python2.6/UserDict.pyc", O_RDONLY|O_LARGEFILE) = 7                                            
ioctl(7, TIOCNXCL, 0x7f872478)          = -1 ENOTTY (Inappropriate ioctl for device)                         
read(7, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\4\0\0\0@\0\0\0sb\0\0\0d\0\0"..., 4096) = 4096                    
fstat64(0x7, 0x7f86e410)                = 0                                                                  
read(7, "Dict.pyR*\0\0\0C\0\0\0s\2\0\0\0\0\1c\2\0\0\0\2\0\0\0\2"..., 4714) = 4706                            
read(7, ""..., 8)                       = 0                                                                  
close(7)                                = 0                                                                  
stat64(0x7f8702e0, 0x7f86e0f0)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/_abcoll.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)          
open("/usr/lib/python2.6/_abcollmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)    
open("/usr/lib/python2.6/_abcoll.py", O_RDONLY|O_LARGEFILE) = 7                                              
ioctl(7, TIOCNXCL, 0x7f86e088)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x7, 0x7f86f170)                = 0                                                                  
open("/usr/lib/python2.6/_abcoll.pyc", O_RDONLY|O_LARGEFILE) = 8                                             
ioctl(8, TIOCNXCL, 0x7f86f0e0)          = -1 ENOTTY (Inappropriate ioctl for device)                         
read(8, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\22\0\0\0@\0\0\0s@\2\0\0d\0\0"..., 4096) = 4096                   
fstat64(0x8, 0x7f86b078)                = 0                                                                  
brk(0x5b0000)                           = 0x5b0000                                                           
read(8, "__contains___\0\0\0s\2\0\0\0\0\2c\2\0\0\0\2\0\0\0\3"..., 17368) = 17360                             
read(8, ""..., 8)                       = 0                                                                  
close(8)                                = 0                                                                  
stat64(0x7f86cf48, 0x7f86ad58)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/abc.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/abcmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/abc.py", O_RDONLY|O_LARGEFILE) = 8                                                  
ioctl(8, TIOCNXCL, 0x7f86acf0)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x8, 0x7f86bdd8)                = 0                                                                  
open("/usr/lib/python2.6/abc.pyc", O_RDONLY|O_LARGEFILE) = 9                                                 
ioctl(9, TIOCNXCL, 0x7f86bd48)          = -1 ENOTTY (Inappropriate ioctl for device)                         
read(9, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\3\0\0\0@\0\0\0s?\0\0\0d\0\0"..., 4096) = 4096                    
fstat64(0x9, 0x7f867ce0)                = 0                                                                  
read(9, "the ABC registry.s\f\0\0\0Class: %s.%"..., 1745) = 1737                                             
read(9, ""..., 8)                       = 0                                                                  
close(9)                                = 0                                                                  
close(8)                                = 0                                                                  
close(7)                                = 0                                                                  
close(5)                                = 0                                                                  
brk(0x5b1000)                           = 0x5b1000                                                           
brk(0x5b2000)                           = 0x5b2000                                                           
brk(0x5b3000)                           = 0x5b3000                                                           
brk(0x5b4000)                           = 0x5b4000                                                           
brk(0x5b5000)                           = 0x5b5000                                                           
brk(0x5b6000)                           = 0x5b6000                                                           
brk(0x5b7000)                           = 0x5b7000                                                           
brk(0x5b8000)                           = 0x5b8000                                                           
brk(0x5b9000)                           = 0x5b9000                                                           
brk(0x5ba000)                           = 0x5ba000                                                           
brk(0x5bb000)                           = 0x5bb000                                                           
brk(0x5bc000)                           = 0x5bc000                                                           
brk(0x5bd000)                           = 0x5bd000                                                           
brk(0x5be000)                           = 0x5be000                                                           
brk(0x5bf000)                           = 0x5bf000                                                           
brk(0x5c4000)                           = 0x5c4000                                                           
stat64(0x7f873678, 0x7f871488)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/copy_reg.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)         
open("/usr/lib/python2.6/copy_regmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)   
open("/usr/lib/python2.6/copy_reg.py", O_RDONLY|O_LARGEFILE) = 5                                             
ioctl(5, TIOCNXCL, 0x7f871420)          = -1 ENOTTY (Inappropriate ioctl for device)                         
fstat64(0x5, 0x7f872508)                = 0                                                                  
open("/usr/lib/python2.6/copy_reg.pyc", O_RDONLY|O_LARGEFILE) = 7                                            
ioctl(7, TIOCNXCL, 0x7f872478)          = -1 ENOTTY (Inappropriate ioctl for device)                         
read(7, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\10\0\0\0@\0\0\0s\330\0\0\0d\0\0"..., 4096) = 4096                
fstat64(0x7, 0x7f86e410)                = 0                                                                  
read(7, "ered with code %ss$\0\0\0code %s is "..., 1068) = 1060                                              
read(7, ""..., 8)                       = 0                                                                  
close(7)                                = 0                                                                  
close(5)                                = 0                                                                  
brk(0x5c6000)                           = 0x5c6000                                                           
close(4)                                = 0                                                                  
geteuid()                               = 0                                                                  
getuid()                                = 0                                                                  
getegid()                               = 0                                                                  
getgid()                                = 0                                                                  
stat64(0x57ea58, 0x7f8786e0)            = -1 ENOENT (No such file or directory)                              
stat64(0x56e658, 0x7f8786e0)            = 0                                                                  
open("/usr/lib/python2.6/site-packages", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4                                
fstat(4, {st_mode=S_IFDIR|S_ISVTX|0777, st_size=0, ...}) = 0                                                 
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0                                                                  
getdents64(4, /* 3 entries */, 4096)    = 80                                                                 
getdents64(4, /* 2 entries */, 4096)    = 80                                                                 
getdents64(4, /* 0 entries */, 4096)    = 0                                                                  
close(4)                                = 0                                                                  
stat64(0x569388, 0x7f8786e0)            = -1 ENOENT (No such file or directory)                              
stat64(0x7f8735d8, 0x7f8734a8)          = 0                                                                  
stat64(0x2abf8ea4, 0x7f8744c0)          = 0                                                                  
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                              
open("/usr/lib/python2.6/sitecustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)    
open("/usr/lib/python2.6/sitecustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/sitecustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/sitecustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)     
stat64(0x7f8735d8, 0x7f8734a8)          = 0                                                                    
stat64(0x2abfe3b4, 0x7f8744c0)          = 0                                                                    
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                                
open("/usr/lib/python2.6/plat-linux2/sitecustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/plat-linux2/sitecustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/plat-linux2/sitecustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/plat-linux2/sitecustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)     
stat64(0x7f8735d8, 0x7f8734a8)          = -1 ENOENT (No such file or directory)                                            
stat64(0x7f8735d8, 0x7f8734a8)          = 0                                                                                
stat64(0x2abfe5e4, 0x7f8744c0)          = -1 ENOENT (No such file or directory)                                            
stat64(0x7f8735d8, 0x7f8734a8)          = -1 ENOENT (No such file or directory)                                            
stat64(0x7f8735d8, 0x7f8734a8)          = 0                                                                                
stat64(0x2ac1fc3c, 0x7f8744c0)          = -1 ENOENT (No such file or directory)                                            
stat64(0x7f8735d8, 0x7f8734a8)          = 0                                                                                
stat64(0x2ac1fb5c, 0x7f8744c0)          = 0                                                                                
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                                            
open("/usr/lib/python2.6/lib-dynload/sitecustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/lib-dynload/sitecustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/lib-dynload/sitecustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/lib-dynload/sitecustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)     
stat64(0x7f8735d8, 0x7f8734a8)          = 0                                                                                
stat64(0x2abd014c, 0x7f8744c0)          = 0                                                                                
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                                            
open("/usr/lib/python2.6/site-packages/sitecustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)    
open("/usr/lib/python2.6/site-packages/sitecustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/site-packages/sitecustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/site-packages/sitecustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)     
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/usercustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                    
open("/usr/lib/python2.6/usercustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/usercustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                    
open("/usr/lib/python2.6/usercustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                   
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/plat-linux2/usercustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/plat-linux2/usercustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)  
open("/usr/lib/python2.6/plat-linux2/usercustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/plat-linux2/usercustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)       
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/lib-dynload/usercustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/lib-dynload/usercustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)  
open("/usr/lib/python2.6/lib-dynload/usercustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/lib-dynload/usercustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)       
stat64(0x7f876820, 0x7f874630)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/site-packages/usercustomize.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/site-packages/usercustomizemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/site-packages/usercustomize.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/site-packages/usercustomize.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)     
close(3)                                = 0                                                                                  
stat64(0x7f879e28, 0x7f877c38)          = 0                                                                                  
stat64(0x7f879e28, 0x7f877b70)          = 0                                                                                  
stat64(0x7f878de4, 0x7f876bf8)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/encodings/__init__.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)               
open("/usr/lib/python2.6/encodings/__init__module.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)         
open("/usr/lib/python2.6/encodings/__init__.py", O_RDONLY|O_LARGEFILE) = 3                                                   
ioctl(3, TIOCNXCL, 0x7f876b90)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x3, 0x7f877c78)                = 0                                                                                  
open("/usr/lib/python2.6/encodings/__init__.pyc", O_RDONLY|O_LARGEFILE) = 4                                                  
ioctl(4, TIOCNXCL, 0x7f877be8)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
read(4, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\6\0\0\0@\0\0\0s\216\0\0\0d\0\0"..., 4096) = 4096                                 
fstat64(0x4, 0x7f873b80)                = 0                                                                                  
read(4, "\1\5\2\5\2\6\2\3\1\r\1\16\2\v\2\r\2\n\1\5\3\t\1\23\1$\1\3\1\3\1\27\1"..., 320) = 312                                
read(4, ""..., 8)                       = 0                                                                                  
close(4)                                = 0                                                                                  
stat64(0x7f872808, 0x7f8726d8)          = 0                                                                                  
stat64(0x2abfe29c, 0x7f8736f0)          = 0                                                                                  
stat64(0x7f875a50, 0x7f873860)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/encodings/codecs.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                 
open("/usr/lib/python2.6/encodings/codecsmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)           
open("/usr/lib/python2.6/encodings/codecs.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                 
open("/usr/lib/python2.6/encodings/codecs.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                
stat64(0x7f875a50, 0x7f873860)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/codecs.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                           
open("/usr/lib/python2.6/codecsmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                     
open("/usr/lib/python2.6/codecs.py", O_RDONLY|O_LARGEFILE) = 4                                                               
ioctl(4, TIOCNXCL, 0x7f8737f8)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x4, 0x7f8748e0)                = 0                                                                                  
open("/usr/lib/python2.6/codecs.pyc", O_RDONLY|O_LARGEFILE) = 5                                                              
ioctl(5, TIOCNXCL, 0x7f874850)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
read(5, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\36\0\0\0@\0\0\0sA\3\0\0d\0\0"..., 4096) = 4096                                   
fstat64(0x5, 0x7f8707e8)                = 0                                                                                  
brk(0x5cc000)                           = 0x5cc000                                                                           
read(5, "\n\0\0\0t\0\0\202\1\0d\1\0S(\2\0\0\0s\372\2\0\0 Decodes "..., 31828) = 31820                                        
read(5, ""..., 8)                       = 0                                                                                  
brk(0x5cd000)                           = 0x5cd000                                                                           
brk(0x5ce000)                           = 0x5ce000                                                                           
brk(0x5cf000)                           = 0x5cf000                                                                           
close(5)                                = 0                                                                                  
close(4)                                = 0                                                                                  
stat64(0x7f875a50, 0x7f873860)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/encodings/encodings.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/encodings/encodingsmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/encodings/encodings.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/encodings/encodings.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)             
stat64(0x7f875a48, 0x7f873858)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/encodings/aliases.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                
open("/usr/lib/python2.6/encodings/aliasesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)          
open("/usr/lib/python2.6/encodings/aliases.py", O_RDONLY|O_LARGEFILE) = 4                                                    
ioctl(4, TIOCNXCL, 0x7f8737f0)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x4, 0x7f8748d8)                = 0                                                                                  
open("/usr/lib/python2.6/encodings/aliases.pyc", O_RDONLY|O_LARGEFILE) = 5                                                   
ioctl(5, TIOCNXCL, 0x7f874848)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
read(5, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\3\0\0\0@\0\0\0s`\10\0\0d\0\0"..., 4096) = 4096                                   
fstat64(0x5, 0x7f8707e0)                = 0                                                                                  
read(5, "ibm861t\5\0\0\0cp862t\3\0\0\000862t\22\0\0\0cspc"..., 4611) = 4603                                                  
read(5, ""..., 8)                       = 0                                                                                  
close(5)                                = 0                                                                                  
close(4)                                = 0                                                                                  
stat64(0x7f875a50, 0x7f873860)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/encodings/__builtin__.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)            
open("/usr/lib/python2.6/encodings/__builtin__module.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)      
open("/usr/lib/python2.6/encodings/__builtin__.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)            
open("/usr/lib/python2.6/encodings/__builtin__.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)           
close(3)                                = 0                                                                                  
stat64(0x7f879c30, 0x7f877a40)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/encodings/ascii.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                  
open("/usr/lib/python2.6/encodings/asciimodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)            
open("/usr/lib/python2.6/encodings/ascii.py", O_RDONLY|O_LARGEFILE) = 3                                                      
ioctl(3, TIOCNXCL, 0x7f8779d8)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x3, 0x7f878ac0)                = 0                                                                                  
open("/usr/lib/python2.6/encodings/ascii.pyc", O_RDONLY|O_LARGEFILE) = 4                                                     
ioctl(4, TIOCNXCL, 0x7f878a30)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
read(4, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\4\0\0\0@\0\0\0s\273\0\0\0d\0\0"..., 4096) = 2261                                 
fstat64(0x4, 0x7f8749c8)                = 0                                                                                  
read(4, ""..., 8)                       = 0                                                                                  
close(4)                                = 0                                                                                  
close(3)                                = 0                                                                                  
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0                                                                  
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0                                                                  
ioctl(2, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0                                                                  
brk(0x5d1000)                           = 0x5d1000                                                                           
brk(0x5d5000)                           = 0x5d5000                                                                           
stat64(0x7f879cd0, 0x7f877ae0)          = -1 ENOENT (No such file or directory)                                              
open("ctypes.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                              
open("ctypesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                        
open("ctypes.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                              
open("ctypes.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                             
stat64(0x7f879cd0, 0x7f877ae0)          = 0                                                                                  
stat64(0x7f879cd0, 0x7f877a18)          = 0                                                                                  
stat64(0x7f878c8c, 0x7f876aa0)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/ctypes/__init__.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                  
open("/usr/lib/python2.6/ctypes/__init__module.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)            
open("/usr/lib/python2.6/ctypes/__init__.py", O_RDONLY|O_LARGEFILE) = 3                                                      
ioctl(3, TIOCNXCL, 0x7f876a38)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x3, 0x7f877b20)                = 0                                                                                  
open("/usr/lib/python2.6/ctypes/__init__.pyc", O_RDONLY|O_LARGEFILE) = 4                                                     
ioctl(4, TIOCNXCL, 0x7f877a90)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
read(4, "\321\362\r\n}%\7Kc\0\0\0\0\0\0\0\0$\0\0\0@\0\0\0s\253\n\0\0d\0\0"..., 4096) = 4096                                  
fstat64(0x4, 0x7f873a28)                = 0                                                                                  
brk(0x5d6000)                           = 0x5d6000                                                                           
read(4, "\1y\25\0t\7\0\210\0\0\210\1\0\210\2\0f\3\0\31SWnI\0\4t\10\0j\n\0o"..., 15876) = 15868                               
read(4, ""..., 8)                       = 0                                                                                  
close(4)                                = 0                                                                                  
stat64(0x7f8726b0, 0x7f872580)          = 0                                                                                  
stat64(0x2abd0184, 0x7f873598)          = 0                                                                                  
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/ctypes/os.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                        
open("/usr/lib/python2.6/ctypes/osmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                  
open("/usr/lib/python2.6/ctypes/os.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                        
open("/usr/lib/python2.6/ctypes/os.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                       
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/ctypes/sys.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                       
open("/usr/lib/python2.6/ctypes/sysmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                 
open("/usr/lib/python2.6/ctypes/sys.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                       
open("/usr/lib/python2.6/ctypes/sys.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                      
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/ctypes/_ctypes.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                   
open("/usr/lib/python2.6/ctypes/_ctypesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)             
open("/usr/lib/python2.6/ctypes/_ctypes.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                   
open("/usr/lib/python2.6/ctypes/_ctypes.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                  
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("_ctypes.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                             
open("_ctypesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                       
open("_ctypes.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                             
open("_ctypes.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                            
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/_ctypes.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                          
open("/usr/lib/python2.6/_ctypesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                    
open("/usr/lib/python2.6/_ctypes.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                          
open("/usr/lib/python2.6/_ctypes.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                         
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/plat-linux2/_ctypes.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/plat-linux2/_ctypesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/plat-linux2/_ctypes.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/plat-linux2/_ctypes.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)             
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/lib-dynload/_ctypes.so", O_RDONLY|O_LARGEFILE) = 4                                                  
ioctl(4, TIOCNXCL, 0x7f8736a0)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x4, 0x7f875558)                = 0                                                                                  
open("/usr/lib/python2.6/lib-dynload/_ctypes.so", O_RDONLY) = 5                                                              
fstat(5, {st_mode=S_IFREG|0755, st_size=106036, ...}) = 0                                                                    
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                                    
read(5, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0005\260\0\0\0004\0"..., 4096) = 4096                            
old_mmap(NULL, 172032, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac48000                                             
old_mmap(0x2ac48000, 97820, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 0) = 0x2ac48000                                   
old_mmap(0x2ac6f000, 11828, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5, 0x17000) = 0x2ac6f000                            
close(5)                                = 0                                                                                  
munmap(0x2aaae000, 4096)                = 0                                                                                  
open("/lib/libffi.so.5", O_RDONLY)      = -1 ENOENT (No such file or directory)                                              
open("/lib/libffi.so.5", O_RDONLY)      = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/libffi.so.5", O_RDONLY)  = 5                                                                                  
fstat(5, {st_mode=S_IFREG|0755, st_size=26028, ...}) = 0                                                                     
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                                    
read(5, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\21\0\0\0\0004\0"..., 4096) = 4096                              
old_mmap(NULL, 94208, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac72000                                              
old_mmap(0x2ac72000, 23764, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 0) = 0x2ac72000                                   
old_mmap(0x2ac88000, 1452, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5, 0x6000) = 0x2ac88000                              
close(5)                                = 0                                                                                  
munmap(0x2aaae000, 4096)                = 0                                                                                  
open("/lib/libgcc_s.so.1", O_RDONLY)    = 5                                                                                  
fstat(5, {st_mode=S_IFREG|0644, st_size=64300, ...}) = 0                                                                     
close(5)                                = 0                                                                                  
open("/lib/libc.so.0", O_RDONLY)        = 5                                                                                  
fstat(5, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                                    
close(5)                                = 0                                                                                  
open("/lib/libgcc_s.so.1", O_RDONLY)    = 5                                                                                  
fstat(5, {st_mode=S_IFREG|0644, st_size=64300, ...}) = 0                                                                     
close(5)                                = 0                                                                                  
open("/lib/libc.so.0", O_RDONLY)        = 5                                                                                  
fstat(5, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                                    
close(5)                                = 0                                                                                  
open("/lib/libc.so.0", O_RDONLY)        = 5                                                                                  
fstat(5, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0                                                                    
close(5)                                = 0                                                                                  
open("/lib/ld-uClibc.so.0", O_RDONLY)   = 5                                                                                  
fstat(5, {st_mode=S_IFREG|0755, st_size=20708, ...}) = 0                                                                     
close(5)                                = 0                                                                                  
old_mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x2ac89000                                   
close(4)                                = 0                                                                                  
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/ctypes/struct.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                    
open("/usr/lib/python2.6/ctypes/structmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/ctypes/struct.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                    
open("/usr/lib/python2.6/ctypes/struct.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                   
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("struct.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                              
open("structmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                        
open("struct.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                              
open("struct.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                             
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/struct.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                           
open("/usr/lib/python2.6/structmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                     
open("/usr/lib/python2.6/struct.py", O_RDONLY|O_LARGEFILE) = 4                                                               
ioctl(4, TIOCNXCL, 0x7f8736a0)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x4, 0x7f874788)                = 0                                                                                  
open("/usr/lib/python2.6/struct.pyc", O_RDONLY|O_LARGEFILE) = 5                                                              
ioctl(5, TIOCNXCL, 0x7f8746f8)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
read(5, "\321\362\r\n|%\7Kc\0\0\0\0\0\0\0\0\4\0\0\0@\0\0\0s\36\0\0\0d\0\0"..., 4096) = 197                                   
fstat64(0x5, 0x7f870690)                = 0                                                                                  
read(5, ""..., 8)                       = 0                                                                                  
close(5)                                = 0                                                                                  
stat64(0x7f872560, 0x7f870370)          = -1 ENOENT (No such file or directory)                                              
open("_struct.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                             
open("_structmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                       
open("_struct.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                             
open("_struct.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                                            
stat64(0x7f872560, 0x7f870370)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/_struct.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                          
open("/usr/lib/python2.6/_structmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                    
open("/usr/lib/python2.6/_struct.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                          
open("/usr/lib/python2.6/_struct.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)                         
stat64(0x7f872560, 0x7f870370)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/plat-linux2/_struct.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/plat-linux2/_structmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)        
open("/usr/lib/python2.6/plat-linux2/_struct.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)              
open("/usr/lib/python2.6/plat-linux2/_struct.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)             
stat64(0x7f872560, 0x7f870370)          = -1 ENOENT (No such file or directory)                                              
open("/usr/lib/python2.6/lib-dynload/_struct.so", O_RDONLY|O_LARGEFILE) = 5                                                  
ioctl(5, TIOCNXCL, 0x7f870308)          = -1 ENOTTY (Inappropriate ioctl for device)                                         
fstat64(0x5, 0x7f8721c0)                = 0                                                                                  
open("/usr/lib/python2.6/lib-dynload/_struct.so", O_RDONLY) = 7                                                              
fstat(7, {st_mode=S_IFREG|0755, st_size=31672, ...}) = 0                                                                     
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000                                    
read(7, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0\25\220\0\0\0004\0"..., 4096) = 4096                            
old_mmap(NULL, 98304, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2acca000                                              
old_mmap(0x2acca000, 26984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 7, 0) = 0x2acca000                                   
old_mmap(0x2ace0000, 7096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 7, 0x6000) = 0x2ace0000                              
close(7)                                = 0
munmap(0x2aaae000, 4096)                = 0
open("/lib/libgcc_s.so.1", O_RDONLY)    = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=64300, ...}) = 0
close(7)                                = 0
open("/lib/libc.so.0", O_RDONLY)        = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0
close(7)                                = 0
open("/lib/libc.so.0", O_RDONLY)        = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=401364, ...}) = 0
close(7)                                = 0
open("/lib/ld-uClibc.so.0", O_RDONLY)   = 7
fstat(7, {st_mode=S_IFREG|0755, st_size=20708, ...}) = 0
close(7)                                = 0
close(5)                                = 0
close(4)                                = 0
brk(0x5d7000)                           = 0x5d7000
brk(0x5d8000)                           = 0x5d8000
brk(0x5d9000)                           = 0x5d9000
brk(0x5da000)                           = 0x5da000
brk(0x5db000)                           = 0x5db000
brk(0x5dd000)                           = 0x5dd000
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/ctypes/ctypes.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/ctypes/ctypesmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/ctypes/ctypes.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/ctypes/ctypes.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64(0x7f8758f8, 0x7f873708)          = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/ctypes/_endian.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/ctypes/_endianmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/ctypes/_endian.py", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, TIOCNXCL, 0x7f8736a0)          = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x5de000)                           = 0x5de000
fstat64(0x4, 0x7f874788)                = 0
open("/usr/lib/python2.6/ctypes/_endian.pyc", O_RDONLY|O_LARGEFILE) = 5
ioctl(5, TIOCNXCL, 0x7f8746f8)          = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x5df000)                           = 0x5df000
read(5, "\321\362\r\n}%\7Kc\0\0\0\0\0\0\0\0\5\0\0\0@\0\0\0s\307\0\0\0d\0\0"..., 4096) = 2274
fstat64(0x5, 0x7f870690)                = 0
read(5, ""..., 8)                       = 0
close(5)                                = 0
close(4)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Here's the output of python -vv:

root@OpenWrt:~# python -vv                                           
# installing zipimport hook                                          
import zipimport # builtin                                           
# installed zipimport hook                                           
# trying /usr/lib/python2.6/site.so                                  
# trying /usr/lib/python2.6/sitemodule.so                            
# trying /usr/lib/python2.6/site.py                                  
# /usr/lib/python2.6/site.pyc matches /usr/lib/python2.6/site.py     
import site # precompiled from /usr/lib/python2.6/site.pyc           
# trying /usr/lib/python2.6/os.so                                    
# trying /usr/lib/python2.6/osmodule.so                              
# trying /usr/lib/python2.6/os.py                                    
# /usr/lib/python2.6/os.pyc matches /usr/lib/python2.6/os.py         
import os # precompiled from /usr/lib/python2.6/os.pyc               
import errno # builtin                                               
import posix # builtin                                               
# trying /usr/lib/python2.6/posixpath.so                             
# trying /usr/lib/python2.6/posixpathmodule.so                       
# trying /usr/lib/python2.6/posixpath.py                             
# /usr/lib/python2.6/posixpath.pyc matches /usr/lib/python2.6/posixpath.py
import posixpath # precompiled from /usr/lib/python2.6/posixpath.pyc      
# trying /usr/lib/python2.6/stat.so                                       
# trying /usr/lib/python2.6/statmodule.so                                 
# trying /usr/lib/python2.6/stat.py                                       
# /usr/lib/python2.6/stat.pyc matches /usr/lib/python2.6/stat.py          
import stat # precompiled from /usr/lib/python2.6/stat.pyc                
# trying /usr/lib/python2.6/genericpath.so                                
# trying /usr/lib/python2.6/genericpathmodule.so                          
# trying /usr/lib/python2.6/genericpath.py                                
# /usr/lib/python2.6/genericpath.pyc matches /usr/lib/python2.6/genericpath.py
import genericpath # precompiled from /usr/lib/python2.6/genericpath.pyc      
# trying /usr/lib/python2.6/warnings.so                                       
# trying /usr/lib/python2.6/warningsmodule.so                                 
# trying /usr/lib/python2.6/warnings.py                                       
# /usr/lib/python2.6/warnings.pyc matches /usr/lib/python2.6/warnings.py      
import warnings # precompiled from /usr/lib/python2.6/warnings.pyc            
# trying /usr/lib/python2.6/linecache.so                                      
# trying /usr/lib/python2.6/linecachemodule.so                                
# trying /usr/lib/python2.6/linecache.py                                      
# /usr/lib/python2.6/linecache.pyc matches /usr/lib/python2.6/linecache.py    
import linecache # precompiled from /usr/lib/python2.6/linecache.pyc          
# trying /usr/lib/python2.6/types.so                                          
# trying /usr/lib/python2.6/typesmodule.so                                    
# trying /usr/lib/python2.6/types.py                                          
# /usr/lib/python2.6/types.pyc matches /usr/lib/python2.6/types.py            
import types # precompiled from /usr/lib/python2.6/types.pyc                  
# trying /usr/lib/python2.6/UserDict.so                                       
# trying /usr/lib/python2.6/UserDictmodule.so                                 
# trying /usr/lib/python2.6/UserDict.py                                       
# /usr/lib/python2.6/UserDict.pyc matches /usr/lib/python2.6/UserDict.py      
import UserDict # precompiled from /usr/lib/python2.6/UserDict.pyc            
# trying /usr/lib/python2.6/_abcoll.so                                        
# trying /usr/lib/python2.6/_abcollmodule.so                                  
# trying /usr/lib/python2.6/_abcoll.py                                        
# /usr/lib/python2.6/_abcoll.pyc matches /usr/lib/python2.6/_abcoll.py        
import _abcoll # precompiled from /usr/lib/python2.6/_abcoll.pyc              
# trying /usr/lib/python2.6/abc.so                                            
# trying /usr/lib/python2.6/abcmodule.so                                      
# trying /usr/lib/python2.6/abc.py                                            
# /usr/lib/python2.6/abc.pyc matches /usr/lib/python2.6/abc.py                
import abc # precompiled from /usr/lib/python2.6/abc.pyc                      
# trying /usr/lib/python2.6/copy_reg.so                                       
# trying /usr/lib/python2.6/copy_regmodule.so                                 
# trying /usr/lib/python2.6/copy_reg.py                                       
# /usr/lib/python2.6/copy_reg.pyc matches /usr/lib/python2.6/copy_reg.py      
import copy_reg # precompiled from /usr/lib/python2.6/copy_reg.pyc            
# trying /usr/lib/python2.6/sitecustomize.so                                  
# trying /usr/lib/python2.6/sitecustomizemodule.so                            
# trying /usr/lib/python2.6/sitecustomize.py                                  
# trying /usr/lib/python2.6/sitecustomize.pyc                                 
# trying /usr/lib/python2.6/plat-linux2/sitecustomize.so                      
# trying /usr/lib/python2.6/plat-linux2/sitecustomizemodule.so                
# trying /usr/lib/python2.6/plat-linux2/sitecustomize.py                      
# trying /usr/lib/python2.6/plat-linux2/sitecustomize.pyc                     
# trying /usr/lib/python2.6/lib-dynload/sitecustomize.so                      
# trying /usr/lib/python2.6/lib-dynload/sitecustomizemodule.so                
# trying /usr/lib/python2.6/lib-dynload/sitecustomize.py                      
# trying /usr/lib/python2.6/lib-dynload/sitecustomize.pyc                     
# trying /usr/lib/python2.6/site-packages/sitecustomize.so                    
# trying /usr/lib/python2.6/site-packages/sitecustomizemodule.so              
# trying /usr/lib/python2.6/site-packages/sitecustomize.py                    
# trying /usr/lib/python2.6/site-packages/sitecustomize.pyc                   
# trying /usr/lib/python2.6/usercustomize.so                                  
# trying /usr/lib/python2.6/usercustomizemodule.so                            
# trying /usr/lib/python2.6/usercustomize.py                                  
# trying /usr/lib/python2.6/usercustomize.pyc                                 
# trying /usr/lib/python2.6/plat-linux2/usercustomize.so                      
# trying /usr/lib/python2.6/plat-linux2/usercustomizemodule.so                
# trying /usr/lib/python2.6/plat-linux2/usercustomize.py                      
# trying /usr/lib/python2.6/plat-linux2/usercustomize.pyc                     
# trying /usr/lib/python2.6/lib-dynload/usercustomize.so                      
# trying /usr/lib/python2.6/lib-dynload/usercustomizemodule.so                
# trying /usr/lib/python2.6/lib-dynload/usercustomize.py                      
# trying /usr/lib/python2.6/lib-dynload/usercustomize.pyc                     
# trying /usr/lib/python2.6/site-packages/usercustomize.so                    
# trying /usr/lib/python2.6/site-packages/usercustomizemodule.so              
# trying /usr/lib/python2.6/site-packages/usercustomize.py                    
# trying /usr/lib/python2.6/site-packages/usercustomize.pyc                   
import encodings # directory /usr/lib/python2.6/encodings                     
# trying /usr/lib/python2.6/encodings/__init__.so                             
# trying /usr/lib/python2.6/encodings/__init__module.so                       
# trying /usr/lib/python2.6/encodings/__init__.py                             
# /usr/lib/python2.6/encodings/__init__.pyc matches /usr/lib/python2.6/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.6/encodings/__init__.pyc               
# trying /usr/lib/python2.6/encodings/codecs.so                                             
# trying /usr/lib/python2.6/encodings/codecsmodule.so                                       
# trying /usr/lib/python2.6/encodings/codecs.py                                             
# trying /usr/lib/python2.6/encodings/codecs.pyc                                            
# trying /usr/lib/python2.6/codecs.so                                                       
# trying /usr/lib/python2.6/codecsmodule.so                                                 
# trying /usr/lib/python2.6/codecs.py                                                       
# /usr/lib/python2.6/codecs.pyc matches /usr/lib/python2.6/codecs.py                        
import codecs # precompiled from /usr/lib/python2.6/codecs.pyc                              
import _codecs # builtin                                                                    
# trying /usr/lib/python2.6/encodings/encodings.so                                          
# trying /usr/lib/python2.6/encodings/encodingsmodule.so                                    
# trying /usr/lib/python2.6/encodings/encodings.py                                          
# trying /usr/lib/python2.6/encodings/encodings.pyc                                         
# trying /usr/lib/python2.6/encodings/aliases.so                                            
# trying /usr/lib/python2.6/encodings/aliasesmodule.so                                      
# trying /usr/lib/python2.6/encodings/aliases.py                                            
# /usr/lib/python2.6/encodings/aliases.pyc matches /usr/lib/python2.6/encodings/aliases.py  
import encodings.aliases # precompiled from /usr/lib/python2.6/encodings/aliases.pyc        
# trying /usr/lib/python2.6/encodings/__builtin__.so                                        
# trying /usr/lib/python2.6/encodings/__builtin__module.so                                  
# trying /usr/lib/python2.6/encodings/__builtin__.py                                        
# trying /usr/lib/python2.6/encodings/__builtin__.pyc                                       
# trying /usr/lib/python2.6/encodings/ascii.so                                              
# trying /usr/lib/python2.6/encodings/asciimodule.so                                        
# trying /usr/lib/python2.6/encodings/ascii.py                                              
# /usr/lib/python2.6/encodings/ascii.pyc matches /usr/lib/python2.6/encodings/ascii.py      
import encodings.ascii # precompiled from /usr/lib/python2.6/encodings/ascii.pyc            
Python 2.6.4 (r264:75706, Nov 20 2009, 18:24:38)                                            
[GCC 4.3.3] on linux2                                                                       
Type "help", "copyright", "credits" or "license" for more information.                      
# trying readline.so                                                                        
# trying readlinemodule.so                                                                  
# trying readline.py                                                                        
# trying readline.pyc                                                                       
# trying /usr/lib/python2.6/readline.so                                                     
# trying /usr/lib/python2.6/readlinemodule.so                                               
# trying /usr/lib/python2.6/readline.py                                                     
# trying /usr/lib/python2.6/readline.pyc                                                    
# trying /usr/lib/python2.6/plat-linux2/readline.so                                         
# trying /usr/lib/python2.6/plat-linux2/readlinemodule.so                                   
# trying /usr/lib/python2.6/plat-linux2/readline.py                                         
# trying /usr/lib/python2.6/plat-linux2/readline.pyc                                        
# trying /usr/lib/python2.6/lib-dynload/readline.so                                         
dlopen("/usr/lib/python2.6/lib-dynload/readline.so", 2);                                    
>>> import ctypes                                                                           
# trying ctypes.so                                                                          
# trying ctypesmodule.so                                                                    
# trying ctypes.py                                                                          
# trying ctypes.pyc                                                                         
import ctypes # directory /usr/lib/python2.6/ctypes                                         
# trying /usr/lib/python2.6/ctypes/__init__.so                                              
# trying /usr/lib/python2.6/ctypes/__init__module.so                                        
# trying /usr/lib/python2.6/ctypes/__init__.py                                              
# /usr/lib/python2.6/ctypes/__init__.pyc matches /usr/lib/python2.6/ctypes/__init__.py      
import ctypes # precompiled from /usr/lib/python2.6/ctypes/__init__.pyc                     
# trying /usr/lib/python2.6/ctypes/os.so                                                    
# trying /usr/lib/python2.6/ctypes/osmodule.so                                              
# trying /usr/lib/python2.6/ctypes/os.py                                                    
# trying /usr/lib/python2.6/ctypes/os.pyc                                                   
# trying /usr/lib/python2.6/ctypes/sys.so                                                   
# trying /usr/lib/python2.6/ctypes/sysmodule.so                                             
# trying /usr/lib/python2.6/ctypes/sys.py                                                   
# trying /usr/lib/python2.6/ctypes/sys.pyc                                                  
# trying /usr/lib/python2.6/ctypes/_ctypes.so                                               
# trying /usr/lib/python2.6/ctypes/_ctypesmodule.so                                         
# trying /usr/lib/python2.6/ctypes/_ctypes.py                                               
# trying /usr/lib/python2.6/ctypes/_ctypes.pyc                                              
# trying _ctypes.so                                                                         
# trying _ctypesmodule.so                                                                   
# trying _ctypes.py                                                                         
# trying _ctypes.pyc                                                                        
# trying /usr/lib/python2.6/_ctypes.so                                                      
# trying /usr/lib/python2.6/_ctypesmodule.so                                                
# trying /usr/lib/python2.6/_ctypes.py                                                      
# trying /usr/lib/python2.6/_ctypes.pyc                                                     
# trying /usr/lib/python2.6/plat-linux2/_ctypes.so
# trying /usr/lib/python2.6/plat-linux2/_ctypesmodule.so
# trying /usr/lib/python2.6/plat-linux2/_ctypes.py
# trying /usr/lib/python2.6/plat-linux2/_ctypes.pyc
# trying /usr/lib/python2.6/lib-dynload/_ctypes.so
dlopen("/usr/lib/python2.6/lib-dynload/_ctypes.so", 2);
import _ctypes # dynamically loaded from /usr/lib/python2.6/lib-dynload/_ctypes.so
# trying /usr/lib/python2.6/ctypes/struct.so
# trying /usr/lib/python2.6/ctypes/structmodule.so
# trying /usr/lib/python2.6/ctypes/struct.py
# trying /usr/lib/python2.6/ctypes/struct.pyc
# trying struct.so
# trying structmodule.so
# trying struct.py
# trying struct.pyc
# trying /usr/lib/python2.6/struct.so
# trying /usr/lib/python2.6/structmodule.so
# trying /usr/lib/python2.6/struct.py
# /usr/lib/python2.6/struct.pyc matches /usr/lib/python2.6/struct.py
import struct # precompiled from /usr/lib/python2.6/struct.pyc
# trying _struct.so
# trying _structmodule.so
# trying _struct.py
# trying _struct.pyc
# trying /usr/lib/python2.6/_struct.so
# trying /usr/lib/python2.6/_structmodule.so
# trying /usr/lib/python2.6/_struct.py
# trying /usr/lib/python2.6/_struct.pyc
# trying /usr/lib/python2.6/plat-linux2/_struct.so
# trying /usr/lib/python2.6/plat-linux2/_structmodule.so
# trying /usr/lib/python2.6/plat-linux2/_struct.py
# trying /usr/lib/python2.6/plat-linux2/_struct.pyc
# trying /usr/lib/python2.6/lib-dynload/_struct.so
dlopen("/usr/lib/python2.6/lib-dynload/_struct.so", 2);
import _struct # dynamically loaded from /usr/lib/python2.6/lib-dynload/_struct.so
# trying /usr/lib/python2.6/ctypes/ctypes.so
# trying /usr/lib/python2.6/ctypes/ctypesmodule.so
# trying /usr/lib/python2.6/ctypes/ctypes.py
# trying /usr/lib/python2.6/ctypes/ctypes.pyc
# trying /usr/lib/python2.6/ctypes/_endian.so
# trying /usr/lib/python2.6/ctypes/_endianmodule.so
# trying /usr/lib/python2.6/ctypes/_endian.py
# /usr/lib/python2.6/ctypes/_endian.pyc matches /usr/lib/python2.6/ctypes/_endian.py
import ctypes._endian # precompiled from /usr/lib/python2.6/ctypes/_endian.pyc
Segmentation fault

Here's the output of uname -a (in case it is needed):

root@OpenWrt:~# uname -a
Linux OpenWrt 2.6.30.9 #2 Fri Nov 20 18:54:19 EST 2009 mips GNU/Linux

I'd love to troubleshoot this further but I don't know what to do next (gdb?).

Attachments (1)

090-fix-ctypes.patch (622 bytes) - added by riskable@… 8 years ago.
Patch to fix the ctypes module on ar71xx (may also fix it on other platforms).

Download all attachments as: .zip

Change History (6)

comment:2 Changed 8 years ago by riskable@…

I'd supply a patch if I could. I have no idea what is causing this problem but it is nonetheless still a problem. It is a reproducible bug and belongs in this tracker. I *assumed* that whoever is responsible for maintaining the Python package in OpenWRT would be interested in knowing about it so they could take a look.

comment:3 Changed 8 years ago by ptp@…

Commenting out the last line "CFUNCTYPE(c_int)(lambda: None)" in file /usr/lib/python2.6/ctypes/init.py causes it to no longer give a segmentation fault. I haven't tested it much beyond that.

The comment that goes with the CFUNCTYPE line indicates that the line was added to support Win64 and MS SDK Compilers.

Changed 8 years ago by riskable@…

Patch to fix the ctypes module on ar71xx (may also fix it on other platforms).

comment:4 Changed 8 years ago by riskable@…

I have tested ptp's fix for the ctypes problem and can confirm that it works. I have created a patch that can be placed in trunk/packages/feeds/packages/python/patches to permanently correct the problem:

090-fix-ctypes.patch:

Index: Lib/ctypes/__init__.py
===================================================================
--- a/Lib/ctypes/__init__.py	(revision 77004)
+++ b/Lib/ctypes/__init__.py	(working copy)
@@ -538,9 +538,3 @@
     elif sizeof(kind) == 4: c_uint32 = kind
     elif sizeof(kind) == 8: c_uint64 = kind
 del(kind)
-
-# XXX for whatever reasons, creating the first instance of a callback
-# function is needed for the unittests on Win64 to succeed.  This MAY
-# be a compiler bug, since the problem occurs only when _ctypes is
-# compiled with the MS SDK compiler.  Or an uninitialized variable?
-CFUNCTYPE(c_int)(lambda: None)

(it is also attached)

Devs, please include this patch in the main Python distribution as it fixes a pretty serious bug. The line in question is only relevant to Win64 so it probably shouldn't be there anyway (save a few bytes =).

comment:5 Changed 8 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with r18969, thanks!

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.