Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Inkscape floating point exception
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Tue May 05, 2009 2:51 pm    Post subject: Inkscape floating point exception Reply with quote

Hi all,

For some reason, I'm getting a "floating point exception" every time I try to start inkscape (media-gfx/inkscape-0.46-r5). I'm using gcc-4.3.3-r2 on an AMD64. My make.conf is


CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~amd64"

CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
PORTAGE_NICENESS=5
AUTOCLEAN="yes"

USE="-gtk -gnome qt3 qt4 kde dvd alsa kdeenablefinal kdehiddenvisibility xinerama 3dnow mmx flac ffmpeg lame x264 aac bash-completion tetex threads nptl nsplugin kdeprefix xcomposite pcre xcb"

VIDEO_CARDS=""
INPUT_DEVICES="keyboard mouse evdev"
LINGUAS="en_US"
PORTDIR_OVERLAY="/usr/local/portage"
FEATURES="parallel-fetch"


Any ideas?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue May 05, 2009 3:14 pm    Post subject: Reply with quote

something like the following: Floating point exception with > 180.29 ?

nvidia user ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Tue May 05, 2009 6:16 pm    Post subject: Reply with quote

Yes, exactly, although those particular apps (mplayer, firefox) runs fine for me.

I did upgrade to nvidia-drivers-180.51 recently, but since they were part of a larger upgrade, I never thought to tie my FPE to opengl libraries.

Am I doomed to using the xorg-x11 opengl interface?

I did re-emerge inkscape, to no avail.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue May 05, 2009 6:30 pm    Post subject: Reply with quote

no you're not doomed but you may have to trade functionality for safety (thanks nvidia ! :? )

just try the following:

add -nopie to your cflags / cxxflags and re-compile it

http://www.gentoo.org/proj/en/hardened/hardened-toolchain.xml

if that's still implemented it will temporarily disable pie

otherwise you need to emerge the gcc-version from the hardened toolchain overlay (see my signature) and then for certain apps you can switch to the vanilla or nopie spec / profile
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue May 05, 2009 6:33 pm    Post subject: Reply with quote

parthenon wrote:
Yes, exactly, although those particular apps (mplayer, firefox) runs fine for me.

I did upgrade to nvidia-drivers-180.51 recently, but since they were part of a larger upgrade, I never thought to tie my FPE to opengl libraries.

Am I doomed to using the xorg-x11 opengl interface?

I did re-emerge inkscape, to no avail.



no you're not doomed but you may have to trade functionality for safety (thanks nvidia ! :? )

just try the following:

add -nopie to your cflags / cxxflags and re-compile it

http://www.gentoo.org/proj/en/hardened/hardened-toolchain.xml

if that's still implemented it will temporarily disable pie

otherwise you need to emerge the gcc-version from the hardened toolchain overlay (see my signature) and then for certain apps you can switch to the vanilla or nopie spec / profile


you can enable hardened toolchain in default (non-hardened) profile with the following tweak (if wanted otherwise switch to hardened and from there one continue):

/etc/portage/profile/package.use.mask wrote:


sys-devel/gcc -hardened
sys-libs/glibc -hardened

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Tue May 05, 2009 7:44 pm    Post subject: Reply with quote

kernelOfTruth wrote:

just try the following:

add -nopie to your cflags / cxxflags and re-compile it


I'm afraid I don't understand, because my gcc was already compiled with the -nopie flag.

kernelOfTruth wrote:

otherwise you need to emerge the gcc-version from the hardened toolchain overlay (see my signature) and then for certain apps you can switch to the vanilla or nopie spec / profile


I tried adding the hardened flag to glibc and gcc (seeing that it was not set), but "emerge --newuse" did not try to reinstall either of those. I think I have to learn more about hardened Gentoo.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue May 05, 2009 9:19 pm    Post subject: Reply with quote

parthenon wrote:
kernelOfTruth wrote:

just try the following:

