Subject: ktechlab crashes when component is added to the circuit
Package: ktechlab
Version: 0.3-9
Severity: important

*** Please type your report below this line ***
When I try to add a component to a circuit board, the application
crashes (SIGSEGV).

After some investigation, I found a bug in the patch 40_g++-4.3.dpatch:
+       m_map = new ETMap( m_size );

I changed this line to:
+       m_map = new ETMap( m_size, std::vector<uint>( m_size ) );

ETMap is a vector of vectors of ints, it should be m_size x m_size, not
only m_size, but the original author didn't use the right C++ syntax,
which should be:

m_map = new ETMap( m_size, std::vector<uint>( m_size ) );

(Not only m_map = new ETMap( m_size, m_size ); )

It works fine after correcting this patch and rebuilding the package.

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

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=sk_SK.UTF-8, LC_CTYPE=sk_SK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ktechlab depends on:
ii  gpsim                  0.22.0-5          Simulator for Microchip's PIC 
micr
ii  kdelibs4c2a            4:3.5.9.dfsg.1-6  core libraries and binaries for 
al
ii  libacl1                2.2.47-2          Access control list shared 
library
ii  libart-2.0-2           2.3.20-2          Library of functions for 2D 
graphi
ii  libatk1.0-0            1.22.0-1          The ATK accessibility toolkit
ii  libattr1               1:2.4.43-1        Extended attribute shared library
ii  libaudio2              1.9.1-4           Network Audio System - shared 
libr
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libcairo2              1.6.4-6           The Cairo 2D vector graphics 
libra
ii  libfam0                2.7.0-13.3        Client library to control the FAM
ii  libfontconfig1         2.6.0-1           generic font configuration 
library
ii  libfreetype6           2.3.7-1           FreeType 2 font engine, shared 
lib
ii  libgcc1                1:4.3.1-2         GCC support library
ii  libglib2.0-0           2.16.4-2          The GLib library of C routines
ii  libgtk2.0-0            2.12.10-2         The GTK+ graphical user interface
ii  libice6                2:1.0.4-1         X11 Inter-Client Exchange library
ii  libidn11               1.8+20080606-1    GNU libidn library, 
implementation
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG
ii  libpango1.0-0          1.20.5-1          Layout and rendering of 
internatio
ii  libpixman-1-0          0.10.0-2          pixel-manipulation library for X 
a
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libpopt0               1.14-4            lib for parsing cmdline 
parameters
ii  libqt3-mt              3:3.3.8b-5        Qt GUI Library (Threaded runtime 
v
ii  libreadline5           5.2-3             GNU readline and history 
libraries
ii  libsm6                 2:1.0.3-2         X11 Session Management library
ii  libstdc++6             4.3.1-2           The GNU Standard C++ Library v3
ii  libx11-6               2:1.1.4-2         X11 client-side library
ii  libxcursor1            1:1.1.9-1         X cursor management library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension 
librar
ii  libxft2                2.1.12-3          FreeType-based font drawing 
librar
ii  libxi6                 2:1.1.3-1         X11 Input extension library
ii  libxinerama1           2:1.0.3-2         X11 Xinerama extension library
ii  libxrandr2             2:1.2.3-1         X11 RandR extension library
ii  libxrender1            1:0.9.4-2         X Rendering Extension client 
libra
ii  libxt6                 1:1.0.5-3         X11 toolkit intrinsics library
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages ktechlab recommends:
ii  gputils                       0.13.6-1   GNU PIC utilities

ktechlab suggests no packages.

-- no debconf information

slavko

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to