#13889: Better automatic backtrace
----------------------------------+-----------------------------------------
       Reporter:  vbraun          |         Owner:  jdemeyer    
           Type:  enhancement     |        Status:  needs_review
       Priority:  major           |     Milestone:  sage-5.6    
      Component:  build           |    Resolution:              
       Keywords:                  |   Work issues:              
Report Upstream:  N/A             |     Reviewers:              
        Authors:  Volker Braun    |     Merged in:              
   Dependencies:  #13881, #13866  |      Stopgaps:              
----------------------------------+-----------------------------------------

Comment (by jdemeyer):

 Could you add
 {{{
 libpython = os.path.join(env['SAGE_LOCAL'], 'lib', libpython)
 }}}
 since libpython is returned as relative path and causes `gdb` to fail to
 start on OS X.

 But even with this change, the hack doesn't work on OS X.

 System `gdb`:
 {{{
 (sage subshell) bsd:sage-4.8 jdemeyer$
 DYLD_INSERT_LIBRARIES="$SAGE_LOCAL/lib/libpython2.7.dylib" /usr/bin/gdb
 dyld: Symbol not found: _environ
   Referenced from: /Users/jdemeyer/sage-4.8/local/lib/libpython2.7.dylib
   Expected in: flat namespace
  in /Users/jdemeyer/sage-4.8/local/lib/libpython2.7.dylib
 Trace/BPT trap
 }}}

 `gdb` spkg but compiled (on purpose) with the wrong Python version:
 {{{
 (sage subshell) bsd:sage-4.8 jdemeyer$
 DYLD_INSERT_LIBRARIES="$SAGE_LOCAL/lib/libpython2.7.dylib" gdb
 'import site' failed; use -v for traceback
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/Users/jdemeyer/sage-4.8/local/lib/python/os.py", line 398, in
 <module>
     import UserDict
   File "/Users/jdemeyer/sage-4.8/local/lib/python/UserDict.py", line 83,
 in <module>
     import _abcoll
   File "/Users/jdemeyer/sage-4.8/local/lib/python/_abcoll.py", line 11, in
 <module>
     from abc import ABCMeta, abstractmethod
   File "/Users/jdemeyer/sage-4.8/local/lib/python/abc.py", line 8, in
 <module>
     from _weakrefset import WeakSet
   File "/Users/jdemeyer/sage-4.8/local/lib/python/_weakrefset.py", line 5,
 in <module>
     from _weakref import ref
 ImportError: No module named _weakref
 GNU gdb (GDB) 7.5.1
 Copyright (C) 2012 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "x86_64-apple-darwin10.8.0".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 (gdb)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13889#comment:38>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to