Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322167 - sys-power/powernowd ends with "*** buffer overflow detected ***" after enabling unicode
Summary: sys-power/powernowd ends with "*** buffer overflow detected ***" after enabli...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 348617
  Show dependency tree
 
Reported: 2010-05-31 03:33 UTC by Peter Sliepenbeek
Modified: 2011-05-30 19:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sliepenbeek 2010-05-31 03:33:46 UTC
powernowd worked.

I enabled unicode with the commands:
- /etc/make.conf, USE="... nls unicode ...",
- kernel config, File systems ---> Native Language Support ---> (utf8) Default NLS Option <*> NLS UTF8,
- /etc/rc.conf, UNICODE="yes", CONSOLEFONT="lat9u-16"

powernowd does not work anymore.


Reproducible: Always

Steps to Reproduce:
1./etc/init.d/powernowd start
2.
3.

Actual Results:  
# /etc/init.d/powernowd start                                 
 * Starting powernowd ...                                                                                                       
cpu0/cpufreq/affected_cpus: No such file or directory                                                                           
*** buffer overflow detected ***: /usr/sbin/powernowd terminated                                                                
======= Backtrace: =========                                                                                                    
/lib/libc.so.6(__fortify_fail+0x37)[0x7fbbdd67bb27]                                                                             
/lib/libc.so.6[0x7fbbdd679a70]                                                                                                  
/lib/libc.so.6[0x7fbbdd678c45]                                                                                                  
/usr/sbin/powernowd[0x4021ef]                                                                                                   
/usr/sbin/powernowd[0x402c9c]                                                                                                   
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fbbdd5b6a3d]                                                                          
/usr/sbin/powernowd[0x400f29]                                                                                                   
======= Memory map: ========                                                                                                    
00400000-00405000 r-xp 00000000 fd:01 29202                              /usr/sbin/powernowd                                    
00604000-00605000 r--p 00004000 fd:01 29202                              /usr/sbin/powernowd                                    
00605000-00606000 rw-p 00005000 fd:01 29202                              /usr/sbin/powernowd                                    
00606000-00627000 rw-p 00000000 00:00 0                                  [heap]                                                 
7fbbdd381000-7fbbdd397000 r-xp 00000000 08:11 73744                      /lib64/libgcc_s.so.1                                   
7fbbdd397000-7fbbdd596000 ---p 00016000 08:11 73744                      /lib64/libgcc_s.so.1                                   
7fbbdd596000-7fbbdd597000 r--p 00015000 08:11 73744                      /lib64/libgcc_s.so.1                                   
7fbbdd597000-7fbbdd598000 rw-p 00016000 08:11 73744                      /lib64/libgcc_s.so.1                                   
7fbbdd598000-7fbbdd6e4000 r-xp 00000000 08:11 16398                      /lib64/libc-2.10.1.so                                  
7fbbdd6e4000-7fbbdd8e4000 ---p 0014c000 08:11 16398                      /lib64/libc-2.10.1.so                                  
7fbbdd8e4000-7fbbdd8e8000 r--p 0014c000 08:11 16398                      /lib64/libc-2.10.1.so                                  
7fbbdd8e8000-7fbbdd8e9000 rw-p 00150000 08:11 16398                      /lib64/libc-2.10.1.so                                  
7fbbdd8e9000-7fbbdd8ee000 rw-p 00000000 00:00 0
7fbbdd8ee000-7fbbdd90b000 r-xp 00000000 08:11 19844                      /lib64/ld-2.10.1.so
7fbbddadf000-7fbbddae1000 rw-p 00000000 00:00 0
7fbbddb08000-7fbbddb0a000 rw-p 00000000 00:00 0
7fbbddb0a000-7fbbddb0b000 r--p 0001c000 08:11 19844                      /lib64/ld-2.10.1.so
7fbbddb0b000-7fbbddb0c000 rw-p 0001d000 08:11 19844                      /lib64/ld-2.10.1.so
7fffe88c7000-7fffe88cb000 rw-p 00000000 00:00 0                          [stack]
7fffe898a000-7fffe898b000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
/etc/init.d/powernowd: line 8: 12997 Aborted                 /usr/sbin/powernowd -q ${POWERNOWD_OPTS}                     [ !! ]

