--- Begin Message ---
Subject: snooper: segfault when resizing the terminal window
Package: snooper
Version: 19991202-3
Severity: normal
Rebuilt the package with debug enabled, and this is what gdb shows:
,----
| root@box:/tmp/snooper-19991202# build/snooper /dev/ttyS0 /dev/ttyS1
| LE DTR RTS ST SR CTS CD RI DSR 9600bps /dev/ttyS0 0 chars
| LE DTR RTS ST SR CTS CD RI DSR 9600bps /dev/ttyS1 0 chars
| --------------------------------------------------------------------------
| Segmentation fault (core dumped)
|
| root@box:/tmp/snooper-19991202# gdb build/snooper core
| GNU gdb 5.3-debian
| Copyright 2002 Free Software Foundation, Inc.
| GDB is free software, covered by the GNU General Public License, and you are
| welcome to change it and/or distribute copies of it under certain conditions.
| Type "show copying" to see the conditions.
| There is absolutely no warranty for GDB. Type "show warranty" for details.
| This GDB was configured as "i386-linux"...
| Core was generated by `build/snooper /dev/ttyS0 /dev/ttyS1'.
| Program terminated with signal 11, Segmentation fault.
| Reading symbols from /lib/libncurses.so.5...done.
| Loaded symbols for /lib/libncurses.so.5
| Reading symbols from /usr/lib/liblockdev.so.1...done.
| Loaded symbols for /usr/lib/liblockdev.so.1
| Reading symbols from /lib/libc.so.6...done.
| Loaded symbols for /lib/libc.so.6
| Reading symbols from /lib/ld-linux.so.2...done.
| Loaded symbols for /lib/ld-linux.so.2
| #0 0x08049c0e in echoback (line=0,
| buf=0xbffff840 "\214\216\002@\020x\001@\200l\001@\a", len=-1)
| at ../src/main.c:316
| 316 if (buf[i] == ' ') {
| (gdb) bt
| #0 0x08049c0e in echoback (line=0,
| buf=0xbffff840 "\214\216\002@\020x\001@\200l\001@\a", len=-1)
| at ../src/main.c:316
| #1 0x0804aa32 in mainloop () at ../src/main.c:671
| #2 0x0804b0f4 in main (argc=2, argv=0xbffffd48) at ../src/main.c:817
| (gdb) q
|
| root@box:/tmp/snooper-19991202#
`----
Cheers,
Cristian
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux box 2.4.22-xfs #1 SMP Fr Okt 3 20:36:25 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages snooper depends on:
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii liblockdev1 1.0.1-6 Run-time shared library for lockin
ii libncurses5 5.3.20030719-5 Shared libraries for terminal hand
-- no debconf information
--- End Message ---