Openembedded Core Discussions
 help / color / mirror / Atom feed
* glibc detected *** groupadd: malloc(): memory corruption
@ 2012-06-18  9:17 Robert Yang
  2012-06-18 17:47 ` Mark Hatle
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Yang @ 2012-06-18  9:17 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Zhao, Zhenfeng


Hi Experts:

I've met a strange issue, when set the length of builddir to
266 (Why I did this is that I need to know how long the tmpdir
that oe-core can support):

NOTE: package dbus-1.4.20-r3.0: task do_install: Started
*** glibc detected *** groupadd: malloc(): memory corruption: 0x000000000101da70 ***
*** glibc detected *** groupadd: malloc(): memory corruption: 0x000000000101da70 ***

Then the build would hang, this is caused by the command:

PSEUDO_PREFIX=/too/long/path/tmp/sysroots/x86_64-linux/usr
PSEUDO_LOCALSTATEDIR=... PSEUDO_PASSWD=...
PSEUDO_NOSYMLINKEXP=1 PSEUDO_DISABLED=0 PSEUDO_LOCALSTATEDIR
... /too/long/path/to/tmp/sysroots/x86_64-linux/usr/bin/pseudo
groupadd --root /too/long/path/to/tmp/sysroots/qemux86 -r netdev -f

1) I had looked into the code of groupadd, and found that this would
happen when it used the glibc function which needs malloc(for example,
the access()), so it seemed this was caused by the glibc or pseudo,
but I didn't know why it only happened to groupadd/useradd.

2) I had tried not to use pseudo, it worked well:

sudo groupadd --root /too/long/path/to/tmp/sysroots/qemux86 -r netdev -f

 From this, it seemed that the glibc was ok

3) I had tried to write a small piece of code which used the access(), and
used pseudo to run it, it worked well:

/too/long/path/for/pseudo/settings/and/then/run/pseudo my_app

 From this, it seemed that both pseudo and glibc were OK.

These 3 steps make me puzzle, maybe we can think that the tmpdir can not
be too long, and limit it to a proper length, please see this:

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-May/022112.html

BTW. the "argument list too long" error has been fixed.

Any suggestion is appreciated.

-- 
Thanks

Robert



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-23  3:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18  9:17 glibc detected *** groupadd: malloc(): memory corruption Robert Yang
2012-06-18 17:47 ` Mark Hatle
2012-06-20  6:07   ` Robert Yang
2012-06-21 15:46     ` Saul Wold
2012-06-21 15:57       ` Mark Hatle
2012-06-23  3:09       ` Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox