Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366795 - gnustep-base/gnustep-back-art-0.20.1 - plmerge segfault
Summary: gnustep-base/gnustep-back-art-0.20.1 - plmerge segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 21:56 UTC by Steffen 'j0inty' Stollfuß
Modified: 2014-09-18 14:56 UTC (History)
1 user (show)

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


Attachments
gnustep-back-art-0.20.1 build.log (build.log,30.22 KB, text/plain)
2011-05-10 21:57 UTC, Steffen 'j0inty' Stollfuß
Details
emerge --info (emerge.info,18.57 KB, text/plain)
2011-05-10 21:58 UTC, Steffen 'j0inty' Stollfuß
Details
gdb plmerge core - bt full (bt full gnustep.txt,36.44 KB, text/plain)
2011-05-20 06:27 UTC, LE GARREC Vincent
Details
emerge --info =gnustep-base/gnustep-back-cairo-0.20.1 (emerge.info.gnustep-back-cairo-0.20.1,5.57 KB, text/plain)
2011-05-21 19:28 UTC, Viktor Kim
Details
build.log (build.log,41.91 KB, text/plain)
2011-05-21 19:29 UTC, Viktor Kim
Details
Build log with plmerge replaced by strace plmerge (build.log.gz,28.44 KB, application/x-gzip)
2011-05-25 14:37 UTC, Bernard Cafarelli
Details
gnustep-back-art-0.20.1 build.log (build.log.bz2,8.25 KB, application/x-bzip2)
2011-06-08 07:30 UTC, LE GARREC Vincent
Details
mknfonts - gdb bt full (mknfonts - gdb bt full.log,38.23 KB, text/plain)
2011-06-08 07:34 UTC, LE GARREC Vincent
Details
emerge --info '=gnustep-base/gnustep-back-cairo-0.24.0' (emerge.info.gnustep-back-cairo-0.24.0,4.92 KB, text/plain)
2014-07-20 08:58 UTC, adr
Details
emerge -pqv '=gnustep-base/gnustep-back-cairo-0.24.0' (emerge.pqv.gnustep-back-cairo-0.24.0,87 bytes, text/plain)
2014-07-20 08:59 UTC, adr
Details
Config log =gnustep-base/gnustep-back-cairo-0.24.0 (config.log,44.07 KB, text/plain)
2014-07-20 09:00 UTC, adr
Details
Build log =gnustep-base/gnustep-back-cairo-0.24.0 (build.log,53.98 KB, text/plain)
2014-07-20 09:01 UTC, adr
Details
Build log =gnustep-apps/systempreferences-1.2.0 (build.log,14.36 KB, text/plain)
2014-07-20 09:18 UTC, adr
Details
Build log =gnustep-apps/gworkspace-0.9.2 (build.log,163.30 KB, text/plain)
2014-07-20 09:21 UTC, adr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen 'j0inty' Stollfuß 2011-05-10 21:56:39 UTC
Hi all,

in my case I fall every time over the gnustep-updater who tries to update the gnustep-back-art package.

/bin/sh: line 2:  9612 Segmentation fault      plmerge libgnustep-back-020.bundle/Resources/Info-gnustep.plist libgnustep-back-020Info.plist

Regards
j0inty


Reproducible: Always

Steps to Reproduce:
1. update to new gnustep
2. emerge gnustep-updater
3. run gnustep-updater
Actual Results:  
Failed to compile gnustep-back-art package


Needed logs and infos will attach.
Comment 1 Steffen 'j0inty' Stollfuß 2011-05-10 21:57:43 UTC
Created attachment 272781 [details]
gnustep-back-art-0.20.1 build.log
Comment 2 Steffen 'j0inty' Stollfuß 2011-05-10 21:58:24 UTC
Created attachment 272783 [details]
emerge --info
Comment 3 LE GARREC Vincent 2011-05-20 06:27:09 UTC
Created attachment 274075 [details]
gdb plmerge core - bt full

plmerge segmentation fault during emerging gnustep-back-0.20.1
I have gnustep-base/gnustep-base-1.22.0 install.

