gnuplot crashes when binary format ignores all data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnuplot |
Unknown
|
Unknown
|
|||
gnuplot (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnuplot
andrey@
Description: Ubuntu 8.10
Release: 8.10
andrey@
gnuplot:
Installed: 4.2.3-1
Candidate: 4.2.3-1
Version table:
*** 4.2.3-1 0
500 http://
100 /var/lib/
andrey@
gnuplot> plot 'tst.dat' binary format=
*** buffer overflow detected ***: gnuplot terminated
======= Backtrace: =========
/lib/tls/
/lib/tls/
/lib/tls/
gnuplot[0x8069550]
gnuplot[0x80a8620]
gnuplot[0x806230f]
gnuplot[0x806297d]
gnuplot[0x80a4255]
/lib/tls/
gnuplot[0x80582b1]
======= Memory map: ========
08048000-08168000 r-xp 00000000 08:01 1229602 /usr/bin/gnuplot
08168000-08169000 r--p 0011f000 08:01 1229602 /usr/bin/gnuplot
08169000-0817a000 rw-p 00120000 08:01 1229602 /usr/bin/gnuplot
0817a000-08185000 rw-p 0817a000 00:00 0
09f0d000-0a0ff000 rw-p 09f0d000 00:00 0 [heap]
b6031000-b623e000 rw-p b6031000 00:00 0
b623e000-b62d3000 r--p 00000000 08:01 270337 /usr/share/
b62d3000-b6333000 rw-s 00000000 00:09 3866644 /SYSV00000000 (deleted)
b6333000-b6334000 ---p b6333000 00:00 0
b6334000-b6b34000 rw-p b6334000 00:00 0
b6b34000-b6b94000 rw-s 00000000 00:09 3833875 /SYSV00000000 (deleted)
b6b94000-b6b9a000 r-xp 00000000 08:01 1232213 /usr/lib/
b6b9a000-b6b9b000 r--p 00005000 08:01 1232213 /usr/lib/
b6b9b000-b6b9c000 rw-p 00006000 08:01 1232213 /usr/lib/
b6b9c000-b6bcb000 r-xp 00000000 08:01 1230649 /usr/lib/
b6bcb000-b6bcc000 r--p 0002e000 08:01 1230649 /usr/lib/
b6bcc000-b6bcd000 rw-p 0002f000 08:01 1230649 /usr/lib/
b6bcd000-b6c0b000 r-xp 00000000 08:01 499875 /usr/lib/
b6c0b000-b6c0c000 r--p 0003d000 08:01 499875 /usr/lib/
b6c0c000-b6c0d000 rw-p 0003e000 08:01 499875 /usr/lib/
b6c0d000-b6d42000 r-xp 00000000 08:01 1229934 /usr/lib/
b6d42000-b6d43000 ---p 00135000 08:01 1229934 /usr/lib/
b6d43000-b6d47000 r--p 00135000 08:01 1229934 /usr/lib/
b6d47000-b6d48000 rw-p 00139000 08:01 1229934 /usr/lib/
b6d48000-b6d49000 rw-p b6d48000 00:00 0
b6d49000-b6d5e000 r-xp 00000000 08:01 1231100 /usr/lib/
b6d5e000-b6d60000 rw-p 00014000 08:01 1231100 /usr/lib/
b6d60000-b6dc6000 r-xp 00000000 08:01 499867 /usr/lib/
b6dc6000-b6dc7000 ---p 00066000 08:01 499867 /usr/lib/
b6dc7000-b6dc8000 r--p 00066000 08:01 499867 /usr/lib/
b6dc8000-b6dc9000 rw-p 00067000 08:01 499867 /usr/lib/
b6dcb000-b6dcd000 r-xp 00000000 08:01 1411308 /usr/lib/
b6dcd000-b6dce000 r--p 00001000 08:01 1411308 /usr/lib/
b6dce000-b6dcf000 rw-p 00002000 08:01 1411308 /usr/lib/
b6dcf000-b6dd2000 rw-s 00000000 00:09 3899413 /SYSV00000000 (deleted)
b6dd2000-b6dd8000 r-xp 00000000 08:01 1253909 /usr/lib/
b6dd8000-b6dd9000 r--p 00005000 08:01 1253909 /usr/lib/
b6dd9000-b6dda000 rw-p 00006000 08:01 1253909 /usr/lib/
b6dda000-b6de0000 r--s 00000000 08:01 2238113 /var/cache/
b6de0000-b6de3000 r--s 00000000 08:01 2238007 /var/cache/
b6de3000-b6de5000 r--s 00000000 08:01 2238067 /var/cache/
b6de5000-b6de8000 r--s 00000000 08:01 2238015 /var/cache/
b6de8000-b6de9000 r--s 00000000 08:01 2237964 /var/cache/
b6de9000-b6dec000 r--s 00000000 08:01 2238139 /var/cacAborted
description: | updated |
Changed in gnuplot (Ubuntu): | |
status: | Invalid → Confirmed |
summary: |
- gnuplot crashes on binary format + gnuplot crashes when binary format ignores all data |
An asterisk in the format string tells gnuplot to ignore a variable. In other words, you're telling it to ignore the entire contents of the datafile and then to plot it. Everything is fine if you use the command:
plot 'tst.dat' binary format '%double' using 1:2
Therefore, the problem occurs when the format string states that all data must be ignored.