Bug#890637: wxmaxima: Segmentation fault when redoing action

2018-02-17 Thread Gunter Königsmann
Thanks a lot!

Will try to upload the new version to debian-testing.

Kind regards,

 Gunter.



Bug#890637: wxmaxima: Segmentation fault when redoing action

2018-02-17 Thread John Scott
Package: wxmaxima
Version: 17.10.1-1
Followup-For: Bug #890637

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

I installed nightly and it worked fine. The bug is not reproducible
there, and I noticed that undoing and redoing works differently. In
my steps to reproduce on 17.10, pressing Ctrl+Z once makes the output
of the cell turn gray and all but the first letter of the input disappear
and pressing twice makes the entire cell disappear.

I can see that the functionality has been changed in the nightly so
that it only needs to be pressed once, and I a change somewhere
along the way must have fixed this bug.

Thank you for your help.

- -- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wxmaxima depends on:
ii  ibus-gtk3 1.5.17-3
ii  libc6 2.26-6
ii  libgcc1   1:8-20180207-2
ii  libstdc++68-20180207-2
ii  libwxbase3.0-0v5  3.0.3.1+dfsg2-1
ii  libwxgtk3.0-0v5   3.0.3.1+dfsg2-1
ii  maxima5.41.0-1

Versions of packages wxmaxima recommends:
ii  maxima-doc  5.41.0-1

Versions of packages wxmaxima suggests:
ii  fonts-jsmath 0.090709+0-3
ii  texlive-latex-extra  2017.20180110-1

- -- no debconf information

-BEGIN PGP SIGNATURE-

iQFGBAEBCgAwFiEEJwCMxdBfG24Y2trvfWFEpid5MHIFAlqIPIESHGpzY290dEBw
b3N0ZW8ubmV0AAoJEH1hRKYneTByLHUIAJRabf1vLllCrDXGE/uTM9AigSFTt5Y6
HQ/NRGKyznz+Ub9WFeZwUFt23oHpqXN3dItSvMeHd7eNO0rzgJWJ2IO3pqspmkX1
15b5xuucP0DlXh+GUJck9btYnyfgwRmzf41/7G9QQfwp1Ruy9bgCBw1uFFS3FiKc
RA7VxZnKZRaq0bQ4/xQu6qOaiFYqVEQC0ty7eomDN9ChjUcweFGwVOlOH1KVmr0/
aC2YRMBQqNYTp32s0JbNr7HsFeaPNEtY22bbrtn3luVgV6Bvp7/nla+Usl4cZFsc
zrlIA0rMUq2G5Sb64zpkdUJITdxLcz3SMdW2dCpy07Q5B+UUgkuckDg=
=+rBt
-END PGP SIGNATURE-



Bug#890637: wxmaxima: Segmentation fault when redoing action

2018-02-16 Thread Gunter Königsmann
I cannot reproduce this on my computer. And this time the backtrace
tells what is broken in the worksheet but not when it broke. But I hope
it will be fixed in the next maxima release.

The .deb packages from
https://code.launchpad.net/~peterpall/+archive/ubuntu/wxmaxima-nightlies

should be installable on debian-testing. Would it be possible for you to
test them? As soon as we manage to resolve the last problems with
building .apk files for the mac platforms there will be a new release I
am planning to upload to debian-testing again.

Kind regards,

  Gunter.



Bug#890637: wxmaxima: Segmentation fault when redoing action

2018-02-16 Thread John Scott
Package: wxmaxima
Version: 17.10.1-1
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

I found another bug in wxMaxima. Steps to reproduce:

1. Type some text and press Shift+Enter so that it makes a cell.
2. Press Ctrl+Z twice to undo the creation of the cell.
3. Press Ctrl+Y, and the window will disappear

The bug is not specific to keyboard shortcuts: the crash can be
reproduced by undoing and redoing with the menu bar as well.

I've included a backtrace below to help investigate this.

- -- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wxmaxima depends on:
ii  ibus-gtk3 1.5.17-3
ii  libc6 2.26-6
ii  libgcc1   1:8-20180207-2
ii  libstdc++68-20180207-2
ii  libwxbase3.0-0v5  3.0.3.1+dfsg2-1
ii  libwxgtk3.0-0v5   3.0.3.1+dfsg2-1
ii  maxima5.41.0-1

Versions of packages wxmaxima recommends:
ii  maxima-doc  5.41.0-1

