On Wed, 2006-12-27 at 15:25 +0000, Brett Parker wrote:
> > I proclaimed victory too soon...
> >
> > all tests pass, but when try to use it inside Django, it silently
> > crushes. Crush happens on import sentance already... for example at:
> > from PyLucene import FSDirectory
> > ... no error message, just crush
> >
> > anyone had this problem before ?
>
> [EMAIL PROTECTED]:~$ python
> Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
> [GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from PyLucene import FSDirectory
> WARNING: could not properly read security provider files:
> file:/usr/lib/python2.4/site-packages/security/libgcj.security
> file:/usr/lib/python2.4/site-packages/security/classpath.security
> Falling back to standard GNU security provider
> >>>
>
> Using your package it looks fine here - can you give any debug information?
> Potentially the output of strace -f for the above would be good... something
> like:
>
> strace -f -o pylucene-crash.strace python -c "from PyLucene import
> FSDirectory"
The problems comes up _only_ inside Django... If i load pylucene cleanly
in python it works.
Here's the end of the trace -f:
[pid 4490] open("/usr/lib/python2.4/site-packages/_PyLucene.so",
O_RDONLY) = 8
[pid 4490] read(8, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360
\250"..., 512) = 512
[pid 4490] fstat64(8, {st_mode=S_IFREG|0755, st_size=17034414, ...}) =
0
[pid 4490] mmap2(NULL, 6510496, PROT_READ|PROT_EXEC, MAP_PRIVATE|
MAP_DENYWRITE, 8, 0) = 0xb650c000
[pid 4490] mmap2(0xb6a69000, 782336, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_DENYWRITE, 8, 0x55d) = 0xb6a69000
[pid 4490] mmap2(0xb6b28000, 104352, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6b28000
[pid 4490] mprotect(0xbfe7b000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|
PROT_GROWSDOWN) = 0
[pid 4490] mprotect(0xb701f000, 8384512, PROT_READ|PROT_WRITE|
PROT_EXEC) = 0
[pid 4490] close(8) = 0
[pid 4490] open("/etc/ld.so.cache", O_RDONLY) = 8
[pid 4490] fstat64(8, {st_mode=S_IFREG|0644, st_size=59980, ...}) = 0
[pid 4490] mmap2(NULL, 59980, PROT_READ, MAP_PRIVATE, 8, 0) =
0xb6c92000
[pid 4490] close(8) = 0
[pid 4490] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file
or directory)
[pid 4490] open("/usr/lib/libstdc++.so.6", O_RDONLY) = 8
[pid 4490] read(8, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`
\310\3"..., 512) = 512
[pid 4490] fstat64(8, {st_mode=S_IFREG|0644, st_size=909044, ...}) = 0
[pid 4490] mmap2(NULL, 935588, PROT_READ|PROT_EXEC, MAP_PRIVATE|
MAP_DENYWRITE, 8, 0) = 0xb6427000
[pid 4490] mmap2(0xb6501000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_DENYWRITE, 8, 0xd9) = 0xb6501000
[pid 4490] mmap2(0xb6506000, 22180, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6506000
[pid 4490] close(8) = 0
[pid 4490] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file
or directory)
[pid 4490] open("/lib/libgcc_s.so.1", O_RDONLY) = 8
[pid 4490] read(8, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240
\30"..., 512) = 512
[pid 4490] fstat64(8, {st_mode=S_IFREG|0644, st_size=41096, ...}) = 0
[pid 4490] mmap2(NULL, 44292, PROT_READ|PROT_EXEC, MAP_PRIVATE|
MAP_DENYWRITE, 8, 0) = 0xb6c7c000
[pid 4490] mmap2(0xb6c86000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_DENYWRITE, 8, 0x9) = 0xb6c86000
[pid 4490] close(8) = 0
[pid 4490] mprotect(0xb6501000, 12288, PROT_READ) = 0
[pid 4490] mprotect(0xb650c000, 5623808, PROT_READ|PROT_WRITE) = 0
[pid 4488] <... select resumed> ) = 0 (Timeout)
[pid 4488] futex(0x8237f68, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 4490] mprotect(0xb650c000, 5623808, PROT_READ|PROT_EXEC) = 0
[pid 4490] futex(0xb65074fc, FUTEX_WAKE, 2147483647) = 0
[pid 4490] munmap(0xb6c92000, 59980) = 0
[pid 4490] rt_sigaction(SIGHUP, {0xb68f7340, [], 0}, NULL, 8) = 0
[pid 4490] rt_sigaction(SIGPWR, {0xb694bb10, ~[HUP INT RTMIN RT_1],
SA_RESTART}, NULL, 8) = 0
[pid 4490] rt_sigaction(SIGXCPU, {0xb694bd60, ~[HUP INT RTMIN RT_1],
SA_RESTART}, NULL, 8) = 0
[pid 4490] open("/proc/stat", O_RDONLY) = 8
[pid 4490] read(8, "cpu 424289 2962 71023 1889509 1"..., 4096) = 707
[pid 4490] close(8) = 0
[pid 4490] open("/dev/zero", O_RDONLY) = 8
[pid 4490] fcntl64(8, F_SETFD, FD_CLOEXEC) = 0
[pid 4490] mmap2(0x1000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE, 8, 0) = 0x1000
[pid 4490] mmap2(0x11000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE, 8, 0) = 0x11000
[pid 4490] mmap2(0x21000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE, 8, 0) = 0x21000
[pid 4490] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev