Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hdajackretask wont start: error 4 in libc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Wed Jul 20, 2016 6:05 pm    Post subject: hdajackretask wont start: error 4 in libc Reply with quote

Maybe the topic is better in Multimedia, i dont know, so i wrote it down here. In the German Forum i have allready asked, but they didnt know an answer. The problem is simple: to configure my onboard sound card i need the software "hdajackretask", its a part of "media-sound/alsa-tools" (Currently installed: 1.0.29:0.9:gentoo) if i want to start the Software (doesnt matter if i start under kde plasma or cinnamon), the Software wont start and "dmesg" says this:
Code:
[10670.588476] hdajackretask[9973]: segfault at 0 ip 00007ff95c760f4d sp 00007ffefc49f628 error 4 in libc-2.23.so[7ff95c6c8000+190000]
My current kernel is a genkernel: 4.4.6-gentoo. "equery b libc-2.23.so" says:
Code:
 * Searching for libc-2.23.so ...
sys-libs/glibc-2.23-r2 (/lib32/libc-2.23.so)
sys-libs/glibc-2.23-r2 (/lib64/libc-2.23.so)
but i have allready emerged them new, also tryed some different kernels. "gcc-config" says "[2] x86_64-pc-linux-gnu-4.9.3 *", i have also tryed different versions and reemerged kernel, alsa-tools and glibc without a solution. Here is my "emerge --info":
Code:
Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.23-r2, 4.4.6-gentoo x86_64)
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2700K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16405572 total,   9925180 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Wed, 20 Jul 2016 15:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.3.5-r3::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 0

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 1

abadonna-overlay
    location: /var/lib/layman/abadonna-overlay
    masters: gentoo
    priority: 2

Installed sets: @neuerkernel
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apm berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdr cjk cli consolekit cracklib crypt css cups cxx dbus dhcp dri dts dvd dvdr egl emboss encode exif extra-tools fam ffmpeg firefox flac fortran gdbm gif glamor gnome gpm gtk gtk3 hal iconv icu ipv6 jack jpeg jpeg2k kde lame lcms libass libnotify libv4l lua mad matroska midi mmx mmxext mng modplug modules mp3 mp4 mpeg mpeg2 mtp multilib musepack ncurses netplay nfs nls nptl ntfs ntfsdecrypt nvidia ogg openal opengl openmp openssl pam pango pcre pdf plasme png policykit ppds pulseaudio qt3support qt5 rar raw readline rss samba sdl seccomp session sound speech speex spell sse sse2 ssl startup-notification svg systemd taglib tcpd theora tiff transparency truetype udev udisks unicode upower usb v4l vcd vorbis wavepack wavpack wayland wxwidgets x264 xattr xcb xdm-auth xinerama xml xmpp xorg xv xvid zip zlib" ABI_X86="64 32" ALSA_CARDS="darla20 darla24 echo3g emu10k1 emu10k1x gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usb-usx2y vx222" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse roccat_konextd" KERNEL="linux" L10N="de en en-GB ja" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_GB ja" NETBEANS_MODULES="apisupport java javafx profiler websvccommon mobility php webcommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
A working Sound System is the once reason my Windows 7 is still alive, so help me please.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Thu Jul 21, 2016 1:26 am    Post subject: Reply with quote

That message means that hdajackretask crashed. You need to determine why it crashed. Start by running it under gdb and examining the backtrace when the program receives a SIGSEGV. If you have not already, you will need to build the package with debug symbols enabled and prevent Portage from stripping those symbols prior to install.
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Sat Jul 23, 2016 1:31 pm    Post subject: Reply with quote

Okay, i am sorry, i didnt understand everything. I have edited make.conf and expand CFLAGS="... -ggdb". Then i have done a
Code:
FEATURES="nostrip" emerge -1 alsa-tools glibc
At least "gdb hdajackretask" in the console:
Code:
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.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 hdajackretask...done.
The hdajackretask software has a frontend, i dont know what specially to do. Is there a tutorial or something?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Sat Jul 23, 2016 4:15 pm    Post subject: Reply with quote

You might find the Introducing gdb subsection of the QA Backtraces document helpful. You can debug a core file generated by a prior run (assuming one was generated and that you can find it) or you can use gdb -q --args hdajackretask --arguments-to-hdajackretask to run a new instance and let it crash.

If you still need more help, please post back. I am not familiar with this tool, so I do not know specifically what text you should use for --arguments-to-hdajackretask. Perhaps some other forum user can tell you what parameters your chosen desktop environment normally uses when it runs this program. If you are out of ideas, you could leave the arguments blank and hope that it crashes when run with no arguments. This might or might not be the same crash that you are trying to debug, though.
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Mon Jul 25, 2016 11:47 am    Post subject: Reply with quote

