Package: mysql-query-browser Version: 1.2.5beta-3 Severity: normal
Pasting code into the query browser crashes the browser, if the code contains a /* */ style comment, lacking leading whitespace before the comment. To reproduce: 1. Invoke MySQL query browser. 2. Paste the following code into the query window: select/* comment */ Result: Immediate crash. strace follows. poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(3, "\1 `\27\6\0\0\0\4\0\0\0\0\0\0\0\6\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 read(3, "\315\1\0\0\316\1\0\0\37\0\0\0\312\1\0\0\313\1\0\0 \1\0"..., 24) = 24 write(3, "\21\0\2\0\316\1\0\0", 8) = 8 read(3, 0xbff7d18c, 32) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(3, "\1Ga\27\3\0\0\0\t\0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 readv(3, [{"TIMESTAMP", 9}, {"\0\0\0", 3}], 2) = 12 write(3, "\21\0\2\0\312\1\0\0", 8) = 8 read(3, 0xbff7d18c, 32) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(3, "\1Gb\27\1\0\0\0\4\0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 readv(3, [{"TEXT", 4}, {"", 0}], 2) = 4 write(3, "\21\0\2\0\313\1\0\0", 8) = 8 read(3, 0xbff7d18c, 32) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(3, "\1Gc\27\4\0\0\0\r\0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 readv(3, [{"COMPOUND_TEXT", 13}, {"\1\0\0", 3}], 2) = 16 write(3, "\23\0\3\0\215\3\340\0106\2\0\0\27\0\2\0\1\0\0\0", 20) = 20 read(3, 0xbff7d850, 32) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(3, "\34:d\27\215\3\340\0106\2\0\0\20/\22Q\1\0\0\0\0\0\0\0\215"..., 32) = 32 read(3, "\1Ge\27\0\0\0\0\n\0\300\10\340z\236\n6\2\0\0\4\0\0\0\0"..., 32) = 32 gettimeofday({1182476152, 592488}, NULL) = 0 gettimeofday({1182476152, 592589}, NULL) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN}], 7, 0) = 0 write(3, "\30\0\6\0\215\3\340\10\1\0\0\0 \1\0\0006\2\0\0\367.\22"..., 24) = 24 ioctl(3, FIONREAD, [0]) = 0 gettimeofday({1182476152, 599574}, NULL) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN}], 7, 369) = 1 ioctl(3, FIONREAD, [64]) = 0 read(3, "\34:f\27\215\3\340\0106\2\0\0\23/\22Q\0\0\0\0\0\0\0\0\215"..., 64) = 64 gettimeofday({1182476152, 599974}, NULL) = 0 gettimeofday({1182476152, 600141}, NULL) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN}], 7, 0) = 0 write(3, "\24\0\6\0\215\3\340\0106\2\0\0\0\0\0\0\0\0\0\0\377\377"..., 24) = 24 read(3, 0xbff7de3c, 32) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 read(3, "\1\10g\27\5\0\0\0 \1\0\0\0\0\0\0\23\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 readv(3, [{"select/* comment */", 19}, {"\0", 1}], 2) = 20 write(3, "\20\0\5\0\t\0\340\10ATOM_PAIR\0\0\0", 20) = 20 read(3, "\1Gh\27\0\0\0\0\332\1\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 write(2, "mysql-query-browser: myx_sql_hig"..., 110mysql-query-browser: myx_sql_highlighting.c:482: myx_highlight: Assertion `token_begin == counter -1' failed. ) = 110 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 tgkill(1386, 1386, SIGABRT) = 0 --- SIGABRT (Aborted) @ 0 (0) --- +++ killed by SIGABRT +++ Process 1386 detached -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (950, 'testing'), (750, 'stable'), (500, 'oldstable'), (400, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages mysql-query-browser depends on: ii libart-2.0-2 2.3.19-3 Library of functions for 2D graphi ii libatk1.0-0 1.18.0-2 The ATK accessibility toolkit ii libbonobo2-0 2.18.0-2 Bonobo CORBA interfaces library ii libbonoboui2-0 2.18.0-5 The Bonobo UI library ii libc6 2.5-9+b1 GNU C Library: Shared libraries ii libcairo2 1.4.6-1.1 The Cairo 2D vector graphics libra ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libgcc1 1:4.2-20070528-1 GCC support library ii libgconf2-4 2.18.0.1-3 GNOME configuration database syste ii libglade2-0 1:2.6.0-4 library to load .glade files at ru ii libglib2.0-0 2.12.12-1 The GLib library of C routines ii libglibmm-2.4-1c2a 2.12.7-1 C++ wrapper for the GLib toolkit ( ii libgnome-keyring0 0.8.1-2 GNOME keyring services library ii libgnome2-0 2.18.0-4 The GNOME 2 library - runtime file ii libgnomecanvas2-0 2.14.0-2 A powerful object-oriented display ii libgnomeprint2.2-0 2.18.0-2 The GNOME 2.2 print architecture - ii libgnomeprintui2.2-0 2.18.0-2 GNOME 2.2 print architecture User ii libgnomeui-0 2.18.1-2 The GNOME 2 libraries (User Interf ii libgnomevfs2-0 1:2.18.1-2 GNOME Virtual File System (runtime ii libgtk2.0-0 2.10.12-2 The GTK+ graphical user interface ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - r ii libgtkmm-2.4-1c2a 1:2.8.8-1 C++ wrappers for GTK+ 2.4 (shared ii libice6 1:1.0.3-2 X11 Inter-Client Exchange library ii libmysqlclient15off 5.0.38-1 mysql database client library ii liborbit2 1:2.14.7-0.1 libraries for ORBit2 - a CORBA ORB ii libpango1.0-0 1.16.4-1 Layout and rendering of internatio ii libpcre3 6.7-1 Perl 5 Compatible Regular Expressi ii libpopt0 1.10-3 lib for parsing cmdline parameters ii libsigc++-2.0-0c2a 2.0.17-2 type-safe Signal Framework for C++ ii libsm6 2:1.0.3-1 X11 Session Management library ii libstdc++6 4.2-20070528-1 The GNU Standard C++ Library v3 ii libx11-6 2:1.0.3-7 X11 client-side library ii libxcursor1 1:1.1.8-2 X cursor management library ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio ii libxi6 1:1.0.1-4 X11 Input extension library ii libxinerama1 1:1.0.2-1 X11 Xinerama extension library ii libxml2 2.6.28.dfsg-1 GNOME XML library ii libxrandr2 2:1.2.1-1 X11 RandR extension library ii libxrender1 1:0.9.2-1 X Rendering Extension client libra ii mysql-query-browser-com 1.2.5beta-3 Architecture independent files for ii zlib1g 1:1.2.3-15 compression library - runtime mysql-query-browser recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]