Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3c10bdbb9173b0896cf8a1f159f6e3b68c85202a
Ticket: 2832258fffffffffffffffffffffffffffffffff
tclsh crashes with nonstandard LC_CTYPE
User & Date: yurivict on 2009-08-04 20:38:02
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Right after build, during installation, I get SEGV due to environment, see below.
    Command "unset LC_CTYPE" fixes SEGV.
    Should never crash because of any environment variable values.
    Should complain meaningfully if necessary.
    
    ----shell output----------------------------------------------------------------
    turtle unix # ./tclsh
    Segmentation fault
    turtle unix # env
    MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man
    KDE_MULTIHEAD=false
    DM_CONTROL=/var/run/xdmctl
    SHELL=/bin/bash
    TERM=xterm
    XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
    GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/xx/.gtkrc-2.0:/home/xx/.kde/share/config/gtkrc-2.0
    GS_LIB=/home/xx/.fonts
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/xx/.gtkrc:/home/xx/.kde/share/config/gtkrc
    WINDOWID=33554437
    OLDPWD=/usr/lib
    QTDIR=/usr/qt/3
    KDE_FULL_SESSION=true
    USER=root
    PRELINK_PATH_MASK=/usr/lib/gstreamer-0.10
    LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.yuv=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:*.ra=01;36:*.mka=01;36:
    GDK_USE_XFT=1
    KDEDIR=/usr/kde/3.5
    SESSION_MANAGER=local/turtle:/tmp/.ICE-unix/6053
    CONFIG_PROTECT_MASK=/etc/udev/rules.d /etc/fonts/fonts.conf /etc/gconf
    /etc/terminfo /etc/revdep-rebuild
    PAGER=/usr/bin/less
    XDG_CONFIG_DIRS=/usr/kde/3.5/etc/xdg
    KONSOLE_DCOP=DCOPRef(konsole-6079,konsole)
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    DESKTOP_SESSION=kde-3.5
    QT_IM_MODULE=scim
    PWD=/tmp/tcl8.5.7/unix
    KONSOLE_DCOP_SESSION=DCOPRef(konsole-6079,session-1)
    XMODIFIERS=@im=SCIM
    EDITOR=/usr/bin/vim
    KDE_SESSION_UID=1000
    KDEDIRS=/usr:/usr/local:/usr/kde/3.5
    QMAKESPEC=linux-g++
    HOME=/root
    SHLVL=3
    XCURSOR_THEME=default
    LOGNAME=root
    LESS=-R -M --shift 5
    CVS_RSH=ssh
    GCC_SPECS=
    LC_CTYPE=zh_TW.UTF-8
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-BRTRMe2p0R,guid=1f23f869b77c8b72410b22d94a768e70
    ROOTPATH=/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/qt/3/bin:/usr/games/bin
    XDG_DATA_DIRS=/usr/kde/3.5/share:/usr/share
    LESSOPEN=|lesspipe.sh %s
    PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig
    INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info
    DISPLAY=:0
    OPENGL_PROFILE=xorg-x11
    GTK_IM_MODULE=scim
    LDPATH=/usr/kde/3.5/lib:
    CONFIG_PROTECT=/usr/kde/3.5/share/config /usr/kde/3.5/env
    /usr/kde/3.5/shutdown /usr/share/config
    XAUTHORITY=/root/.xauthAc7Xai
    COLORTERM=
    _=/bin/env
    
    ---dbg stack------------------------------------------
    Program received signal SIGSEGV, Segmentation fault.
    0xb7d99028 in strcmp () from /lib/libc.so.6
    (gdb) bt
    #0  0xb7d99028 in strcmp () from /lib/libc.so.6
    #1  0xb7f768cc in SearchKnownEncodings () from /usr/local/lib/libtcl8.5.so
    #2  0xb7f76a40 in Tcl_GetEncodingNameFromEnvironment () from
    /usr/local/lib/libtcl8.5.so
    #3  0xb7f76c28 in TclpSetInitialEncodings () from
    /usr/local/lib/libtcl8.5.so
    #4  0xb7f02d1c in Tcl_FindExecutable () from /usr/local/lib/libtcl8.5.so
    #5  0xb7f38322 in Tcl_Main () from /usr/local/lib/libtcl8.5.so
    #6  0x0804874f in main ()
    (gdb)  bt
    #0  0xb7d99028 in strcmp () from /lib/libc.so.6
    #1  0xb7f768cc in SearchKnownEncodings () from /usr/local/lib/libtcl8.5.so
    #2  0xb7f76a40 in Tcl_GetEncodingNameFromEnvironment () from
    /usr/local/lib/libtcl8.5.so
    #3  0xb7f76c28 in TclpSetInitialEncodings () from
    /usr/local/lib/libtcl8.5.so
    #4  0xb7f02d1c in Tcl_FindExecutable () from /usr/local/lib/libtcl8.5.so
    #5  0xb7f38322 in Tcl_Main () from /usr/local/lib/libtcl8.5.so
    #6  0x0804874f in main ()
    (gdb)
    
  4. foundin changed to: "obsolete: 8.5.7"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "yurivict"
  10. subsystem changed to: "08. Environment Variables"
  11. title changed to: "tclsh crashes with nonstandard LC_CTYPE"
  12. type changed to: "Bug"