add -nopie to your cflags / cxxflags and re-compile it


I'm afraid I don't understand, because my gcc was already compiled with the -nopie flag.


not the USE-flag but the CFLAGS/CXXFLAGS :idea: :!:

parthenon wrote:


kernelOfTruth wrote:

otherwise you need to emerge the gcc-version from the hardened toolchain overlay (see my signature) and then for certain apps you can switch to the vanilla or nopie spec / profile


I tried adding the hardened flag to glibc and gcc (seeing that it was not set), but "emerge --newuse" did not try to reinstall either of those. I think I have to learn more about hardened Gentoo.


what does
Code:
emerge -pv gcc
reveal / show ?

you also need to add hardened specifically to /etc/portage/package.use

sys-libs/glibc hardened
sys-devel/gcc hardened

and to /etc/make.conf

USE="hardened ..."
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Tue May 05, 2009 9:38 pm    Post subject: Reply with quote

kernelOfTruth wrote:

add -nopie to your cflags / cxxflags and re-compile it

not the USE-flag but the CFLAGS/CXXFLAGS :idea: :!:


That's what I tried first, i.e., with CFLAGS="-march=athlon64 -O2 -pipe -nopie" in my /etc/make.conf. But running "emerge -av inkscape" with those CFLAGS gave me

Code:

>>> Emerging (1 of 1) media-gfx/inkscape-0.46-r5
 * inkscape-0.46.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                               [ ok ]
 * Filtering out invalid CFLAG "-nopie"
 * Filtering out invalid CXXFLAG "-nopie"


After being told that "-nopie" was an invalid CFLAG, I looked at the USE flags :(

kernelOfTruth wrote:

what does
Code:
emerge -pv gcc
reveal / show ?

you also need to add hardened specifically to /etc/portage/package.use

sys-libs/glibc hardened
sys-devel/gcc hardened

and to /etc/make.conf

USE="hardened ..."


That's exactly what I did. I added hardened to "USE=" in my /etc/make.conf, and hardened use flags to sys-libs/glibc and sys-devel/gcc in /etc/portage/package.use (precisely as you wrote). Then I ran
Code:
emerge -auvDN world
and as I said, nothing was (re)emerged. With those USE flags in place, running
Code:
emerge -pv gcc
gives me

Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.3.3-r2  USE="fortran mudflap (multilib) nls openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


So despite having an explicit hardened flag for gcc and glibc, they're not being emerged with that flag :?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue May 05, 2009 11:21 pm    Post subject: Reply with quote

you missed one important thing:

add the hardened toolchain overlay / Xake's toolchain overlay :idea: :wink:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Wed May 06, 2009 5:36 am    Post subject: Reply with quote

OK, so two questions:


  • Xake's overlay is not hosted on overlays.gentoo.org, or at least I couldn't find it there, which means that I can't add and update it using layman. So do I have to "svn checkout" the thing periodically to keep it updated?

  • Once I add that overlay, exactly what subset of the following do I have to do:


    • emerge gcc and glibc with "hardened" use flag in /etc/make.conf, then emerge inkscape
    • emerge gcc and glibc with "hardened" use flag in /etc/portage/package.use, then emerge inkscape
    • add "-nopie" to CFLAGS/CXXFLAGS and emerge inkscape



:?:
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Wed May 06, 2009 5:48 am    Post subject: Reply with quote

P.S. - I can see that http://overlays.gentoo.org/dev/kevquinn/browser/hardened/toolchain/branches/pieworld is hosted on overlays.gentoo.org, but why doesn't "layman -L" show it?
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Wed May 06, 2009 5:54 am    Post subject: Reply with quote

P.P.S. - Never mind, I think I figured it out...
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Wed May 06, 2009 6:00 am    Post subject: Reply with quote

OK, I didn't....

I can't see Xake's toolchain overlay at http://git.overlays.gentoo.org/gitweb/ so I don't know how I can access the git repository to checkout what I see at http://overlays.gentoo.org/dev/kevquinn/browser/hardened/toolchain/branches/pieworld

:?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed May 06, 2009 7:30 am    Post subject: Reply with quote

:lol:

it's really a little difficult to figure out a first since there's no central site / wiki which is shown on gentoo-wiki or gentoo.org :?

here you go :)

