You have been subscribed to a public bug by Jamie Strandboge (jdstrand):

Zim 0.48
Ubuntu + KDE desktop
Linux motey-desktop 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 
2010 i686 GNU/Linux

I was cut and pasting to insert a graph and it had a very long line. The entire 
desktop crashed and killed all other programs.
As a programmer it looks like a buffer over run issue. The same data formatted 
with a smaller line length did not cause the crash.( I am quite aware that a 
string over run can be used to compromise a machine and so I have labeled it 
security issue.)
It is possible that the writing outside of the data boundary happened in 
another library and I am afraid to replicate it unless requested to do so.
 
I was at pasting into insert diagram window when it happened.  

The data below is the single line inserted:

digraph structs { node [shape=plaintext] struct1 [label=< <TABLE
BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR><TD>left</TD><TD
PORT="f1">mid dle</TD><TD PORT="f2">right</TD></TR> </TABLE>>]; struct2
[label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR><TD
PORT="f0">one</TD><TD>two</TD></TR> </TABLE>>]; struct3 [label=< <TABLE
BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4"> <TR> <TD
ROWSPAN="3">hello<BR/>world</TD> <TD COLSPAN="3">b</TD> <TD
ROWSPAN="3">g</TD> <TD ROWSPAN="3">h</TD> </TR> <TR> <TD>c</TD><TD
PORT="here">d</TD><TD>e</TD> </TR> <TR> <TD COLSPAN="3">f</TD> </TR>
</TABLE>>]; struct1:f1 -> struct2:f0; struct1:f2 -> struct3:her

wc says it is 671 characters.

If I can help with Zim as a programmer let me know. I really like the program 
and have used it for years. It is very useful.
I can do the debug on this issue if requested. I am familiar with assembly, 
Python, perl, C, C++, and hardware. I assume it is a string copy to a string 
buffer of 512 or so. I have gotten into the source for perl Zim on many 
occasions and also the Python version to change little things back when certain 
things were incomplete. This is a clean install from debian and I have made no 
mods to the code or I would not report the bug. 

$ zim -D

INFO: This is zim 0.48
DEBUG: Python version is (2, 6, 5, 'final', 0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
        branch: pyzim-trunk
        revision: 290 [email protected]
        date: 2010-07-22 23:33:10 +0200

DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/motey/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/share>, <Dir: 
/usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/motey/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/motey/.cache
DEBUG: Running command: gui
DEBUG: Cache dir: /home/motey/Notes/.zim
DEBUG: Loading /home/motey/Notes/notebook.zim
DEBUG: Index database file: /home/motey/Notes/.zim/index.db
INFO: Opening default notebook
DEBUG: Sending to daemon: ["ping",[],{}]

DEBUG: Daemon replied: "Ack"
DEBUG: Sending to daemon: 
["vivicate",["zim.gui.GtkInterface","file:///home/motey/Notes"],{"usedaemon":true,"notebook":"file:///home/motey/Notes"}]

DEBUG: Daemon replied: true
DEBUG: Sending to daemon: 
["relay",[["zim.gui.GtkInterface","file:///home/motey/Notes"],"present",null],{"geometry":null,"fullscreen":null}]

DEBUG: Daemon replied: true
motey@motey-desktop:~$ 

If you want me to debug this, just let me know, I would be glad to do
it.

And thank you again for such a wonderful and useful program.

** Affects: zim
     Importance: Undecided
         Status: Fix Released

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
Complete system crash
https://bugs.launchpad.net/bugs/677736
You received this bug notification because you are a member of Ubuntu Bugs, 
which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to