Versions of packages wxmaxima suggests:
pn  fonts-jsmath 
ii  texlive-latex-extra  2017.20180110-1

- -- no debconf information

*** /home/john/wxMaxima/backtrace.txt
#0  0x74f5be30 in main_arena () at /lib/x86_64-linux-gnu/libc.so.6
#1  0x55656137 in GroupCell::Recalculate() (this=0x56203a50) at 
./src/GroupCell.cpp:482
#2  0x5568a9bb in MathCtrl::Recalculate(GroupCell*, bool) 
(this=this@entry=
0x55b91040, start=start@entry=0x0, force=force@entry=false) at 
./src/MathCtrl.cpp:769
#3  0x5569358a in MathCtrl::Recalculate(GroupCell*, bool) (force=false, 
start=0x0, this=0x55b91040)
at ./src/MathCtrl.cpp:740
#4  0x5569358a in MathCtrl::InsertGroupCells(GroupCell*, GroupCell*, 
std::__cxx11::list >*) (this=this@entry=0x55b91040, 
cells=cells@entry=0x56203a50, where=where@entry=0x0, 
undoBuffer=undoBuffer@entry=0x55b91380) at ./src/MathCtrl.cpp:563
#5  0x5569fbc9 in 
MathCtrl::TreeUndo(std::__cxx11::list >*, 
std::__cxx11::list >*) (this=this@entry=0x55b91040, 
sourcelist=sourcelist@entry=0x55b91398, 
undoForThisOperation=undoForThisOperation@entry=0x55b91380)
at ./src/MathCtrl.cpp:6742
#6  0x556a06c6 in MathCtrl::TreeRedo() (this=0x55b91040) at 
./src/MathCtrl.h:296
#7  0x556a06c6 in MathCtrl::Redo() (this=0x55b91040) at 
./src/MathCtrl.cpp:6574
#8  0x55729fb6 in wxMaxima::EditMenu(wxCommandEvent&) 
(this=0x55aee510, event=...) at ./src/wxMaxima.cpp:3751
#9  0x75c562ce in 
wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&) (entry=..., handler=, event=...) at 
../src/common/event.cpp:1390
#10 0x75c563d3 in wxEventHashTable::HandleEvent(wxEvent&, 
wxEvtHandler*) (this=, event=..., 
self=self@entry=0x55aee510) at ../src/common/event.cpp:996
#11 0x75c5679b in wxEvtHandler::TryHereOnly(wxEvent&) 
(this=0x55aee510, event=...)
at ../src/common/event.cpp:1587
#12 0x75c56593 in wxEvtHandler::DoTryChain(wxEvent&) (this=, event=...)
at ../src/common/event.cpp:1552
#13 0x75c56885 in wxEvtHandler::ProcessEvent(wxEvent&) 
(this=0x55aeea38, event=...)
at ../src/common/event.cpp:1493
#14 0x767b0f1b in wxWindowBase::TryAfter(wxEvent&) 
(this=0x55c12cd0, event=...) at ../src/common/wincmn.cpp:3427
#15 0x75c565e7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) 
(this=, event=...)
at ../src/common/event.cpp:1611
#16 0x767b248c in wxWindowBase::HandleWindowEvent(wxEvent&) const 
(this=this@entry=0x55c12cd0, event=...)
at ../src/common/wincmn.cpp:1525
#17 0x76763bcb in wxMenuBase::SendEvent(int, int) 
(this=this@entry=0x55ba1f90, itemid=itemid@entry=6147, checked=) at ../src/common/menucmn.cpp:666
#18 0x76651b3b in menuitem_activate(GtkWidget*, wxMenuItem*) 
(item=0x55c96b40) at ../src/gtk/menu.cpp:587
#22 0x7408bebf in  (instance=, signal_id=, 
detail=detail@entry=0) at ../../../../gobject/gsignal.c:3447
#19 0x7406ff9d in g_closure_invoke (closure=0x55c92c60, 
return_value=0x0, n_param_values=1, param_values=0x7fffd170, 
invocation_hint=0x7fffd0f0) at ../../../../gobject/gclosure.c:804
#20 0x74082cce in signal_emit_unlocked_R 
(node=node@entry=0x55ba02d0, detail=detail@entry=0, 
instance=instance@entry=0x55cd5500, 
emission_return=emission_return@entry=0x0,