http://hardened.gentooexperimental.org/trac/secure/wiki

Quote:
(If you want layman to track it, just "layman -o http://github.com/Xake/toolchain-overlay/tree/master%2Fxake-toolchain.xml?raw=true -fa xake-toolchain")


update:

there's a another more simpler way:

adding the gcc-porting overlay and then eventually unmask / unkeyword gcc from there

this should be more easier for folks who don't want to run dedicated hardened system / toolchain but still maintain a certain level of security with almost 100% of the stuff working:
(when you have to suffer from nvidia :roll: )

gcc's 4.4.1_pre9999 version

Quote:
emerge -pv =gcc-4.4.1_pre9999
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] sys-devel/gcc-4.4.1_pre9999 [4.4.0_pre9999] USE="graphite (-hardened) mudflap (multilib) multislot nls objc objc++ objc-gc openmp (-altivec) -bootstrap -build -debug -doc (-fixed-point) -fortran -gcj -gtk -ip28 -ip32r10k -libffi (-n32) (-n64) -nocxx -offline -profiledbootstrap -test -vanilla" 0 kB [1]

Total: 1 package (1 upgrade), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[1] /usr/local/portage/gcc-porting


you'll get something like:

Quote:
gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.0_pre9999/work/gcc-4.4.0-9999/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.0-pre9999 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0-pre9999/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.0-pre9999 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.0-pre9999/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.0-pre9999/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0-pre9999/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --enable-objc-gc --enable-languages=c,c++,objc,obj-c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo SVN' --with-ppl --with-cloog
Thread model: posix
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
(for me it's still 4.4.0_pre9999)


the thinks you then need to add to /etc/make.conf are

Quote:
CFLAGS="${CFLAGS} -fno-strict-overflow"
CFLAGS="${CFLAGS} -fno-delete-null-pointer-checks"

CFLAGS="${CFLAGS} -fstack-protector-all"
CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=2"


LDFLAGS="${LDFLAGS} -Wl,-z,now -Wl,-z,relro"



the difference to the hardened gcc is that all of these security-enhancing CFLAGS/CXXFLAGS and LDFLAGS are enabled by default (specs) and additionally also the PIE-creation which unfortunately until nvidia fixes their problems is currently a no-go

the benefit would be then a hardened glibc which randomizes the in-memory place of apps with the help of PIE


conclusion:


* the easy way: add gcc-porting overlay then emerge from there the (still) non-hardened / working gcc and emerge everything with it with those security-enhancing CFLAGS/LDFLAGS add to /etc/make.conf

* the hard way: get the hardened toolchain and emerge -e system with the hardened gcc (/profile), then you have to figure out which few packages break with hardened gcc and re-emerge them with the gcc from gcc-porting overlay; after that emerge the rest of the world / your system with gcc from gcc-porting (that way you don't have to track those dozens of apps that will segfault / produce a floating point exception which would take way too much time to do )

these are the ways I've so far tried out

(hope that's pretty understandable)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Thu May 07, 2009 2:54 pm    Post subject: Reply with quote

No dice, I still get floating point exceptions :(
Here's what I did:

  • Add the gcc-porting overlay, and emerged gcc-4.4.1
    Code:
     ~ # emerge -av =gcc-4.4.1_pre9999

    which got emerged with the following flags:
    Code:

     ~ # emerge -pv =gcc-4.4.1_pre9999

    These are the packages that would be merged, in order:

    Calculating dependencies... done!
    [ebuild   R   ] sys-devel/gcc-4.4.1_pre9999  USE="fortran mudflap (multilib) nls openmp (-altivec) -bootstrap -build -debug -doc (-fixed-point) -gcj -graphite -gtk (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -offline -profiledbootstrap -test -vanilla" 0 kB [1]

    Total: 1 package (1 reinstall), Size of downloads: 0 kB
    Portage tree and overlays:
     [0] /usr/portage
     [1] /usr/local/portage/layman/gcc-porting

  • Switched to that gcc as my default gcc
    Code:

     ~ # gcc -v
    Using built-in specs.
    Target: x86_64-pc-linux-gnu
    Configured with: /var/tmp/portage/sys-devel/gcc-4.4.1_pre9999/work/gcc-4.4.1-9999/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.1-pre9999 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1-pre9999/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.1-pre9999 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.1-pre9999/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.1-pre9999/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1-pre9999/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo SVN' --without-ppl --without-cloog --disable-ppl-version-check --disable-cloog-version-check
    Thread model: posix
    gcc version 4.4.1-pre9999 built 20090506 (prerelease) rev. 147174 (Gentoo SVN)

  • Added the recommended CFLAGS and LDFLAGS to /etc/make.conf
    Code:

    CFLAGS="-march=athlon64 -O2 -pipe"
    CFLAGS="${CFLAGS} -fno-strict-overflow -fno-delete-null-pointer-checks -fstack-protector-all -D_FORTIFY_SOURCE=2"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="${LDFLAGS} -Wl,-z,now -Wl,-z,relro"

  • Re-emerged inkscape and nvidia-drivers
    Code:

    emerge -av x11-drivers/nvidia-drivers inkscape


But I'm still getting FPE on starting inkscape :(

One other thing (and perhaps I should have checked this earlier); I switched to the xorg-x11 opengl interface
Code:

 ~ # eselect opengl set xorg-x11
Switching to xorg-x11 OpenGL interface... done
 ~ # source /etc/profile
 ~ # eselect opengl list
Available OpenGL implementations:
  [1]   nvidia
  [2]   xorg-x11 *
 ~ #

and verified that /usr/bin/inkscape was using the xorg-x11 GL library:
Code:

~ # ldd `which inkscape` | grep GL
        libGL.so.1 => /usr/lib64/opengl/xorg-x11/lib/libGL.so.1 (0x00007f52520d4000)


And still got FPE on starting inkscape. Does that mean my problem is not nvidia-related?
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Thu May 07, 2009 2:59 pm    Post subject: Reply with quote

P.S. - I realized after switching back to nvidia opengl that now inkscape actually links to multiple GL shared-object files:
Code:

~ # eselect opengl set nvidia
Switching to nvidia OpenGL interface... done
~ # source /etc/profile
~ # ldd `which inkscape` | grep GL
        libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1 (0x00007f6ca08e8000)
        libGLcore.so.1 => /usr/lib64/opengl/nvidia/lib/libGLcore.so.1 (0x00007f6c9e35f000)

:?:
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu May 07, 2009 5:37 pm    Post subject: Reply with quote

parthenon wrote:


And still got FPE on starting inkscape. Does that mean my problem is not nvidia-related?


I'm not sure but probably not

at least it's working now - isn't that the essential ?


parthenon wrote:
P.S. - I realized after switching back to nvidia opengl that now inkscape actually links to multiple GL shared-object files:
Code:

~ # eselect opengl set nvidia
Switching to nvidia OpenGL interface... done
~ # source /etc/profile
~ # ldd `which inkscape` | grep GL
        libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1 (0x00007f6ca08e8000)
        libGLcore.so.1 => /usr/lib64/opengl/nvidia/lib/libGLcore.so.1 (0x00007f6c9e35f000)

:?:


this should be normal, (I think) this can be disabled via Section "Module"
Load "GLCore"

(but if it's needed anyway it will be loaded automatically ...)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Thu May 07, 2009 7:02 pm    Post subject: Reply with quote

kernelOfTruth wrote:
parthenon wrote:


And still got FPE on starting inkscape. Does that mean my problem is not nvidia-related?


I'm not sure but probably not

at least it's working now - isn't that the essential ?


Actually, it's not working (as I said, I still get an FPE on starting inkscape), neither with the nvidia nor with the xorg-x11 opengl interfaces :( This makes me think that the problem is not opengl related at all.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu May 07, 2009 8:53 pm    Post subject: Reply with quote

parthenon wrote:
kernelOfTruth wrote:
parthenon wrote:


And still got FPE on starting inkscape. Does that mean my problem is not nvidia-related?


I'm not sure but probably not

at least it's working now - isn't that the essential ?


Actually, it's not working (as I said, I still get an FPE on starting inkscape), neither with the nvidia nor with the xorg-x11 opengl interfaces :( This makes me think that the problem is not opengl related at all.


sorry, i must have overread that

see I'm getting the following with nvidia:
Quote:
[ 2118.693419] inkscape[11595] general protection ip:7f038cfbbebe sp:7fffa42a5a40 error:0 in libGL.so.185.18.08[7f038cf81000+8b000]
:lol:

so I can't use it neither

I must have forgot to compile it with the non-hardened toolchain,

will post some more info after I've updated to new gcc and re-emerged inkscape :idea:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri May 08, 2009 8:17 am    Post subject: Reply with quote

parthenon I just realized that you perhaps might not want the newest gcc ?

there's also a gcc 4.3 ebuild in the gcc-porting overlay:

4.3.4_pre9999

just emerge it with the -hardened useflag and the other ones you need


Quote:
Calculating dependencies... done!
[ebuild NS ] sys-devel/gcc-4.3.4_pre9999 [4.1.2, 4.2.3-r1, 4.2.4-r2, 4.3.2-r7, 4.3.3-r1, 4.4.0-r1, 4.4.1_pre9999] USE="fortran mudflap (multilib) multislot nls objc objc++ objc-gc openmp (-altivec) -bootstrap -build -debug -doc (-fixed-point) -gcj -gtk -hardened -ip28 -ip32r10k -libffi (-n32) (-n64) -nocxx -offline -profiledbootstrap -test -vanilla"


that saves you from the hassle of later having to re-compile the whole system or world and trouble between different ABI versions

so for the near future you can forget the gcc 4.4*


the next steps I'd take would be:

Code:
emerge inkscape


and see whether it changes anything

if not look around at bugs.gentoo.org or other resources (inkscape has a bug tracker ?) or on the web if anyone else has these problems

if that also doesn't help you might need to
Code:
emerge -e system

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Sun May 10, 2009 4:56 am    Post subject: Reply with quote

kernelOfTruth wrote:


see I'm getting the following with nvidia:
Quote:
[ 2118.693419] inkscape[11595] general protection ip:7f038cfbbebe sp:7fffa42a5a40 error:0 in libGL.so.185.18.08[7f038cf81000+8b000]
:lol:

so I can't use it neither


How did you get that error message? That doesn't look like an strace output... or is it? I just want to see if I get the same error or not.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun May 10, 2009 9:35 am    Post subject: Reply with quote

it's shown in dmesg output

Code:
dmesg | grep inkscape


or for any other

Code:
dmesg | grep general


Code:
dmesg | grep fault
(for Segmentation fault)

or

Code:
dmesg | grep libGL
(for libGL related stuff)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Sun May 10, 2009 3:09 pm    Post subject: Reply with quote

Ah! Then my problem isn't GL-related.

Code:

inkscape[23071] trap divide error ip:7f3b9203c167 sp:7fffa610fdd0 error:0 in libqt4engine.so[7f3b92027000+22000]
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Sun May 10, 2009 7:09 pm    Post subject: Reply with quote

Figured it out. Had to do with gtk-engines-qt, so I removed it. Now my gtk apps (including inkscape) don't look qt-ish, but at least they work (inkscape included) :)

Thanks for the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum