Re: Segfault in zope.configuration

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20100402131521.GE6127@platonas>
On Fri, Apr 02, 2010 at 11:29:06AM +0800, Martin Aspeli wrote:
> > I'd be reaching for python/expat debug symbols and gdb, probably.
> 
> I'm not sure how to do that. My gdb fu is *very* limited.

Have you used pdb?  gdb is mostly the same.

gdb python ....

and when it crashes, type 'bt' at the (gdb) prompt.  The C stack trace
reads backwards when compared to Python tracebacks: the main function is
at the bottom, the innermost one at the top.

> I also assume 
> I'd need to re-build python and/or expat for this?

Not necessarily.  Even bare gdb will tell you which library was it that
got the segfault.  If you want more, you can usually install debug
symbols for Python and libexpat into /usr/lib/debug and re-run gdb,
without having to rebuild your own python/libexpat.

I don't know about SLES.  I've tried Googling and only found
http://en.opensuse.org/Packaging/Debuginfo which appears to be a page
for packagers, and links to http://fedoraproject.org/wiki/StackTraces
for end-user "how to get a useful stack trace" tutorial.

AFAICs if you have a 'debuginfo-install' command (part of yum-utils) on
your server, you should be golden.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAku17ekACgkQkVdEXeem148r8QCggdL+Bmdoz5LOwHZp9mnyAGcW
zPQAnje5c51CZwUzNVpi0fveNFA1t/wq
=Ylit
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.