I tried to get with the times and build sage via the "git" route. It seems 
I mostly got a functioning "sage 5.12rc1". There is one problem, however: 
I'm getting SIGSEGV whenever I ask for "<object>?" on the command line. The 
segfault occurs somewhere in ncurses:

#0  0x00000031d060f080 in waitpid()
#1  0x00007f68c7cb352b in print_enhanced_backtrace()
#2  0x00007f68c7cb3652 in sigdie()
#3  0x00007f68c7cb2d4a in sage_signal_handler()
#4  0x00000031cfa18280 in __restore_rt()
#5  0x00007f68c43575c0 in _nc_init_acs()
#6  0x00000031d2617fb0 in _nc_setupscreen()
#7  0x00000031d2614f40 in newterm()
#8  0x00000031d2611550 in initscr()
#9  0x00007f68c45a58b0 in PyCurses_InitScr()

and I've never had trouble with that before. Comparing the dynamic library 
mappings for both 5.10 on this machine (where displaying documentation does 
work) and for this 5.12rc1 (where displaying documentation leads to a 
segfault) gives the same output for both:

$ cat /proc/<PID>/maps | grep ncurs
31d2600000-31d262f000 r-xp 00000000 fd:01 528444                         
/lib64/libncursesw.so.5.9
31d262f000-31d282e000 ---p 0002f000 fd:01 528444                         
/lib64/libncursesw.so.5.9
31d282e000-31d282f000 r--p 0002e000 fd:01 528444                         
/lib64/libncursesw.so.5.9
31d282f000-31d2830000 rw-p 0002f000 fd:01 528444                         
/lib64/libncursesw.so.5.9

so in both cases the linker is picking up the system installed ncurses.

There is a difference in libraries locally installed though:

$ ls /usr/local/sage/5.10/local/lib/*curs*
ls-F: No match.

$ ls /usr/local/sage/sage-git/local/lib/*curs*
/usr/local/sage/sage-git/local/lib/libcurses.so
/usr/local/sage/sage-git/local/lib/libncurses++.a
/usr/local/sage/sage-git/local/lib/libncurses.so
/usr/local/sage/sage-git/local/lib/libncurses.so.5
/usr/local/sage/sage-git/local/lib/libncurses.so.5.9

so the new build does have some libncurses libraries installed locally.

Could the problem arise from ipython building a library to work with the 
local libncurses.so, but in actuality picking up the system libncursesw.so 
during runtime?

Are other people having this problem? is there an easy way to avoid the 
problem?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to