Hi,

  While debugging some remaining issues with the sagemath package I am
working, it had a bug where it would link both, statically and
dynamically with libpolybori and its associated libraries.
  Interestingly, when LD_PRELOAD'ing libpolybori.so it would not cause
some crashes[1], but when preloading it I found out that it has an
interesting problem, where, if the preprocessor UNIX is not defined at
compile time, it uses stubs for things like popen and pclose, or "non
optimal" code for other things.

  I am reporting the problem mostly because the precompiled sagemath
binaries also have the problem:
% pwd
/home/pcpa/sage-4.1
% objdump -t -T local/lib/libpolybori-0.5.0.so | egrep '\<popen\>'
0003de40 g     F .text  00000044              popen
0003de40 g    DF .text  00000044  Base        popen

  [I renamed to sage-4.1 the directory where I untarred the Mandriva
2009.0 binaries]


  Another problem is the fact that sage uses the spkg
boost-cropped-1.34.1.spkg, while I am building packages with:
% rpm -q libboost-devel
libboost-devel-1.39.0-2mdv2010.0

  I have attempted some time ago to compile only polybori with
boost-cropped-1.34.1.spkg, but the results were not very good...

[1] The crashes are interesting, because they are generated usually
when running something like "sage -t some/dir", but if running "sage
-t some/dir/only/the/file/that/causes/the/crash" it doesn't crash; the
crash is libc aborting due to memory errors, either something overrun
the free'ed memory, or just a double free.

Thanks,
Paulo

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to