Expected Results:  
cpu0/cpufreq/affected_cpus: No such file or directory
Comment 1 Dan Reidy 2010-06-14 05:43:19 UTC
confirmed here as well, i believe this is caused by enabling -D_FORTIFY_SOURCE={1,2} (which i have in my CFLAGS). therefore, i believe this is a bug in the program itself.
Comment 2 manuel kuhn 2010-09-09 09:03:14 UTC
/etc/init.d/powernowd start
 * Caching service dependencies ...                                                                                                                                                                 [ ok ]
 * Starting powernowd ...
*** buffer overflow detected ***: /usr/sbin/powernowd terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x50)[0xb7868850]
/lib/libc.so.6(+0xe18aa)[0xb78668aa]
/lib/libc.so.6(+0xe0e3a)[0xb7865e3a]
/usr/sbin/powernowd[0x8049f37]
======= Memory map: ========
08048000-0804d000 r-xp 00000000 03:03 57036      /usr/sbin/powernowd
0804d000-0804e000 r--p 00004000 03:03 57036      /usr/sbin/powernowd
0804e000-0804f000 rw-p 00005000 03:03 57036      /usr/sbin/powernowd
09c8b000-09cac000 rw-p 00000000 00:00 0          [heap]
b7766000-b7782000 r-xp 00000000 03:03 245545     /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1
b7782000-b7783000 r--p 0001b000 03:03 245545     /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1
b7783000-b7784000 rw-p 0001c000 03:03 245545     /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1
b7784000-b7785000 rw-p 00000000 00:00 0 
b7785000-b78c5000 r-xp 00000000 03:03 39116      /lib/libc-2.11.2.so
b78c5000-b78c7000 r--p 0013f000 03:03 39116      /lib/libc-2.11.2.so
b78c7000-b78c8000 rw-p 00141000 03:03 39116      /lib/libc-2.11.2.so
b78c8000-b78cb000 rw-p 00000000 00:00 0 
b78d4000-b78d5000 rw-p 00000000 00:00 0 
b78d5000-b78d6000 r-xp 00000000 00:00 0          [vdso]
b78d6000-b78f2000 r-xp 00000000 03:03 39115      /lib/ld-2.11.2.so
b78f2000-b78f3000 r--p 0001b000 03:03 39115      /lib/ld-2.11.2.so
b78f3000-b78f4000 rw-p 0001c000 03:03 39115      /lib/ld-2.11.2.so
bfdb9000-bfdce000 rw-p 00000000 00:00 0          [stack]
/etc/init.d/powernowd: line 8: 25555 Aborted                 /usr/sbin/powernowd -q ${POWERNOWD_OPTS}
Comment 3 Henrique Rodrigues 2010-09-26 11:25:26 UTC
After looking at #285535, can you please try with powernowd 1.00?
Comment 4 Peter Sliepenbeek 2010-09-26 12:36:38 UTC
(In reply to comment #3)
> After looking at #285535, can you please try with powernowd 1.00?
> 

powernowd 1.00 starts correctly.
Comment 5 Henrique Rodrigues 2010-10-09 17:14:45 UTC
I believe this bug should be closed and powernowd 1.00 should be marked as stable.
Comment 6 Riccardo Brasca 2010-10-16 14:55:45 UTC
(In reply to comment #5)
> I believe this bug should be closed and powernowd 1.00 should be marked as
> stable.
> 

Same here on amd64. Version 1.00 works perfectly.
Comment 7 Henrique Rodrigues 2010-12-13 13:24:57 UTC
This is a duplicate of #285535

I've opened a new bug regarding powernowd stabilization: #348617
Comment 8 Dan Reidy 2011-02-23 04:35:17 UTC
Fixed in 1.0.0. 

I would like to point out that Powerthend (in sunrise, and based on powernowd) suffers from this bug still.