[Zope] Mac OS X and zope (continued)

Pavel Zaitsev pavel at md5.ca
Wed Mar 30 10:42:20 EST 2005


Paul Winkler wrote:

>>google for "debug spinning zope".
>>
>>if the gdb output doesn't mean anything to you,
>>post it here and maybe someone will understand it.
>>    
>>

Ok so results are in, zope seems to crash on creating files in 
/tmp/driectory... when listing directory contents and other things. See 
attached backtraces. Mind you 3of 5 backtrace injections did not work. 
Not sure why. I have used /ztmp directory and backtraces got being 
stored fine.
Pavel
-------------- next part --------------
Funkys-Computer:~ root# ps aux|grep zope
root       826   0.0  0.1    33604   1564  ??  Ss   11:39PM   0:00.11 /usr/local/bin/python /usr/local/zope_2.7.5/lib/python/zdaemon/zdrun.py -S /usr/local/zope_2.7.5/lib/python/Z
zope       827   0.0  2.2    61212  23432  ??  S    11:39PM   0:19.99 /usr/local/bin/python /usr/local/zope_2.7.5/lib/python/Zope/Startup/run.py -C /usr/local/web/etc/zope.conf
root      1303   0.0  0.0    18644    100 std  R+   12:53AM   0:00.00 grep zope
Funkys-Computer:~ root# gdb    
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
(gdb) attach 827
Attaching to process 827.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ........................................................................................... done
0x9000b208 in select ()
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) cont
Continuing.




^C
Program received signal SIGINT, Interrupt.
0x9000b208 in select ()
(gdb) info threads
  16 process 827 thread 0x1c03  0x90016f48 in semaphore_wait_signal_trap ()
  15 process 827 thread 0x1b03  0x90016f48 in semaphore_wait_signal_trap ()
  14 process 827 thread 0x1a03  0x90016f48 in semaphore_wait_signal_trap ()
  13 process 827 thread 0x1903  0x90016f48 in semaphore_wait_signal_trap ()
  12 process 827 thread 0x1803  0x90016f48 in semaphore_wait_signal_trap ()
  11 process 827 thread 0x1703  0x90016f48 in semaphore_wait_signal_trap ()
  10 process 827 thread 0x1603  0x90016f48 in semaphore_wait_signal_trap ()
  9 process 827 thread 0x1503  0x90016f48 in semaphore_wait_signal_trap ()
  8 process 827 thread 0x1403  0x90016f48 in semaphore_wait_signal_trap ()
  7 process 827 thread 0x1303  0x90016f48 in semaphore_wait_signal_trap ()
  6 process 827 thread 0x1203  0x90016f48 in semaphore_wait_signal_trap ()
  5 process 827 thread 0x1103  0x90016f48 in semaphore_wait_signal_trap ()
  4 process 827 thread 0x1003  0x90016f48 in semaphore_wait_signal_trap ()
  3 process 827 thread 0xf03  0x90016f48 in semaphore_wait_signal_trap ()
  2 process 827 thread 0xe3b  0x90016f48 in semaphore_wait_signal_trap ()
* 1 process 827 thread 0x50f  0x9000b208 in select ()
(gdb) cont
Continuing.

^C
Program received signal SIGINT, Interrupt.
0x9000b208 in select ()
(gdb) info threads
  16 process 827 thread 0x1c03  0x90016f48 in semaphore_wait_signal_trap ()
  15 process 827 thread 0x1b03  0x9000e88c in open ()
  14 process 827 thread 0x1a03  0x90016f48 in semaphore_wait_signal_trap ()
  13 process 827 thread 0x1903  0x90016f48 in semaphore_wait_signal_trap ()
  12 process 827 thread 0x1803  0x90016f48 in semaphore_wait_signal_trap ()
  11 process 827 thread 0x1703  0x90016f48 in semaphore_wait_signal_trap ()
  10 process 827 thread 0x1603  0x90016f48 in semaphore_wait_signal_trap ()
  9 process 827 thread 0x1503  0x90016f48 in semaphore_wait_signal_trap ()
  8 process 827 thread 0x1403  0x90016f48 in semaphore_wait_signal_trap ()
  7 process 827 thread 0x1303  0x90016f48 in semaphore_wait_signal_trap ()
  6 process 827 thread 0x1203  0x90016f48 in semaphore_wait_signal_trap ()
  5 process 827 thread 0x1103  0x90016f48 in semaphore_wait_signal_trap ()
  4 process 827 thread 0x1003  0x90016f48 in semaphore_wait_signal_trap ()
  3 process 827 thread 0xf03  0x90016f48 in semaphore_wait_signal_trap ()
  2 process 827 thread 0xe3b  0x90016f48 in semaphore_wait_signal_trap ()
