tk8.5 causes segfaults

Bug #588377 reported by saedelaere
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tk8.5 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: tk8.5

Hi,

on ubuntu 64bit my application sometimes stopes with a segmantation fault. I tried to backtrace the error, and this is what i got:

christian@kubuntu:~$ gdb `which wish` core
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/wish...(no debugging symbols found)...done.
[New Thread 2681]
[New Thread 2682]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libtk8.5.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtk8.5.so.0
Reading symbols from /usr/lib/libtcl8.5.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtcl8.5.so.0
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXss.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXss.so.1
Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXft.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXft.so.2
Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libfontconfig.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libexpat.so.1
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/lib/tktray1.3.3/libtktray1.3.3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/tktray1.3.3/libtktray1.3.3.so
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Core was generated by `wish /usr/local/bin/tv-viewer --debug'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fa5a39130a8 in _XData32 () from /usr/lib/libX11.so.6
(gdb) thread apply all bt

Thread 2 (Thread 2682):
#0 0x00007fa5a229ffb3 in select () from /lib/libc.so.6
#1 0x00007fa5a3effe2e in ?? () from /usr/lib/libtcl8.5.so.0
#2 0x00007fa5a3c0d9ca in start_thread () from /lib/libpthread.so.0
#3 0x00007fa5a22a76cd in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()

Thread 1 (Thread 2681):
#0 0x00007fa5a39130a8 in _XData32 () from /usr/lib/libX11.so.6
#1 0x00007fa5a38ed613 in XChangeProperty () from /usr/lib/libX11.so.6
#2 0x00007fa5a42339d1 in ?? () from /usr/lib/libtk8.5.so.0
#3 0x00007fa5a4231066 in ?? () from /usr/lib/libtk8.5.so.0
#4 0x00007fa5a422e2ef in ?? () from /usr/lib/libtk8.5.so.0
#5 0x00007fa5a3e52111 in ?? () from /usr/lib/libtcl8.5.so.0
#6 0x00007fa5a3e96d26 in ?? () from /usr/lib/libtcl8.5.so.0
#7 0x00007fa5a3ed9930 in TclObjInterpProcCore () from /usr/lib/libtcl8.5.so.0
#8 0x00007fa5a3e52111 in ?? () from /usr/lib/libtcl8.5.so.0
#9 0x00007fa5a3e529e9 in ?? () from /usr/lib/libtcl8.5.so.0
#10 0x00007fa5a3e52396 in Tcl_EvalEx () from /usr/lib/libtcl8.5.so.0
#11 0x00007fa5a3ebab71 in Tcl_FSEvalFileEx () from /usr/lib/libtcl8.5.so.0
#12 0x00007fa5a4187ca1 in Tk_MainEx () from /usr/lib/libtk8.5.so.0
#13 0x0000000000400adc in main ()

Note this is not always happening, but very often. A visual evidence something is wrong is that you can not change the window icon with [wm iconphoto] it always displays a fallback image. I contacted the tcl irc channel and asked them for help. They told me there is a bug in Tk 8.5.8 that causes this behaviour and it has been fixed already.

https://sourceforge.net/tracker/index.php?func=detail&aid=3003353&group_id=12997&atid=112997

Please include the mentioned path and update the ubuntu packages for 64bit!!!

Thank you very much

Best Regards
Christian

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: tk8.5 8.5.8-1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Tue Jun 1 18:39:11 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
ProcEnviron:
 LANGUAGE=
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: tk8.5

Revision history for this message
saedelaere (saedelaere) wrote :
Revision history for this message
saedelaere (saedelaere) wrote :
  • core Edit (18.0 MiB, application/octet-stream)

I just attached the core dump file

Revision history for this message
saedelaere (saedelaere) wrote :

I forgot to mention one more thing. I tried the latest activetcl release (8.5.8.2) - no more segfaults and changing the window icon works again. So the solution mentioned in the bug report here
https://sourceforge.net/tracker/index.php?func=detail&aid=3003353&group_id=12997&atid=112997
should work!

Regards

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.