On Sun, Jul 20, 2014 at 04:17:50PM +0100, Edd Barrett wrote:
> On Fri, Jul 18, 2014 at 01:38:17PM +0100, Zé Loff wrote:
> >
> > Hi
> >
> > I was trying to use wxMaxima (-current, amd64) and it fails to start
> > (and connect to) maxima. Actually it fails to start it, as no 'maxima'
> > process is created. I also tried starting xmaxima (the only way I could
> > find to start maxima as a server) and then running wxMaxima listening on
> > the same port, but it also won't connect. maxima and xmaxima work
> > perfectly.
> >
> > Is this a known problem? How can I help further (caveat: all I know
> > about lisp is that apparently it involves a lot of parenthesis)?
>
> Thanks for the report.I see the same here.
>
> Investigating...
So it works the opposite way around to what you might expect. wxMaxima
is the server and maxima is the client.
Looks like wxMaxima uses a wx routine to start a server but encounters
an exception:
Breakpoint 1, wxMaxima::InitSession (this=0x87f082e1800) at wxMaxima.cpp:244
244 int defaultPort = 4010;
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) n
246 wxConfig::Get()->Read(wxT("defaultPort"), &defaultPort);
(gdb)
247 m_port = defaultPort;
(gdb)
249 while (!(server = StartServer()))
(gdb) s
wxMaxima::StartServer (this=0x87f082e1800) at wxMaxima.cpp:644
644 bool wxMaxima::StartServer()
(gdb) n
646 SetStatusText(wxString::Format(_("Starting server on port %d"),
m_port), 1);
(gdb)
648 wxIPV4address addr;
(gdb) n
651 addr.LocalHost();
(gdb)
656 addr.Service(m_port);
(gdb)
658 m_server = new wxSocketServer(addr);
(gdb) s
operator new (sz=200)
at
/usr/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/new_op.cc:50
50 operator new (std::size_t sz) throw (std::bad_alloc)
That is with a wxwidgets built with symbols. That is all you get...
So, that could be a wx bug? Anyone with C++ skills wants to comment?
When I found this bug with the in-tree wxMaxima, I tried the newest
version too. This crashes the same. diff below:
Index: Makefile
===================================================================
RCS file: /home/edd/cvsync/ports/math/wxMaxima/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile 11 Mar 2013 11:23:56 -0000 1.9
+++ Makefile 20 Jul 2014 15:19:37 -0000
@@ -2,7 +2,7 @@
COMMENT = wxWidgets GUI for the computer algebra system maxima
-DISTNAME = wxMaxima-12.09.0
+DISTNAME = wxMaxima-13.04.2
CATEGORIES = math
HOMEPAGE = http://wxmaxima.sourceforge.net/
Index: distinfo
===================================================================
RCS file: /home/edd/cvsync/ports/math/wxMaxima/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo 4 Jan 2013 14:06:33 -0000 1.6
+++ distinfo 20 Jul 2014 15:19:42 -0000
@@ -1,2 +1,2 @@
-SHA256 (wxMaxima-12.09.0.tar.gz) = WAOrYvx5G8uH8NDzg1fbpvzMTvphy59wnhQsKVSxMF0=
-SIZE (wxMaxima-12.09.0.tar.gz) = 1554561
+SHA256 (wxMaxima-13.04.2.tar.gz) = KTUtt13T/yc5OrCXFUP9Czw6nDMMLI0H6/03N0He1Os=
+SIZE (wxMaxima-13.04.2.tar.gz) = 1652680
Index: pkg/PLIST
===================================================================
RCS file: /home/edd/cvsync/ports/math/wxMaxima/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST 4 Jan 2013 14:06:33 -0000 1.3
+++ pkg/PLIST 20 Jul 2014 15:27:35 -0000
@@ -16,9 +16,11 @@ share/locale/pl/LC_MESSAGES/wxMaxima.mo
share/locale/pt_BR/LC_MESSAGES/wxMaxima.mo
share/locale/ru/LC_MESSAGES/wxMaxima.mo
share/locale/uk/LC_MESSAGES/wxMaxima.mo
+share/locale/zh_CN/LC_MESSAGES/wxMaxima.mo
share/locale/zh_TW/LC_MESSAGES/wxMaxima.mo
share/pixmaps/
share/pixmaps/wxmaxima.png
+share/pkgconfig/
share/wxMaxima/
share/wxMaxima/COPYING
share/wxMaxima/README
--
Best Regards
Edd Barrett
http://www.theunixzoo.co.uk