* 1 process 827 thread 0x50f  0x9000b208 in select ()
(gdb) call PyRun_SimpleString("import sys, traceback; sys.stderr=open('/tmp/tb','w',0); traceback.print_stack()")

Program received signal SIGABRT, Aborted.
0x900429ac in kill ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (PyRun_SimpleString) will be abandoned.
(gdb) 

Program received signal SIGABRT, Aborted.
0x900429ac in kill ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (PyRun_SimpleString) will be abandoned.
(gdb) 

Program received signal SIGABRT, Aborted.
0x900429ac in kill ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (PyRun_SimpleString) will be abandoned.
(gdb) 

Program received signal SIGABRT, Aborted.
0x900429ac in kill ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (PyRun_SimpleString) will be abandoned.
(gdb) Look in "/tmp/tb" for a complete Python traceback of the current call stack of the thread.
Undefined command: "Look".  Try "help".
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) yes
Detaching from process 827 thread 0x50f.
Funkys-Computer:~ root# 

-------------- next part --------------
Funkys-Computer:/usr/local/web/bin root# ps aux|grep zope
root      1521   0.0  0.1    33604   1560  ??  Ss    1:56AM   0:00.02 /usr/local/bin/python /usr/local/zope_2.7.5/lib/python/zdaemon/zdrun.py -S /usr/local/zope_2.7.5/lib/python/Z
zope      1522   0.0  1.8   574884  19248  ??  S     1:56AM   0:02.37 /usr/local/bin/python /usr/local/zope_2.7.5/lib/python/Zope/Startup/run.py -C /usr/local/web/etc/zope.conf
root      1566   0.0  0.0    18644    100 std  R+    1:58AM   0:00.00 grep zope
Funkys-Computer:/usr/local/web/bin root# gdb
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
(gdb) attach 1522
Attaching to process 1522.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ........................................................................................... done
0x9000b208 in select ()
(gdb) cont
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x9000b208 in select ()
(gdb) info threads
  16 process 1522 thread 0x1c03  0x90016f48 in semaphore_wait_signal_trap ()
  15 process 1522 thread 0x1b03  0x90016f48 in semaphore_wait_signal_trap ()
  14 process 1522 thread 0x1a03  0x90016f48 in semaphore_wait_signal_trap ()
  13 process 1522 thread 0x1903  0x90016f48 in semaphore_wait_signal_trap ()
  12 process 1522 thread 0x1803  0x90016f48 in semaphore_wait_signal_trap ()
  11 process 1522 thread 0x1703  0x90016f48 in semaphore_wait_signal_trap ()
  10 process 1522 thread 0x1603  0x90016f48 in semaphore_wait_signal_trap ()
  9 process 1522 thread 0x1503  0x90016f48 in semaphore_wait_signal_trap ()
  8 process 1522 thread 0x1403  0x90016f48 in semaphore_wait_signal_trap ()
  7 process 1522 thread 0x1303  0x90016f48 in semaphore_wait_signal_trap ()
  6 process 1522 thread 0x1203  0x90016f48 in semaphore_wait_signal_trap ()
  5 process 1522 thread 0x1103  0x90016f48 in semaphore_wait_signal_trap ()
  4 process 1522 thread 0x1003  0x90016f48 in semaphore_wait_signal_trap ()
  3 process 1522 thread 0xf03  0x90016f48 in semaphore_wait_signal_trap ()
  2 process 1522 thread 0xe3b  0x90016f48 in semaphore_wait_signal_trap ()
* 1 process 1522 thread 0x50f  0x9000b208 in select ()
(gdb) cont
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x9000b208 in select ()
(gdb) info threads
  16 process 1522 thread 0x1c03  0x90016f48 in semaphore_wait_signal_trap ()
  15 process 1522 thread 0x1b03  0x9000e88c in open ()
  14 process 1522 thread 0x1a03  0x90016f48 in semaphore_wait_signal_trap ()
  13 process 1522 thread 0x1903  0x90016f48 in semaphore_wait_signal_trap ()
  12 process 1522 thread 0x1803  0x90016f48 in semaphore_wait_signal_trap ()
  11 process 1522 thread 0x1703  0x90016f48 in semaphore_wait_signal_trap ()
  10 process 1522 thread 0x1603  0x90016f48 in semaphore_wait_signal_trap ()
  9 process 1522 thread 0x1503  0x90016f48 in semaphore_wait_signal_trap ()
  8 process 1522 thread 0x1403  0x90016f48 in semaphore_wait_signal_trap ()
  7 process 1522 thread 0x1303  0x90016f48 in semaphore_wait_signal_trap ()
  6 process 1522 thread 0x1203  0x90016f48 in semaphore_wait_signal_trap ()
  5 process 1522 thread 0x1103  0x90016f48 in semaphore_wait_signal_trap ()
  4 process 1522 thread 0x1003  0x90016f48 in semaphore_wait_signal_trap ()
  3 process 1522 thread 0xf03  0x90016f48 in semaphore_wait_signal_trap ()
  2 process 1522 thread 0xe3b  0x90016f48 in semaphore_wait_signal_trap ()
