treeviewx crashes when opening a file

Bug #606316 reported by federico
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
treeviewx (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: treeviewx

1- Ubuntu release: 10.04

2-package version: treviewx-0.5.1-6 amd64

3- treeviewx should be able to display phylogenetic trees,

4- the program opens, but if you try to open any tree file, it crashes.

here's the konsole output:

tv
*** buffer overflow detected ***: tv terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f2b9130f207]
/lib/libc.so.6(+0xfe0c0)[0x7f2b9130e0c0]
/lib/libc.so.6(__wcstombs_chk+0x0)[0x7f2b913108b0]
tv[0x414af4]
/usr/lib/libwx_gtk2u_core-2.6.so.0(_ZN16wxScrolledWindow7OnPaintER12wxPaintEvent+0x3d)[0x7f2b928b122d]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x50)[0x7f2b92023390]
/usr/lib/libwx_baseu-2.6.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0xa4)[0x7f2b920242e4]
/usr/lib/libwx_baseu-2.6.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x7f2b920243c7]
/usr/lib/libwx_gtk2u_core-2.6.so.0(_ZN8wxWindow18GtkSendPaintEventsEv+0x177)[0x7f2b92857e07]
/usr/lib/libwx_gtk2u_core-2.6.so.0(+0x19612c)[0x7f2b9285812c]
/usr/lib/libgtk-x11-2.0.so.0(+0x142178)[0x7f2b90915178]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7f2b8f2cc5de]
/usr/lib/libgobject-2.0.so.0(+0x21598)[0x7f2b8f2e0598]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x639)[0x7f2b8f2e18b9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f2b8f2e2033]
/usr/lib/libgtk-x11-2.0.so.0(+0x2590bf)[0x7f2b90a2c0bf]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7f2b9090e986]
/usr/lib/libgdk-x11-2.0.so.0(+0x4394a)[0x7f2b9056994a]
/usr/lib/libgdk-x11-2.0.so.0(+0x438f7)[0x7f2b905698f7]
======= Memory map: ========
00400000-0046e000 r-xp 00000000 08:05 1575441 /usr/bin/tv
0066d000-0066e000 r--p 0006d000 08:05 1575441 /usr/bin/tv
0066e000-00672000 rw-p 0006e000 08:05 1575441 /usr/bin/tv
00672000-00678000 rw-p 00000000 00:00 0
00af5000-00fd6000 rw-p 00000000 00:00 0 [heap]
7f2b7effe000-7f2b7efff000 ---p 00000000 00:00 0
7f2b7efff000-7f2b7f7ff000 rw-p 00000000 00:00 0
7f2b80000000-7f2b8006b000 rw-p 00000000 00:00 0
7f2b8006b000-7f2b84000000 ---p 00000000 00:00 0
7f2b85e55000-7f2b85e56000 ---p 00000000 00:00 0
7f2b85e56000-7f2b86656000 rw-p 00000000 00:00 0
7f2b86656000-7f2b866e2000 r--p 00000000 08:05 1717158 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
7f2b866e2000-7f2b866e3000 ---p 00000000 00:00 0
7f2b866e3000-7f2b86ee3000 rw-p 00000000 00:00 0
7f2b86ee3000-7f2b86ee4000 ---p 00000000 00:00 0
7f2b86ee4000-7f2b876e4000 rw-p 00000000 00:00 0
7f2b87ee5000-7f2b87ee6000 ---p 00000000 00:00 0
7f2b87ee6000-7f2b886e6000 rw-p 00000000 00:00 0
7f2b886e6000-7f2b886eb000 r-xp 00000000 08:05 1573157 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f2b886eb000-7f2b888ea000 ---p 00005000 08:05 1573157 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f2b888ea000-7f2b888eb000 r--p 00004000 08:05 1573157 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f2b888eb000-7f2b888ec000 rw-p 00005000 08:05 1573157 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f2b888ec000-7f2b88907000 r--s 00000000 08:05 1727117 /usr/share/mime/mime.cache
7f2b88907000-7f2b88922000 r--s 00000000 08:05 1727117 /usr/share/mime/mime.cache
7f2b88922000-7f2b8932e000 r--p 00000000 08:05 1701010 /usr/share/icons/hicolor/icon-theme.cache
7f2b8932e000-7f2b89d3a000 r--p 00000000 08:05 1701010 /usr/share/icons/hicolor/icon-theme.cache
7f2b89d3a000-7f2b89d9a000 rw-s 00000000 00:04 65798151 /SYSV00000000 (deleted)
7f2b89d9a000-7f2b89d9c000 r-xp 00000000 08:05 1578556 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f2b89d9c000-7f2b89f9b000 ---p 00002000 08:05 1578556 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f2b89f9b000-7f2b89f9c000 r--p 00001000 08:05 1578556 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f2b89f9c000-7f2b89f9d000 rw-p 00002000 08:05 1578556 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f2b89f9d000-7f2b8a035000 r--p 00000000 08:05 1717162 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
7f2b8a035000-7f2b8a095000 rw-s 00000000 00:04 65765379 /SYSV00000000 (deleted)
7f2b8a095000-7f2b8a09b000 r-xp 00000000 08:05 1573165 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f2b8a09b000-7f2b8a29a000 ---p 00006000 08:05 1573165 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f2b8a29a000-7f2b8a29b000 r--p 00005000 08:05 1573165 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f2b8a29b000-7f2b8a29c000 rw-p 00006000 08:05 1573165 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f2b8a29c000-7f2b8a29d000 r--s 00000000 08:05 1052230 /var/cache/fontconfig/26de28bc8622bbc1fb67fd234c21975f-le64.cache-3
7f2b8a29d000-7f2b8a29e000 r--s 00000000 08:05 1046591 /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le64.cache-3
7f2b8a29e000-7f2b8a2a7000 r--s 00000000 08:05 1046588 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3
7f2b8a2a7000-7f2b8a2a9000 r--s 00000000 08:05 1046589 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le64.cache-3
7f2b8a2a9000-7f2b8a2ac000 r--s 00000000 08:05 1046598 /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-le64.cache-3
7f2b8a2ac000-7f2b8a2ad000 r--s 00000000 08:05 1046599 /var/cache/fontconfig/e7071f4a29fa870f4323321c154eba04-le64.cache-3
7f2b8a2ad000-7f2b8a2b1000 r--s 00000000 08:05 1052228 /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-le64.cache-3
7f2b8a2b1000-7f2b8a2b2000 r--s 00000000 08:05 1046582 /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-le64.cache-3
7f2b8a2b2000-7f2b8a2b3000 r--s 00000000 08:05 1046576 /var/cache/fontconfig/0d8c3b2ac0904cb8a57a757ad11a4a08-le64.cache-3
7f2b8a2b3000-7f2b8a2b4000 r--s 00000000 08:05 1046584 /var/cache/fontconfig/6a53c69dea097a2d716e069445527da8-le64.cache-3
7f2b8a2b4000-7f2b8a2ba000 r--s 00000000 08:05 1046590 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-le64.cache-3
7f2b8a2ba000-7f2b8a2c3000 r--s 00000000 08:05 1046585 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le64.cache-3
7f2b8a2c3000-7f2b8a2d3000 r--s 00000000 08:05 1046577 /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-le64.cache-3
7f2b8a2d3000-7f2b8a312000 r-xp 00000000 08:05 1573862 /usr/lib/gtk-2.0/2.10.0/engines/libqtcurve.so
7f2b8a312000-7f2b8a511000 ---p 0003f000 08:05 1573862 /usr/lib/gtk-2.0/2.10.0/engines/libqtcurve.soAborted

Revision history for this message
Tim Booth (tbooth) wrote :

Yep, treeview is totally hosed just now. The backtrace hints at an NX bug, but for anyone tempted to try it I can report that simply recompiling source against WX 2.8 compiles but produces the same result. I suspect there is a fairly simple fix but debugging C++/NX apps requires far more beard-power than I have, sadly :-(

The upstream code has been put on Google code recently so I've also reported this issue there:
http://code.google.com/p/treeviewx/issues/detail?id=1

TIM

Revision history for this message
Tim Booth (tbooth) wrote :

Ok, I had a look at the source and this bug is triggered on line 282 of tview.cpp where mbstowcs is called. Removing this, and just setting the string to something arbitrary, stops the program from crashing but the tree still isn't drawn properly. So I guess this requires more than just a simple fix.

Charles Plessy (plessy)
Changed in treeviewx (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.