Ubuntu

expect crashes when parsing a file with chinese charcters in it

Reported by Frederik Deweerdt on 2010-07-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
expect (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: expect

1)
$ lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04

2)
 $ apt-cache policy expect
expect:
  Installed: 5.44.1.14-5
  Candidate: 5.44.1.14-5
  Version table:
 *** 5.44.1.14-5 0
        600 http://archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

3)
Expect launched by dejagnu's runtest segfaults when fed a test file containing Chinese charcters:
(Trace of an attached gdb:)

Program received signal SIGSEGV, Segmentation fault.
_wordcopy_bwd_aligned (dstp=17854424, srcp=17854616, len=2305843009213367960) at wordcopy.c:302
302 wordcopy.c: No such file or directory.
        in wordcopy.c
$ bt
#0 _wordcopy_bwd_aligned (dstp=17854424, srcp=17854616, len=2305843009213367960) at wordcopy.c:302
#1 0x00007f45452d47da in *__GI_memmove (dest=0x1383b50, src=<value optimized out>,
    len=18446744073709551584) at memmove.c:99
#2 0x00007f4545d84ce1 in expMatchProcess () from /usr/lib/libexpect.so.5.44.1.14
#3 0x00007f4545d858e0 in Exp_ExpectObjCmd () from /usr/lib/libexpect.so.5.44.1.14
#4 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#5 0x00007f4545acad26 in ?? () from /usr/lib/libtcl8.5.so.0
#6 0x00007f4545b0d930 in TclObjInterpProcCore () from /usr/lib/libtcl8.5.so.0
#7 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#8 0x00007f4545a869e9 in ?? () from /usr/lib/libtcl8.5.so.0
#9 0x00007f4545a86396 in Tcl_EvalEx () from /usr/lib/libtcl8.5.so.0
#10 0x00007f4545aeeb71 in Tcl_FSEvalFileEx () from /usr/lib/libtcl8.5.so.0
#11 0x00007f4545a97b85 in ?? () from /usr/lib/libtcl8.5.so.0
#12 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#13 0x00007f4545acad26 in ?? () from /usr/lib/libtcl8.5.so.0
#14 0x00007f4545b0d930 in TclObjInterpProcCore () from /usr/lib/libtcl8.5.so.0
#15 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#16 0x00007f4545a869e9 in ?? () from /usr/lib/libtcl8.5.so.0
#17 0x00007f4545a86396 in Tcl_EvalEx () from /usr/lib/libtcl8.5.so.0
#18 0x00007f4545aeeb71 in Tcl_FSEvalFileEx () from /usr/lib/libtcl8.5.so.0
#19 0x00007f4545a97b85 in ?? () from /usr/lib/libtcl8.5.so.0
#20 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#21 0x00007f4545a869e9 in ?? () from /usr/lib/libtcl8.5.so.0
#22 0x00007f4545a86396 in Tcl_EvalEx () from /usr/lib/libtcl8.5.so.0
#23 0x00007f4545a87a1f in TclEvalObjEx () from /usr/lib/libtcl8.5.so.0
#24 0x00007f4545b0d064 in ?? () from /usr/lib/libtcl8.5.so.0
#25 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#26 0x00007f4545acad26 in ?? () from /usr/lib/libtcl8.5.so.0
#27 0x00007f4545ac9169 in ?? () from /usr/lib/libtcl8.5.so.0
#28 0x00007f4545acd2d3 in ?? () from /usr/lib/libtcl8.5.so.0
#29 0x00007f4545b0d930 in TclObjInterpProcCore () from /usr/lib/libtcl8.5.so.0
#30 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#31 0x00007f4545acad26 in ?? () from /usr/lib/libtcl8.5.so.0
#32 0x00007f4545ac9169 in ?? () from /usr/lib/libtcl8.5.so.0
#33 0x00007f4545a87685 in TclEvalObjEx () from /usr/lib/libtcl8.5.so.0
#34 0x00007f4545a90dda in ?? () from /usr/lib/libtcl8.5.so.0
#35 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#36 0x00007f4545acad26 in ?? () from /usr/lib/libtcl8.5.so.0
#37 0x00007f4545ac9169 in ?? () from /usr/lib/libtcl8.5.so.0
#38 0x00007f4545a87685 in TclEvalObjEx () from /usr/lib/libtcl8.5.so.0
#39 0x00007f4545a90dda in ?? () from /usr/lib/libtcl8.5.so.0
#40 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#41 0x00007f4545acad26 in ?? () from /usr/lib/libtcl8.5.so.0
#42 0x00007f4545ac9169 in ?? () from /usr/lib/libtcl8.5.so.0
#43 0x00007f4545a87685 in TclEvalObjEx () from /usr/lib/libtcl8.5.so.0
#44 0x00007f4545a90dda in ?? () from /usr/lib/libtcl8.5.so.0
#45 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#46 0x00007f4545acad26 in ?? () from /usr/lib/libtcl8.5.so.0
#47 0x00007f4545ac9169 in ?? () from /usr/lib/libtcl8.5.so.0
#48 0x00007f4545a87685 in TclEvalObjEx () from /usr/lib/libtcl8.5.so.0
#49 0x00007f4545a90dda in ?? () from /usr/lib/libtcl8.5.so.0
#50 0x00007f4545a86111 in ?? () from /usr/lib/libtcl8.5.so.0
#51 0x00007f4545a869e9 in ?? () from /usr/lib/libtcl8.5.so.0
#52 0x00007f4545a86396 in Tcl_EvalEx () from /usr/lib/libtcl8.5.so.0
#53 0x00007f4545aeeb71 in Tcl_FSEvalFileEx () from /usr/lib/libtcl8.5.so.0
#54 0x00007f4545aed60f in Tcl_EvalFile () from /usr/lib/libtcl8.5.so.0
#55 0x00007f4545d8f83c in exp_interpret_cmdfilename () from /usr/lib/libexpect.so.5.44.1.14
#56 0x0000000000400ec1 in main ()

4) No segfault. This doesn't segfault in Ubuntu 8.04 with the following version of expect:
expect:
  Installed: 5.43.0-14
  Candidate: 5.43.0-14
  Version table:
 *** 5.43.0-14 0
        600 http://fs1.internal.bizanga.com hardy/main Packages
        600 http://archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

Konstantin Khomoutov (flatworm) wrote :

The maintainer of Expect in Debian asked me to post this comment on his behalf (he doesn't have a launchpad account):

Could you please report this bug in the Debian bug tracker or at least provide a minimal script triggering this error?

Reporting bugs against Debian packages does not require having any account, just the reportbug program or an e-mail client, see [1].

Thanks.

1. http://www.debian.org/Bugs/Reporting

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers