Bug#623869: sqlite3: Segmentation fault when running .l (lower case L) after any command.

2011-04-26 Thread Keith Ward
I've just managed to test this against a few other versions from the
Debian repository.

This crash also applies to the version in testing (3.7.5-1 at time of
testing).

It does however appear fixed in sid (Version: 3.7.6.2-1).

-Keith



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#623869: sqlite3: Segmentation fault when running .l (lower case L) after any command.

2011-04-23 Thread Keith Ward
Package: sqlite3
Version: 3.7.3-1
Severity: normal

When running sqlite3 typing .l  after any command results in sqlite3 
segfaulting.
The initial command executes correctly, however if you then run .l the 
application crashes instantly.

This happens whether you connect to a database or not.

This is reproducible 100% of the time:

Example:
:~$ sqlite3
SQLite version 3.7.3
Enter .help for instructions
Enter SQL statements terminated with a ;
sqlite .l
sqlite .l
Segmentation fault (core dumped)

SQLite version 3.7.3
Enter .help for instructions
Enter SQL statements terminated with a ;
sqlite .tables
snip tables
sqlite .l
Segmentation fault


Backtrace


(gdb) bt full
#0  __strcmp_sse2 () at ../sysdeps/x86_64/multiarch/../strcmp.S:343
No locals.
#1  0x004052ab in do_meta_command (zLine=value optimized out, 
p=0x7b127190) at ./src/shell.c:1849
zFile = 0x0
i = value optimized out
nArg = value optimized out
n = value optimized out
c = 108
rc = value optimized out
azArg = {0x1983961 l, 0x0, 0x7fb00020 Address 0x7fb00020 out 
of bounds, 0x1983330 sqlite .l, 0x Address 0x out of 
bounds, 0x1 Address 0x1 out of bounds,
  0xa Address 0xa out of bounds, 0x7fb0a799efc0 , 0x0, 
0x7fb0a79c9d32 \213\024$\205\300\271\001, 0x19833390001 Address 
0x19833390001 out of bounds, 0x7b126e9c \260\177, 0x0,
  0x7fb0a76b2ba3 H\205\300y\330A\203\f$ 
L\211\350H)\330I\213\224$\220, 0x1983339 l, 0x7fb0a79a0780 \204*\255, 
incomplete sequence \373, 0x0,
  0x7fb0a76b2ba3 H\205\300y\330A\203\f$ 
L\211\350H)\330I\213\224$\220, 0x7b126fd0 X1303592560, 0x7fb0a7be9b4c 
\n, 0x1983960 .l, 0x1 Address 0x1 out of bounds, 0x7b127190 ,
  0x20 Address 0x20 out of bounds, 0x7fb0a79a1e98 \200Ϙ\001, 
0x7fb0a79a1ea8 \230\036\232\247\260\177, 0x7b126f10 
\230\036\232\247\002, 0x3 Address 0x3 out of bounds,
  0x2a79a1e98 Address 0x2a79a1e98 out of bounds, 0x7fb0a79a1e48 , 
0x40 Address 0x40 out of bounds, 0x2000c Address 0x2000c out of 
bounds,
  0x2fb126f70 Address 0x2fb126f70 out of bounds, 0x1983960 .l, 
0x7fb0a79a1e40 , 0x3 Address 0x3 out of bounds, 0x1 Address 0x1 out of 
bounds, 0x7b127190 , 0x0,
  0x7fb0a76bb930 H\205\300H\211\303\017\204\244, 0x1 Address 0x1 out 
of bounds, 0x1983960 .l, 0x1983a00  :\230\001, 0x19839e0 , 0x1 Address 
0x1 out of bounds,
  0x7fb0a79d5ae6 H\205\300H\211\303t\nH\211\330[\303\017\037D, 
0x1983960 .l, 0x7fb0a79d6017 H\211\303H\211], 0x7b126fd0 X1303592560, 
0x7fb0a7be9b4c \n}
#2  0x00404576 in process_input (p=0x7b127190, in=0x0) at 
./src/shell.c:2290
zLine = 0x1983960 .l
zSql = 0x0
nSql = 0
zErrMsg = 0x0
rc = value optimized out
errCnt = 0
lineno = 2
startline = 0
#3  0x00407131 in main (argc=1, argv=0x1) at ./src/shell.c:2713
zHome = value optimized out
zErrMsg = 0x0
data = {db = 0x0, echoOn = 0, statsOn = 0, cnt = 0, out = 
0x7fb0a79a0780, mode = 2, writableSchema = 0, showHeader = 0, zDestTable = 0x0, 
separator = |, '\000' repeats 18 times, colWidth = {
0 repeats 100 times}, actualWidth = {0 repeats 100 times}, 
nullvalue = '\000' repeats 19 times, explainPrev = {valid = 0, mode = 0, 
showHeader = 0, colWidth = {0 repeats 100 times}},
  outfile = '\000' repeats 4095 times, zDbFilename = 0x4079d4 
:memory:, pStmt = 0x0, pLog = 0x0}
zInitFile = 0x19704f0 /home/archer/.sqlite_history
zFirstCmd = 0x0
i = value optimized out
rc = 26674416



-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sqlite3 depends on:
ii  libc6 2.11.2-10  Embedded GNU C Library: Shared lib
ii  libreadline6  6.1-3  GNU readline and history libraries
ii  libsqlite3-0  3.7.3-1SQLite 3 shared library

sqlite3 recommends no packages.

Versions of packages sqlite3 suggests:
pn  sqlite3-doc   none (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org