Bug 27902

Summary: [devicekit-power/upower] Daemon segmentation fault
Product: upower Reporter: Samuli Suominen <ssuominen>
Component: generalAssignee: Richard Hughes <richard>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium CC: anarchy, bugzilla
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Comment 1 Richard Hughes 2010-05-05 03:39:11 UTC
>Solve the problem for me, replacing 0 by NULL in g_object-set; seems more
>compliant with amd64.

Bzzz. This is wrong on so many levels.

Please just use a sane optimization level when compiling if you don't know how the type system works (so you can send proper patches) and what you have to do to get the "faster" levels working. Thanks.
Comment 2 Jory A. Pratt 2010-05-06 04:47:27 UTC
(In reply to comment #1)
> >Solve the problem for me, replacing 0 by NULL in g_object-set; seems more
> >compliant with amd64.
> 
> Bzzz. This is wrong on so many levels.
> 
> Please just use a sane optimization level when compiling if you don't know how
> the type system works (so you can send proper patches) and what you have to do
> to get the "faster" levels working. Thanks.

This has nothing to do with optimization level, it has to do with position independant executables.
Comment 3 Richard Hughes 2010-05-06 05:29:36 UTC
>Great, recompiling it with -O2 flag (instead of -O3) solved the problem =)

Awaiting new patch.
Comment 4 Jory A. Pratt 2010-05-16 07:29:21 UTC
(In reply to comment #3)
> >Great, recompiling it with -O2 flag (instead of -O3) solved the problem =)
> 
> Awaiting new patch.

You assume this user is using a hardened toolchain which includes -fpie in its cflags, this is still very much an issue even at -02.

CFLAGS="-O2 -march=native -pipe"

Those are my cflags on all my hardened systems. This is an issue with -fpie NOT optimization.
Comment 5 Samuli Suominen 2011-12-22 08:36:19 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > >Great, recompiling it with -O2 flag (instead of -O3) solved the problem =)
> > 
> > Awaiting new patch.
> 
> You assume this user is using a hardened toolchain which includes -fpie in its
> cflags, this is still very much an issue even at -02.
> 
> CFLAGS="-O2 -march=native -pipe"
> 
> Those are my cflags on all my hardened systems. This is an issue with -fpie NOT
> optimization.

right.   still, this is quite an old bug.   time to retest with latest version or git.

https://bugs.gentoo.org/show_bug.cgi?id=315199#c5
Comment 6 Bastien Nocera 2013-10-21 10:22:15 UTC
No updates in 2 years, closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.