cpulimit segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cpulimit (Debian) |
Fix Released
|
Unknown
|
|||
cpulimit (Ubuntu) |
Fix Released
|
Undecided
|
gregor herrmann |
Bug Description
Binary package hint: cpulimit
$ dpkg -l cpulimit
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii cpulimit 1.1-10 limits the cpu usage of a process
$ cpulimit --exe /bin/ls --limit 10
Segmentation fault
$ apt-get source cpulimit
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'cpulimit' packaging is maintained in the 'Svn' version control system at:
http://
Need to get 10.5kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 10.5kB in 0s (158kB/s)
gpg: Signature made Sun 04 Mar 2007 06:57:05 PM CET using DSA key ID F972BE03
gpg: Can't check signature: public key not found
dpkg-source: extracting cpulimit in cpulimit-1.1
dpkg-source: unpacking cpulimit_
dpkg-source: applying ./cpulimit_
$ cd cpulimit-1.1/
$ make cpulimit
gcc -o cpulimit cpulimit.c -lrt -Wall -O2
$ gdb --args ./cpulimit --exe /bin/ls --limit 10
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) r
Starting program: /tmp/cpulimit-
[Thread debugging using libthread_db enabled]
[New Thread 0xb7e316b0 (LWP 3220)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e316b0 (LWP 3220)]
0xb7e7a87b in ?? () from /lib/tls/
(gdb) bt full
#0 0xb7e7a87b in ?? () from /lib/tls/
No symbol table info available.
#1 0xb7e7a5e0 in strtol () from /lib/tls/
No symbol table info available.
#2 0x08049680 in main ()
No locals.
(gdb) q
The program is running. Exit anyway? (y or n) y
$ sudo apt-get install libc6-d
libc6-dbg libc6-dev libc6-dev-amd64
$ sudo apt-get install libc6-dbg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libc6-dbg
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 5095kB of archives.
After this operation, 18.1MB of additional disk space will be used.
Get:1 http://
Fetched 5095kB in 0s (9719kB/s)
Selecting previously deselected package libc6-dbg.
(Reading database ... 214541 files and directories currently installed.)
Unpacking libc6-dbg (from .../libc6-
Setting up libc6-dbg (2.7-10ubuntu3) ...
$ gdb --args ./cpulimit --exe /bin/ls --limit 10
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) r
Starting program: /tmp/cpulimit-
[Thread debugging using libthread_db enabled]
[New Thread 0xb7e476b0 (LWP 3266)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e476b0 (LWP 3266)]
0xb7e9087b in ____strtol_
(gdb) bt full
#0 0xb7e9087b in ____strtol_
No symbol table info available.
#1 0xb7e905e0 in strtol () from /lib/tls/
No symbol table info available.
#2 0x08049680 in main ()
No locals.
(gdb)
Changed in cpulimit: | |
status: | Unknown → Fix Released |
link to Debian bug; assign to /me; status: confirmed