python-gdchart causes python to crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pygdchart2 (Debian) |
Fix Released
|
Unknown
|
|||
pygdchart2 (Ubuntu) |
Fix Released
|
Low
|
Kees Cook |
Bug Description
Binary package hint: python-gdchart
Hello, I was stepping through some gdchart examples, and suddenly
came into this.
There's probably a bug in gdchart which almost led to segfault
(smashing detected), the version says beta, but since it makes
stable python to crash then I think it should at least be
reported.
ubuntu version: Ubuntu 9.04
python version: 2.6.2-0ubuntu1
python-gdchart2 version: 0.beta1-3.4build1
How to reproduce:
sudo apt-get install python-gdchart2
crashes.py:
#!/usr/bin/env python
import gdchart
def crashes():
chart = gdchart.Bar()
chart.width = 400
chart.height = 400
chart.bg_color = 'white'
chart.
chart.xtitle = "Blah"
chart.ytitle = "Blah"
chart.title = "Blah"
chart.
chart.
chart.
if __name__ == '__main__':
crashes()
Stacktrace:
In [14]: chart.draw(
*** buffer overflow detected ***: /usr/bin/python terminated
======= Backtrace: =========
/lib/libc.
/lib/libc.
/lib/libc.
/var/lib/
/var/lib/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/lib/libc.
/usr/bin/
======= Memory map: ========
08048000-08225000 r-xp 00000000 08:11 112720 /usr/bin/python2.6
08225000-08226000 r--p 001dc000 08:11 112720 /usr/bin/python2.6
08226000-08273000 rw-p 001dd000 08:11 112720 /usr/bin/python2.6
08273000-0827c000 rw-p 08273000 00:00 0
09b1f000-09f36000 rw-p 09b1f000 00:00 0 [heap]
b78a2000-b78cc000 r-xp 00000000 08:11 194006 /lib/libgcc_s.so.1
b78cc000-b78cd000 r--p 00029000 08:11 194006 /lib/libgcc_s.so.1
b78cd000-b78ce000 rw-p 0002a000 08:11 194006 /lib/libgcc_s.so.1
b78ce000-b7940000 r-xp 00000000 08:11 115566 /usr/lib/
b7940000-b7944000 r--p 00071000 08:11 115566 /usr/lib/
b7944000-b7945000 rw-p 00075000 08:11 115566 /usr/lib/
b7945000-b7964000 r-xp 00000000 08:11 113951 /usr/lib/
b7964000-b7965000 rw-p 0001e000 08:11 113951 /usr/lib/
b7965000-b7989000 r-xp 00000000 08:11 114115 /usr/lib/
b7989000-b798a000 r--p 00023000 08:11 114115 /usr/lib/
b798a000-b798b000 rw-p 00024000 08:11 114115 /usr/lib/
b798b000-b79a8000 r-xp 00000000 08:11 113656 /usr/lib/
b79a8000-b79a9000 r--p 0001c000 08:11 113656 /usr/lib/
b79a9000-b79c8000 rw-p 0001d000 08:11 113656 /usr/lib/
b79c8000-b79cc000 rw-p b79c8000 00:00 0
b79cc000-b79e1000 r-xp 00000000 08:11 114471 /usr/lib/
b79e1000-b79e2000 r--p 00014000 08:11 114471 /usr/lib/
b79e2000-b79e3000 rw-p 00015000 08:11 114471 /usr/lib/
b79f3000-b79fa000 r-xp 00000000 08:11 138795 /usr/lib/
b79fa000-b79fb000 r--p 00006000 08:11 138795 /usr/lib/
b79fb000-b79fc000 rw-p 00007000 08:11 138795 /usr/lib/
b79fc000-b7a14000 r-xp 00000000 08:11 178659 /usr/lib/
b7a14000-b7a15000 r--p 00017000 08:11 178659 /usr/lib/
b7a15000-b7a18000 rw-p 00018000 08:11 178659 /usr/lib/
b7a18000-b7a4b000 r-xp 00000000 08:11 195869 /lib/libncurses
b7a4b000-b7a4d000 r--p 00033000 08:11 195869 /lib/libncurses
b7a4d000-b7a4e000 rw-p 00035000 08:11 195869 /lib/libncurses
b7a4e000-b7a7a000 r-xp 00000000 08:11 191740 /lib/libreadlin
b7a7a000-b7a7b000 ---p 0002c000 08:11 191740 /lib/libreadlin
b7a7b000-b7a7c000 r--p 0002c000 08:11 191740 /lib/libreadlin
b7a7c000-b7a7f000 rw-p 0002d000 08:11 191740 /lib/libreadlin
b7a7f000-b7a80000 rw-p b7a7f000 00:00 0
b7a88000-b7a8e000 r-xp 00000000 08:11 178673 /usr/lib/
b7a8e000-b7a8f000 r--p 00006000 08:11 178673 Aborted
Related branches
affects: | python-gdchart (Ubuntu) → pygdchart2 (Ubuntu) |
Changed in pygdchart2 (Ubuntu): | |
status: | New → Confirmed |
Changed in pygdchart2 (Debian): | |
status: | Unknown → New |
Changed in pygdchart2 (Debian): | |
status: | New → Fix Released |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Nullcube,
I am the package maintainer for pygdchart in Debian.
Please have a look at the bugreport below...
Kind regards,
- Jonas
On 26-03-2005 21:36, fip wrote: [prozent_ alko, prozent_suppe, prozent_ nicht_alko] ) ["Alkohol" , "Suppe", "Fooooooooooooo oo"]) ##Achtung buggy "Zwischenmahlzeit ist zu lang!!! segfa
> Package: python2.3-gdchart2
> Version: 0.beta1-1
> Severity: normal
>
> Hi!
>
> Bug should be easily reproducible.
>
>
> import gdchart
> Bar = gdchart.Bar3D()
> Bar.title = "Trinkmengen"
> Bar.width = 250
> Bar.height = 250
> Bar.setData(
> Bar.ytitle = "Prozent"
>
> Bar.setLabels(
>
> Bar.ext_color = ["blue", "red", "green"]
> Bar.draw(outfile)
>
>
> Resuming, with longer lables (8+) you'll get a segfault.
>
> Regards,
>
> mh
- -- dr.jones. dk/
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136 Website: http://
- Enden er nær: http:// www.shibumi. org/eoti. htm enigmail. mozdev. org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://
iD8DBQFCRzk6n7D bMsAkQLgRAsPKAK CSyL/INHFlyMWE3 zyNYojyV1m2yQCf Xe58 FS8IjpWI=
v+ItE2JxOe4pr3D
=5RiK
-----END PGP SIGNATURE-----