I try to have a look at the source but I don't understand the stackoverflow.

Regards
Comment 4 Fabian Groffen gentoo-dev 2011-05-20 06:51:01 UTC
a bit nasty that it crashes in sandbox...
Comment 5 LE GARREC Vincent 2011-05-20 08:40:32 UTC
but plmerge only fails under emerge but not run directly under bash or zsh.
Comment 6 Viktor Kim 2011-05-21 19:16:50 UTC
Same problem with gnustep-base/gnustep-back-cairo-0.20.1 on i686 (gnustep-base/gnustep-base-1.22.0 installed):
...
/bin/sh: line 2: 17848 Segmentation fault      plmerge libgnustep-back-020.bundle/Resources/Info-gnustep.plist libgnustep-back-020Info.plist
...
Comment 7 Viktor Kim 2011-05-21 19:28:17 UTC
Created attachment 274231 [details]
emerge --info =gnustep-base/gnustep-back-cairo-0.20.1
Comment 8 Viktor Kim 2011-05-21 19:29:44 UTC
Created attachment 274233 [details]
build.log
Comment 9 Oleg 2011-05-23 05:19:58 UTC
I can confirm problem with gnustep-base/gnustep-back-cairo-0.20.1 but on AMD64
during emerge gnustep-base/gnustep-back-cairo-0.20.1:
/bin/sh: line 2: 30572 Segmentation fault      plmerge libgnustep-back-020.bundle/Resources/Info-gnustep.plist libgnustep-back-020Info.plist
make[3]: *** [libgnustep-back-020.bundle/Resources/Info-gnustep.plist] Error 139
...
Comment 10 Bernard Cafarelli gentoo-dev 2011-05-25 14:35:55 UTC
I don't know what changed, but I can now reproduce it also... strace-ing plmerge
shows it seems to loop forever reading /root/GNUstep/Defaults/.GNUstepDefaults (I'll attach output)

The file in itself is short:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN" "http://www.gnustep.org/plist-0_9.xml">
<plist version="0.9">
<dict>
    <key>NSGlobalDomain</key>
    <dict>
    </dict>
    <key>gdnc</key>
    <dict>
    </dict>
</dict>

But this should not be accessed, for compilation we set (in gnustep-base eclass) HOME, GNUSTEP_USER_DIR, GNUSTEP_USER_DEFAULTS_DIR to ${T}, so it should not use root's one. Fixing this should make it work

As for sandbox's behavior, not sure why it causes a loop, may be a bug...
Comment 11 Bernard Cafarelli gentoo-dev 2011-05-25 14:37:22 UTC
Created attachment 274607 [details]
Build log with plmerge replaced by strace plmerge
Comment 12 LE GARREC Vincent 2011-05-25 22:12:32 UTC
You're right.
I moved /root/GNUStep to /root/GNUstep.old and I succeed to compile gnustep-back-0.20.1
Does someone are interesting for having my /root/GNUstep.old to try finding where was the bug ?
Comment 13 LE GARREC Vincent 2011-05-26 10:07:26 UTC
My /root/GNUstep.old/Defaults/.GNUstepDefaults is :



{
    NSGlobalDomain = {
    };
    gdnc = {
    };
}
Comment 14 Bernard Cafarelli gentoo-dev 2011-06-06 08:48:32 UTC
Ok, I have a fix, testing with some other GNUstep packages to be on the safe side.

The problem: we override (in gnustep-base.eclass) GNUSTEP_USER_DIR and other env variables to point to ${T}, but these are only honoured by gnustep-make, not by GNUstep programs themselves (like plmerge).
These first load GNUstep.conf and use the settings from it (using /root/GNUstep in the end when running plmerge here). I've modified the eclass to create a temporary GNUstep.conf, based on system one but with the needed sed commands, which is then used in make commands. So far it seems to work great :)

If nothing breaks in my tests, I'll commit the eclass update tonight
Comment 15 Bernard Cafarelli gentoo-dev 2011-06-06 19:20:24 UTC
Updated gnustep-base.eclass committed to CVS, thanks everyone for help on fixing this bug :)

If plmerge still fails, check that /usr/portage/eclass/gnustep-base.eclass has a header version 1.17 (the updated one) and reopen
Comment 16 LE GARREC Vincent 2011-06-08 07:28:28 UTC
It solves the problem with plmerge but exactly the same problem appear with mknfonts
Comment 17 LE GARREC Vincent 2011-06-08 07:30:20 UTC
Created attachment 276249 [details]
gnustep-back-art-0.20.1 build.log
Comment 18 Steffen 'j0inty' Stollfuß 2011-06-08 07:32:44 UTC
Same here on my ~amd64 box.

regards
j0inty
Comment 19 LE GARREC Vincent 2011-06-08 07:34:43 UTC
Created attachment 276251 [details]
mknfonts - gdb bt full
Comment 20 Bernard Cafarelli gentoo-dev 2011-06-08 09:03:16 UTC
Indeed, I tested with the cairo backend, but art ebuild has a separate call for mknfonts... Thanks for testing!

This one should be fixed in gnustep-back-art-0.20.1 ebuild (no revbump) now (crossing fingers)
Comment 21 LE GARREC Vincent 2011-06-08 20:49:12 UTC
I just test and gnustep-back-art compiles well now

Great job,
Regards,
Comment 22 Steffen 'j0inty' Stollfuß 2011-06-09 07:39:35 UTC
Hi,

i was running the gnustep-updater yesterday and everything that was on the list compiled fine.

Best Thanks and very good job

regards
j0inty


j0inty@arko ~ $ qlist -Iv gnustep
gnustep-apps/remotedesk-0.1
gnustep-base/gnustep-back-art-0.20.1
gnustep-base/gnustep-base-1.22.0
gnustep-base/gnustep-gui-0.20.0
gnustep-base/gnustep-make-2.6.1
gnustep-base/gnustep-updater-0.1
gnustep-base/mknfonts-0.5-r1
virtual/gnustep-back-0.20.1
Comment 23 Bernard Cafarelli gentoo-dev 2011-06-10 11:26:42 UTC
Thanks everyone for your help and patience, we have a new clean layout now in ~arch :)
Comment 24 adr 2014-07-20 08:41:42 UTC
It looks like I run into this bug from 3 years ago, when trying to rebuild GNUstep packages with Clang... I'll attach the failing logs etc., but I'm not able to reopen/change status of this bug report.
Comment 25 adr 2014-07-20 08:58:01 UTC
Created attachment 381096 [details]
emerge --info '=gnustep-base/gnustep-back-cairo-0.24.0'
Comment 26 adr 2014-07-20 08:59:00 UTC
Created attachment 381098 [details]
emerge -pqv '=gnustep-base/gnustep-back-cairo-0.24.0'
Comment 27 adr 2014-07-20 09:00:46 UTC
Created attachment 381100 [details]
Config log =gnustep-base/gnustep-back-cairo-0.24.0
Comment 28 adr 2014-07-20 09:01:37 UTC
Created attachment 381102 [details]
Build log =gnustep-base/gnustep-back-cairo-0.24.0
Comment 29 adr 2014-07-20 09:18:32 UTC
Created attachment 381104 [details]
Build log =gnustep-apps/systempreferences-1.2.0
Comment 30 adr 2014-07-20 09:21:13 UTC
Created attachment 381106 [details]
Build log =gnustep-apps/gworkspace-0.9.2
Comment 31 adr 2014-07-27 13:03:12 UTC
Found this link:
https://lists.gnu.org/archive/html/discuss-gnustep/2013-08/msg00257.html and downgraded to current Gentoo stable llvm-3.3-r3/clang-3.3-r100. After that, I was able to recompile all GNUstep packages without the plmerge errors (but still all apps segfault when run). Case closed here, for the plmerge bugs.
Comment 32 Bernard Cafarelli gentoo-dev 2014-09-18 14:56:39 UTC
Thanks, it's nice that this was not this old problem that was the cause :) Don't hesitate to open a new bugreport on cases like that, we can sort if it was a duplicate in the end later on