seems like it found something:
Code:
Reading symbols from hdajackretask...done.
(gdb) run
Starting program: /usr/bin/hdajackretask
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffece8c700 (LWP 32180)]
[New Thread 0x7fffe7fff700 (LWP 32181)]

Program received signal SIGSEGV, Segmentation fault.
__strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40
40      ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: Datei oder Verzeichnis nicht gefunden.
"Datei oder Verzeichnis nicht gefunden." means "File or Directory was not found". Google says its a problem with glibc, also found a lot of crap with vlc, kde plasma and a lot more. Maybe there is a wrong use Flag?:
Code:
[ebuild   R   ~] sys-libs/glibc-2.23-r2:2.2::gentoo  USE="debug gd (multilib) rpc -audit -caps (-hardened) -nscd -profile (-selinux) -suid -systemtap -vanilla" 0 KiB
Maybe its a problem with the kernel (I use genkernel)? Sorry, i am just an electrican, the problem seems to complicated for me.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Tue Jul 26, 2016 1:18 am    Post subject: Reply with quote

I think your Google result is misleading. The output you showed says that a crash happened in libc. From your dmesg output, we expected to see that result. The "File or directory not found" (canonically, this is ENOENT: "No such file or directory" when printed as an error in English) is that gdb cannot find the file that defines the function that faulted, so it cannot show you the source. This is true, but not important. Neither of us wants to look at that file. It is just a utility. To use a carpentry analogy, we know that the hammer hit the wrong spot, but we do not need to examine the hammer. We need to examine who wielded the hammer and why the wielder aimed it at the wrong spot. For that, we want to see the backtrace that shows why the program passed invalid inputs to glibc. Please recreate the situation you showed, then run bt full and post its output.

The Google hits for vlc, KDE, and so on are likely because all those projects have, at various times, had bugs that led to them passing invalid input to glibc, which led to a fault when glibc trusted that the input was valid.

Fixing this may be too complicated for you, but providing the information necessary to help an expert fix it is just a matter of finding the right commands to run. We can help you find those commands and direct you to someone who can use that information to fix the root cause.
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Tue Jul 26, 2016 8:31 am    Post subject: Reply with quote

Finaly i did this:
Code:
Reading symbols from hdajackretask...done.                                                                                                                                         
(gdb) run                                                                                                                                                                         
Starting program: /usr/bin/hdajackretask                                                                                                                                           
[Thread debugging using libthread_db enabled]                                                                                                                                     
Using host libthread_db library "/lib64/libthread_db.so.1".                                                                                                                       
[New Thread 0x7fffece8c700 (LWP 2516)]                                                                                                                                             
[New Thread 0x7fffe7fff700 (LWP 2517)]                                                                                                                                             
                                                                                                                                                                                   
Program received signal SIGSEGV, Segmentation fault.                                                                                                                               
__strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40                                                                                               
40      ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: Datei oder Verzeichnis nicht gefunden.                                                                               
(gdb) bt full                                                                                                                                                                     
#0  __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40                                                                                           
No locals.                                                                                                                                                                         
#1  0x0000000000403a4f in update_tree_one_hint (model=<optimized out>, path=<optimized out>, iter=0x7fffffffd710, userdata=0x6d7d00) at main-gtk.c:312                             
        name = 0x95bdc0 "jack_detect"                                                                                                                                             
        ui = 0x6d7d00                                                                                                                                                             
        s = <optimized out>                                                                                                                                                       
        s2 = <optimized out>                                                                                                                                                       
#2  0x00007ffff77bf29a in ?? () from /usr/lib64/libgtk-3.so.0                                                                                                                     
No symbol table info available.                                                                                                                                                   
#3  0x00007ffff77c0644 in gtk_tree_model_foreach () from /usr/lib64/libgtk-3.so.0                                                                                                 
No symbol table info available.                                                                                                                                                   
#4  0x00000000004045ac in update_codec_ui (ui=ui@entry=0x6d7d00, codec_change=codec_change@entry=true) at main-gtk.c:427
        codec_index = <optimized out>
        i = <optimized out>
#5  0x0000000000403448 in main (argc=1, argv=0x7fffffffd9d8) at main-gtk.c:668
        ui = 0x6d7d00
(gdb)
I also reemerged gtk+ because of the missig simbol table (CFLAGS= "... -ggdb") and did it again with the same result.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Wed Jul 27, 2016 1:25 am    Post subject: Reply with quote