* 1 process 1522 thread 0x50f  0x9000b208 in select ()
(gdb) select 15
(gdb) call PyRun_SimpleString("import sys, traceback; sys.stderr=open('/tmp/tb','w',0); traceback.print_stack()")

Program received signal SIGABRT, Aborted.
0x900429ac in kill ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (PyRun_SimpleString) will be abandoned.
(gdb) cont
Continuing.

^C
Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
You can't do that when your target is `None'
You can't do that when your target is `None'
(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit
Funkys-Computer:/usr/local/web/bin root# 
-------------- next part --------------
  File "/usr/local/zope_2.7.5/lib/python/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__
    response=response)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 384, in publish_module
    environ, debug, request, response)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 175, in publish_module_standard
    response = publish(request, module_name, after_list, debug=debug)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 101, in publish
    request, bind=1)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 39, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "/usr/local/zope_2.7.5/lib/python/webdav/Resource.py", line 259, in PROPFIND
    result=cmd.apply(self)
  File "/usr/local/zope_2.7.5/lib/python/webdav/davcmds.py", line 166, in apply
    self.apply(ob, uri, depth, result, top=0)
  File "/usr/local/zope_2.7.5/lib/python/webdav/davcmds.py", line 129, in apply
    ps=obsheets.get(ns, None)
  File "/usr/local/zope_2.7.5/lib/python/OFS/PropertySheets.py", line 661, in get
    return propset.__of__(self)
  File "<string>", line 1, in ?
-------------- next part --------------
  File "/usr/local/zope_2.7.5/lib/python/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__
    response=response)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 384, in publish_module
    environ, debug, request, response)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 175, in publish_module_standard
    response = publish(request, module_name, after_list, debug=debug)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 101, in publish
    request, bind=1)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "/usr/local/zope_2.7.5/lib/python/ZPublisher/Publish.py", line 39, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "/usr/local/zope_2.7.5/lib/python/webdav/Resource.py", line 259, in PROPFIND
    result=cmd.apply(self)
  File "/usr/local/zope_2.7.5/lib/python/webdav/davcmds.py", line 166, in apply
    self.apply(ob, uri, depth, result, top=0)
  File "/usr/local/zope_2.7.5/lib/python/webdav/davcmds.py", line 131, in apply
    stat=ps.dav__propstat(name, rdict)
  File "/usr/local/zope_2.7.5/lib/python/OFS/PropertySheets.py", line 371, in dav__propstat
    value=self.getProperty(name)
  File "/usr/local/zope_2.7.5/lib/python/OFS/PropertySheets.py", line 508, in getProperty
    return getattr(self, method)()
  File "/usr/local/zope_2.7.5/lib/python/OFS/PropertySheets.py", line 555, in dav__getcontentlength
    return vself.get_size()
  File "/usr/local/zope_2.7.5/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 252, in get_size
    return len(self.read())
  File "/usr/local/zope_2.7.5/lib/python/Products/PageTemplates/PageTemplate.py", line 143, in read
    self._cook_check()
  File "/usr/local/zope_2.7.5/lib/python/Products/PageTemplates/PageTemplate.py", line 160, in _cook_check
    self._cook()
  File "/usr/local/zope_2.7.5/lib/python/Products/PageTemplates/PageTemplate.py", line 177, in _cook
    parser.parseString(self._text)
  File "/usr/local/zope_2.7.5/lib/python/TAL/HTMLTALParser.py", line 126, in parseString
    self.feed(data)
  File "/usr/local/lib/python2.3/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/local/lib/python2.3/HTMLParser.py", line 150, in goahead
    k = self.parse_endtag(i)
  File "/usr/local/lib/python2.3/HTMLParser.py", line 329, in parse_endtag
    self.handle_endtag(tag.lower())
  File "/usr/local/zope_2.7.5/lib/python/TAL/HTMLTALParser.py", line 178, in handle_endtag
    self.gen.emitEndElement(tag)
  File "/usr/local/zope_2.7.5/lib/python/TAL/TALGenerator.py", line 802, in emitEndElement
    self.emitCondition(condition)
  File "/usr/local/zope_2.7.5/lib/python/TAL/TALGenerator.py", line 298, in emitCondition
    cexpr = self.compileExpression(expr)
  File "/usr/local/zope_2.7.5/lib/python/TAL/TALGenerator.py", line 208, in compileExpression
    return self.expressionCompiler.compile(expr)
  File "/usr/local/zope_2.7.5/lib/python/Products/PageTemplates/TALES.py", line 135, in compile
    return handler(type, expr, self)
  File "<string>", line 1, in ?


More information about the Zope mailing list