Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564284 - sys-libs/glibc-2.21: /sbin/ldconfig segfaults when run as a normal user
Summary: sys-libs/glibc-2.21: /sbin/ldconfig segfaults when run as a normal user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-27 20:06 UTC by Lagu
Modified: 2016-01-12 01:01 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info,21.23 KB, text/plain)
2015-10-27 20:07 UTC, Lagu
Details
emerge --info (emerge,21.45 KB, text/plain)
2015-11-01 00:37 UTC, Lagu
Details
build.log (build.log.tar.xz,406.73 KB, application/x-xz)
2015-11-02 17:45 UTC, Lagu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2015-10-27 20:06:42 UTC
Hi, here a little bug, running /sbin/ldconfig

/sbin/ldconfig
Segmentation fault

here with gdb:

gdb /sbin/ldconfig
GNU gdb (Gentoo 7.9.1 vanilla) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /sbin/ldconfig...done.
(gdb) run
Starting program: /sbin/ldconfig 

Program received signal SIGSEGV, Segmentation fault.
0x000000000047dec5 in expand_dynamic_string_token (l=0x0, s=<optimized out>, is_path=1) at dl-load.c:377
377	dl-load.c: No such file or directory.
(gdb) bt
#0  0x000000000047dec5 in expand_dynamic_string_token (l=0x0, s=<optimized out>, is_path=1) at dl-load.c:377
#1  0x000000000047dffd in fillin_rpath (rpath=0x0, rpath@entry=0x7fffffffd460 "/usr/lib/primus", result=0x6d8fd0, sep=sep@entry=0x4be689 ":;", check_trusted=0, 
    what=what@entry=0x4ac766 "LD_LIBRARY_PATH", where=where@entry=0x0, l=0x0) at dl-load.c:440
#2  0x000000000047e705 in _dl_init_paths (llp=<optimized out>) at dl-load.c:817
#3  0x000000000044f960 in _dl_non_dynamic_init () at dl-support.c:323
#4  0x000000000044fe98 in __libc_init_first (argc=argc@entry=1, argv=argv@entry=0x7fffffffd628, envp=0x7fffffffd638) at ../csu/init-first.c:79
#5  0x00000000004064f5 in __libc_start_main (main=0x400a50 <main>, argc=1, argv=0x7fffffffd628, init=0x406970 <__libc_csu_init>, fini=0x406a00 <__libc_csu_fini>, 
    rtld_fini=0x0, stack_end=0x7fffffffd618) at libc-start.c:225
#6  0x0000000000401329 in _start () at ../sysdeps/x86_64/start.S:118


some times send other message:

/sbin/ldconfig
/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied


may be the same problem, basically this happend running from a normal user, running from root works fine, may be can be solved adding a root check to the app or something.

glibc-2.21-r1
Comment 1 Lagu 2015-10-27 20:07:20 UTC
Created attachment 415600 [details]
emerge --info
Comment 2 SpanKY gentoo-dev 2015-10-31 06:52:26 UTC
your CFLAGS look wrong:
CFLAGS="-no-integrated-cpp"

please post a full build log of glibc as an attachment
Comment 3 Lagu 2015-11-01 00:37:44 UTC
Created attachment 415840 [details]
emerge --info

sorry, i upload wrong emerge --info file.
Comment 4 Lagu 2015-11-01 00:50:36 UTC
build log, its to big to upload it here:

https://gist.github.com/latot/8389bbd141c60783270a
Comment 5 SpanKY gentoo-dev 2015-11-01 04:04:12 UTC
(In reply to Lagu from comment #4)

just compress it with something like xz
Comment 6 Lagu 2015-11-01 06:32:13 UTC
the latest link is the upload of the build log in gist, it can be download from there in zip format too.
Comment 7 SpanKY gentoo-dev 2015-11-02 16:26:26 UTC
(In reply to Lagu from comment #6)

we do not support external links.  all details must be attached to the bug.
Comment 8 Lagu 2015-11-02 17:45:40 UTC
Created attachment 415958 [details]
build.log

okis, here the log
Comment 9 SpanKY gentoo-dev 2016-01-11 20:09:38 UTC
it looks like you've got LD_LIBRARY_PATH set in your environment.  if you don't have it set, does ldconfig crash ?

what do you have that set to currently ?  what files are in those paths ?
Comment 10 Lagu 2016-01-12 00:04:23 UTC
seems with the last glibc its already fixed.

Thx.