You may need to build some of those components with a lower optimization level. The compiler seems to be optimizing the generated code to the point that gdb cannot find important variables. Try first with -Og instead of -O2. If you still see <optimized out>, you may need to use -O0.

When you rebuilt gtk+, did you also have FEATURES=nostrip? If Portage is allowed to strip the generated files, your use of -ggdb will not matter.
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Wed Jul 27, 2016 7:56 pm    Post subject: Reply with quote

The errors get worser, not better. First i have changed the make.conf:
Code:
CFLAGS="-march=core-avx-i -O0 -pipe -ggdb"
CXXFLAGS="${CFLAGS}"

Also there is no FEATURES=nostrip in the make conf, also i hae set the "debug" USE Flag. But after a "emerge --newuse -1av gtk+ alsa-tools glibc" i have this:
Code:
Reading symbols from hdajackretask...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/hdajackretask
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffece29700 (LWP 3317)]
[New Thread 0x7fffe7fff700 (LWP 3318)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff66daf4d in ?? () from /lib64/libc.so.6
(gdb) bt full
#0  0x00007ffff66daf4d in ?? () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000000000403eba in ?? ()
No symbol table info available.
#2  0x00007ffff77a451a in ?? () from /usr/lib64/libgtk-3.so.0
No symbol table info available.
#3  0x00007ffff77a5974 in gtk_tree_model_foreach () from /usr/lib64/libgtk-3.so.0
No symbol table info available.
#4  0x00000000004045d2 in ?? ()
No symbol table info available.
#5  0x00000000004057bf in ?? ()
No symbol table info available.
#6  0x00007ffff6662790 in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#7  0x0000000000402d59 in ?? ()
No symbol table info available.
What did i wrong?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Thu Jul 28, 2016 1:12 am    Post subject: Reply with quote

You should usually not set USE=debug. That enables package-specific code that may be debugging related. It is not what you want here. Please remove USE=debug and add FEATURES="nostrip". That is a valid setting, but may not be listed in your make.conf by default. After making those changes, rebuild again the packages you rebuilt for your most recent post: emerge --newuse -1av media-sound/alsa-tools sys-libs/glibc x11-libs/gtk+. Then retry the gdb command you showed in your most recent post.
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Thu Jul 28, 2016 12:33 pm    Post subject: Reply with quote

I am really sorry, i missunderstand you. My english isn't the best. But this time it seems to be good:
Code:
Reading symbols from hdajackretask...done.
(gdb) run
Starting program: /usr/bin/hdajackretask
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffece8c700 (LWP 10006)]
[New Thread 0x7fffe7fff700 (LWP 10007)]

Program received signal SIGSEGV, Segmentation fault.
__strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40
40      ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: Datei oder Verzeichnis nicht gefunden.
(gdb) bt full
#0  __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40
No locals.
#1  0x0000000000403eba in update_tree_one_hint (model=0x6d8630, path=0x84d4a0, iter=0x7fffffffd850, userdata=0x860000) at main-gtk.c:312
        name = 0x96b7b0 "jack_detect"
        ui = 0x860000                                                                                                                                                             
        s = 0x6d8630 "`e\212"                                                                                                                                                     
        s2 = 0x6d8630 "`e\212"                                                                                                                                                     
#2  0x00007ffff77bf29a in gtk_tree_model_foreach_helper (model=model@entry=0x6d8630, iter=iter@entry=0x7fffffffd850, path=path@entry=0x84d4a0,                                     
    func=func@entry=0x403e2d <update_tree_one_hint>, user_data=user_data@entry=0x860000) at /var/tmp/portage/x11-libs/gtk+-3.18.9/work/gtk+-3.18.9/gtk/gtktreemodel.c:1980         
        child = {stamp = 0, user_data = 0x4, user_data2 = 0x0, user_data3 = 0x7ffff6cbeaa5 <g_sequence_get_iter_at_pos+21>}                                                       
        iters_persist = 1                                                                                                                                                         
#3  0x00007ffff77c0644 in gtk_tree_model_foreach (model=0x6d8630, func=0x403e2d <update_tree_one_hint>, user_data=0x860000)                                                       
    at /var/tmp/portage/x11-libs/gtk+-3.18.9/work/gtk+-3.18.9/gtk/gtktreemodel.c:2033                                                                                             
        path = 0x84d4a0                                                                                                                                                           
        iter = {stamp = -1875053728, user_data = 0x73e630, user_data2 = 0x0, user_data3 = 0x0}                                                                                     
        __FUNCTION__ = "gtk_tree_model_foreach"                                                                                                                                   
#4  0x00000000004045d2 in update_codec_ui (ui=0x860000, codec_change=true) at main-gtk.c:427                                                                                       
        codec_index = 0                                                                                                                                                           
        i = -9984                                                                                                                                                                 
#5  0x00000000004057bf in main (argc=1, argv=0x7fffffffd9e8) at main-gtk.c:668                                                                                                     
        ui = 0x860000
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Fri Jul 29, 2016 1:21 am    Post subject: Reply with quote

There is no need to apologize. I appreciate you using English for this, since it makes your post available to a wider audience.

Unfortunately, that output is not as helpful as I had hoped. That is not your fault. You did as I asked. I think we can still make some assumptions about what is happening, but I also think we may be at the point that you need to involve someone familiar with this code. I had hoped it would be a simple error that could be spotted by inspection and resolved by adding error checking. It now looks like a more subtle error that will require an understanding of the affected program in order to fix it. Looking at main-gtk.c:
main-gtk.c:
  310     ui_data_t *ui = userdata;
  311     gtk_tree_model_get(GTK_TREE_MODEL(ui->hints.store), iter, 0, &name, -1);
  312     gchar *s = strstr(ui->hints.values, name);
  313     if (!s) {
  314         g_free(name);
We see a call to strstr on line 312, which is consistent with your report of a fault in __strstr_sse2_unaligned, one of the implementations that could be called for strstr. The fault must come from passing a bad argument to strstr. The debugger output for local variable name looks reasonable as an argument to strstr, so the second argument is likely good. Therefore, the first argument is likely bad. The value ui = 0x860000 looks unlikely, but not impossible.

We have reached the limit of what I can do without studying this package in detail. I cannot help you further. Sorry. You could let this thread sit in case another forum user knows how to resolve this, but you would likely be better served by contacting the maintainer for this tool. Provide them the contents of the code block in your most recent post. It should help them understand the general nature of the fault. They will probably also want details about your system. I doubt this bug affects all systems or they would have caught it already. Instead, there must be something special about your system that was not expected.
Back to top
View user's profile Send private message
tsiru
n00b
n00b


Joined: 04 Jan 2007
Posts: 12

PostPosted: Mon Oct 17, 2016 11:30 pm    Post subject: Reply with quote

Hello!

If someone still need workaround, I found one (tested on latest Clevo notebook):

Create/append following files:

/etc/portage/bashrc:
Code:

pre_src_prepare() {
    [[ ${EAPI:-0} == [012345] ]] || return
    if ! type epatch_user > /dev/null 2>&1; then
        local names="EPATCH_USER_SOURCE epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop"
        source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/eutils.eclass)
    fi

    epatch_user

    for name in $names; do
        unset $name
    done
}


/etc/portage/patches/media-sound/alsa-tools-1.0.29/100-hdajackretask.patch:

Code:

diff --git a/hdajackretask/main-gtk.c b/hdajackretask/main-gtk.c
index f5ff6e4..97a9963 100644
--- a/hdajackretask/main-gtk.c
+++ b/hdajackretask/main-gtk.c
@@ -309,7 +309,10 @@ static gboolean update_tree_one_hint(GtkTreeModel *model, GtkTreePath *path,
       gchar *name;
       ui_data_t *ui = userdata;
       gtk_tree_model_get(GTK_TREE_MODEL(ui->hints.store), iter, 0, &name, -1);
-      gchar *s = strstr(ui->hints.values, name);
+     gchar *s;
+     if (ui->hints.values) {
+         s = strstr(ui->hints.values, name);
+     }
       if (!s) {
           g_free(name);
           gtk_list_store_set(ui->hints.store, iter, 1, "default", -1);


and reemerge alsa-tools:
Code:
emerge alsa-tools -1 --nodeps


It worked for me.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Tue Oct 18, 2016 1:29 am    Post subject: Reply with quote

That patch is dangerous and wrong. The modified program conditionally initializes s, but does not set any state to record whether s has a valid value. It then unconditionally uses s.

It might be sufficient to ensure s is initialized to nullptr on the else path.
Back to top
View user's profile Send private message
ivan2k
n00b
n00b


Joined: 10 Sep 2010
Posts: 50
Location: Codognè (TV), Italy

PostPosted: Mon Apr 02, 2018 4:52 pm    Post subject: Reply with quote

Just for other users who get there with the same error: i think you miss the CONFIG_SND_HDA_RECONFIG on your kernel configuration.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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