debian wheezy with wine - Segmentation fault

Questions about Wine on Linux
Locked
Laguna_x
Level 1
Level 1
Posts: 9
Joined: Fri Mar 20, 2015 1:26 pm

debian wheezy with wine - Segmentation fault

Post by Laguna_x »

at first it was wine 1.6.2 with the same trouble.
now i tried 1.7.39.

Code: Select all

:~# wine
Segmentation fault
:~#
my config:

Code: Select all

Linux version 3.2.0-4-686-pae ([email protected]) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.65-1+deb7u2
Architecture:          i686
CPU op-mode(s):        32-bit, 64-bit
cpu:                                                            
                       Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz, 3000 MHz
                       Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz, 3000 MHz
keyboard:
  /dev/input/event1    SIGMACHIP USB Keyboard
mouse:
  /dev/input/mice      Mad Catz M.M.O.7 Mouse
graphics card:
                       Intel 4 Series Chipset Integrated Graphics Controller
                       Intel 4 Series Chipset Integrated Graphics Controller
sound:
                       Xilinx RME Hammerfall DSP
storage:
                       Intel 82801JI (ICH10 Family) 4 port SATA IDE Controller
                       Intel 82801JI (ICH10 Family) 2 port SATA IDE Controller
                       Marvell 88SE6101 single-port PATA133 interface
network:
  eth0                 Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller
network interface:
  lo                   Loopback network interface
  eth0                 Ethernet network interface
disk:
  /dev/sda             ST3250410AS
  /dev/sdc             WDC WD15EARS-00M
  /dev/sdb             WDC WD6400AACS-0
  /dev/sdd             Generic USB SD Reader
  /dev/sde             Generic USB CF Reader
  /dev/sdf             Generic USB SM Reader
  /dev/sdg             Generic USB MS Reader
cdrom:
  /dev/sr0             Optiarc DVD RW AD-7200S
usb controller:
                       Intel 82801JI (ICH10 Family) USB UHCI Controller #4
                       Intel 82801JI (ICH10 Family) USB UHCI Controller #5
                       Intel 82801JI (ICH10 Family) USB UHCI Controller #6
                       Intel 82801JI (ICH10 Family) USB2 EHCI Controller #2
                       Intel 82801JI (ICH10 Family) USB UHCI Controller #1
                       Intel 82801JI (ICH10 Family) USB UHCI Controller #2
                       Intel 82801JI (ICH10 Family) USB UHCI Controller #3
                       Intel 82801JI (ICH10 Family) USB2 EHCI Controller #1
bios:
                       BIOS
bridge:
                       Intel 4 Series Chipset DRAM Controller
                       Intel 82801JI (ICH10 Family) PCI Express Port 1
                       Intel 82801JI (ICH10 Family) PCI Express Port 5
                       Intel 82801JI (ICH10 Family) PCI Express Port 6
                       Intel 82801 PCI Bridge
                       Intel 82801JIR (ICH10R) LPC Interface Controller
hub:
                       Linux 3.2.0-4-686-pae ehci_hcd EHCI Host Controller
...
                       Linux 3.2.0-4-686-pae uhci_hcd UHCI Host Controller
  ...
memory:
                       Main Memory
firewire controller:
                       Agere FW323
unknown:
                       FPU
                       DMA controller
                       PIC
                       Timer
                       Keyboard controller
                       PS/2 Controller
                       Intel 82801JI (ICH10 Family) SMBus Controller
                       Unclassified device
...
                       Unclassified device
                       Evolution Electronics Keystation Pro 88
  /dev/input/event2    SIGMACHIP USB Keyboard
software brief:

Code: Select all

:~# gdb wine
...<cutted>...
Reading symbols from wine...done.
(gdb) run --help
Starting program: /usr/local/bin/wine --help
warning: File "/usr/local/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /usr/local/lib/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.

Program received signal SIGSEGV, Segmentation fault.
__libc_start_main (main=0x7bf00e30 <main>, argc=2, argv=0xbffff954, init=0x7bf01250 <__libc_csu_init>, fini=0x7bf012b0 <__libc_csu_fini>, rtld_fini=0xb7febc90 <_dl_fini>, stack_end=0xbffff94c) at libc-start.c:254
254               if (afct->preinit != NULL)
(gdb) bt
#0  __libc_start_main (main=0x7bf00e30 <main>, argc=2, argv=0xbffff954, init=0x7bf01250 <__libc_csu_init>, fini=0x7bf012b0 <__libc_csu_fini>, rtld_fini=0xb7febc90 <_dl_fini>, stack_end=0xbffff94c) at libc-start.c:254
#1  0x7bf010b8 in _start ()
(gdb) q
libs:

Code: Select all

ldconfig -p
92 libs found in cache `/usr/local/etc/ld.so.cache'
        libwine.so.1 (libc6) => /usr/local/lib/libwine.so.1
        libwine.so (libc6) => /usr/local/lib/libwine.so
        libutil.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libutil.so.1
        libutil.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libutil.so
        libthread_db.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libthread_db.so.1
        libthread_db.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libthread_db.so
        libsuil-0.so.0 (libc6) => /usr/local/lib/libsuil-0.so.0
        libsuil-0.so (libc6) => /usr/local/lib/libsuil-0.so
        libsratom-0.so.0 (libc6) => /usr/local/lib/libsratom-0.so.0
        libsratom-0.so (libc6) => /usr/local/lib/libsratom-0.so
        libsord-0.so.0 (libc6) => /usr/local/lib/libsord-0.so.0
        libsord-0.so (libc6) => /usr/local/lib/libsord-0.so
        libsndfile.so.1 (libc6) => /usr/local/lib/libsndfile.so.1
        libsndfile.so (libc6) => /usr/local/lib/libsndfile.so
        libserd-0.so.0 (libc6) => /usr/local/lib/libserd-0.so.0
        libserd-0.so (libc6) => /usr/local/lib/libserd-0.so
        librt.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/librt.so.1
        librt.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/librt.so
        libresolv.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libresolv.so.2
        libresolv.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libresolv.so
        libpthread.so.0 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libpthread.so.0
        libpcprofile.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libpcprofile.so
        libogg.so.0 (libc6) => /usr/local/lib/libogg.so.0
        libogg.so (libc6) => /usr/local/lib/libogg.so
        libnss_nisplus.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_nisplus.so.2
        libnss_nisplus.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_nisplus.so
        libnss_nis.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_nis.so.2
        libnss_nis.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_nis.so
        libnss_hesiod.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_hesiod.so.2
        libnss_hesiod.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_hesiod.so
        libnss_files.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_files.so.2
        libnss_files.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_files.so
        libnss_dns.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_dns.so.2
        libnss_dns.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_dns.so
        libnss_db.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_db.so.2
        libnss_db.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_db.so
        libnss_compat.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_compat.so.2
        libnss_compat.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnss_compat.so
        libnsl.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnsl.so.1
        libnsl.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libnsl.so
        libmemusage.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libmemusage.so
        libm.so.6 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libm.so.6
        libm.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libm.so
        liblrdf.so.2 (libc6) => /usr/local/lib/liblrdf.so.2
        liblrdf.so (libc6) => /usr/local/lib/liblrdf.so
        liblo.so.7 (libc6) => /usr/local/lib/liblo.so.7
        liblo.so (libc6) => /usr/local/lib/liblo.so
        liblilv-0.so.0 (libc6) => /usr/local/lib/liblilv-0.so.0
        liblilv-0.so (libc6) => /usr/local/lib/liblilv-0.so
        libgtkmm-2.4.so.1 (libc6) => /usr/local/lib/libgtkmm-2.4.so.1
        libgtkmm-2.4.so (libc6) => /usr/local/lib/libgtkmm-2.4.so
        libgthread-2.0.so.0 (libc6) => /usr/local/lib/libgthread-2.0.so.0
        libgthread-2.0.so (libc6) => /usr/local/lib/libgthread-2.0.so
        libgobject-2.0.so.0 (libc6) => /usr/local/lib/libgobject-2.0.so.0
        libgobject-2.0.so (libc6) => /usr/local/lib/libgobject-2.0.so
        libgmodule-2.0.so.0 (libc6) => /usr/local/lib/libgmodule-2.0.so.0
        libgmodule-2.0.so (libc6) => /usr/local/lib/libgmodule-2.0.so
        libglibmm_generate_extra_defs-2.4.so.1 (libc6) => /usr/local/lib/libglibmm_generate_extra_defs-2.4.so.1
        libglibmm_generate_extra_defs-2.4.so (libc6) => /usr/local/lib/libglibmm_generate_extra_defs-2.4.so
        libglibmm-2.4.so.1 (libc6) => /usr/local/lib/libglibmm-2.4.so.1
        libglibmm-2.4.so (libc6) => /usr/local/lib/libglibmm-2.4.so
        libglib-2.0.so.0 (libc6) => /usr/local/lib/libglib-2.0.so.0
        libglib-2.0.so (libc6) => /usr/local/lib/libglib-2.0.so
        libgiomm-2.4.so.1 (libc6) => /usr/local/lib/libgiomm-2.4.so.1
        libgiomm-2.4.so (libc6) => /usr/local/lib/libgiomm-2.4.so
        libgio-2.0.so.0 (libc6) => /usr/local/lib/libgio-2.0.so.0
        libgio-2.0.so (libc6) => /usr/local/lib/libgio-2.0.so
        libgdkmm-2.4.so.1 (libc6) => /usr/local/lib/libgdkmm-2.4.so.1
        libgdkmm-2.4.so (libc6) => /usr/local/lib/libgdkmm-2.4.so
        libdl.so.2 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libdl.so.2
        libdl.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libdl.so
        libcurl.so.4 (libc6) => /usr/local/lib/libcurl.so.4
        libcurl.so (libc6) => /usr/local/lib/libcurl.so
        libcrypt.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libcrypt.so.1
        libcrypt.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libcrypt.so
        libcidn.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libcidn.so.1
        libcidn.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libcidn.so
        libc.so.6 (ELF, OS ABI: Linux 2.6.16) => /usr/local/lib/libc.so.6
        libaubio.so.4 (libc6) => /usr/local/lib/libaubio.so.4
        libaubio.so (libc6) => /usr/local/lib/libaubio.so
        libatkmm-1.6.so.1 (libc6) => /usr/local/lib/libatkmm-1.6.so.1
        libatkmm-1.6.so (libc6) => /usr/local/lib/libatkmm-1.6.so
        libanl.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libanl.so.1
        libanl.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libanl.so
        libSegFault.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libSegFault.so
        libFLAC.so.8 (libc6) => /usr/local/lib/libFLAC.so.8
        libFLAC.so (libc6) => /usr/local/lib/libFLAC.so
        libFLAC++.so.6 (libc6) => /usr/local/lib/libFLAC++.so.6
        libFLAC++.so (libc6) => /usr/local/lib/libFLAC++.so
        libBrokenLocale.so.1 (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libBrokenLocale.so.1
        libBrokenLocale.so (libc6, OS ABI: Linux 2.6.16) => /usr/local/lib/libBrokenLocale.so
        ld-linux.so.2 (ELF) => /usr/local/lib/ld-linux.so.2
what can i check?
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: debian wheezy with wine - Segmentation fault

Post by spoon0042 »

Don't run wine as root. That aside, how did you build wine (I'm assuming you did yourself since it's in /usr/local), did you follow the instructions in the wine wiki or something else?
Laguna_x
Level 1
Level 1
Posts: 9
Joined: Fri Mar 20, 2015 1:26 pm

Re: debian wheezy with wine - Segmentation fault

Post by Laguna_x »

as in wiki:
>tar -xf
>./configure (checking if all libs are exists, install libs and reconfigure)
>make depend
>make
>make install

same with 1.6 and 1.5 (last tarball version)
wine 1.4 have no this trouble (tried deb in debian distrib, next i'll try make wine 1.4 tommorow and see how it will be work)
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: debian wheezy with wine - Segmentation fault

Post by olivierfrdierick »

make install has to be done as root, none of the other commands.

Segfault with Wine are often related to missing packages.
The fact that the debian package does not have the issue is a clue.

Did you mix 32bit and 64bit packages?
Laguna_x
Level 1
Level 1
Posts: 9
Joined: Fri Mar 20, 2015 1:26 pm

Re: debian wheezy with wine - Segmentation fault

Post by Laguna_x »

wine wrotes something like "Checking if needs 32 bit... no" in last lines while configurating. other packages at most case are distrib's debs (except libc6, compiled from source, and 2 or 3 other libs. will check this later). but wine 1.4, as i sad above, have no this issue (deb package, included in distro). wine 1.4 starts normaly without sigsegv. winecfs (wine 1.4) starts and cunfigures (checked after >make uninstall && apt-get install wine).
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: debian wheezy with wine - Segmentation fault

Post by olivierfrdierick »

Please open a terminal, run the commands below and copy-paste the result on this forum:
uname -m
file /usr/local/bin/wine
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: debian wheezy with wine - Segmentation fault

Post by spoon0042 »

That ldconfig output is only showing some stuff in /usr/local, is that intentional? You're missing all of X at the least.
Laguna_x
Level 1
Level 1
Posts: 9
Joined: Fri Mar 20, 2015 1:26 pm

Re: debian wheezy with wine - Segmentation fault

Post by Laguna_x »

checking whether we need to define __i386__... no
(when ./configure)

uname -m
i686

file /usr/local/bin/wine
/usr/local/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x8987f3f4cc3cf882219d0b566c21b61c9b6c8839, not stripped


wine 1.4 (with manual compiling) have same issue.
where did i miss?
Laguna_x
Level 1
Level 1
Posts: 9
Joined: Fri Mar 20, 2015 1:26 pm

Re: debian wheezy with wine - Segmentation fault

Post by Laguna_x »

spoon0042 wrote:That ldconfig output is only showing some stuff in /usr/local, is that intentional? You're missing all of X at the least.
what of X you need to know?
xorg 1.7.7
kde 4.4.8 with plasma wm

all from distrib debs

libc6 was compiled from sources
Laguna_x
Level 1
Level 1
Posts: 9
Joined: Fri Mar 20, 2015 1:26 pm

Re: debian wheezy with wine - Segmentation fault

Post by Laguna_x »

hm.. dmesg shows another string
[ 7269.351900] wine[13305]: segfault at d ip b748daac sp bfc74bc0 error 4 in libc-2.19.so[b7474000+1ac000]
[ 9257.805123] wine[16470]: segfault at d ip b7461aac sp bf94fd70 error 4 in libc-2.19.so[b7448000+1ac000]
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: debian wheezy with wine - Segmentation fault

Post by spoon0042 »

Laguna_x wrote:what of X you need to know?
xorg 1.7.7
kde 4.4.8 with plasma wm

all from distrib debs

libc6 was compiled from sources
They may be installed but ld isn't seeing them, it's only finding what's in /usr/local and not the system libs.

I'm not sure but I can only assume that has something to do with rolling your own libc, why are you doing that?

(I mean if you're sure that's what you want to be doing it may be as simple as adding /usr/lib in /usr/local/etc/ld.something though I don't know what's given priority if you do that.)
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: debian wheezy with wine - Segmentation fault

Post by olivierfrdierick »

Debian stable ships with libc6 2.13. Some programs need libc6 2.17+.

Instead of compiling libc6 yourself you should download the libc6 libc6-dev and libc6-dbg packages from debian experimental and force-install them one at a time with dpkg. You may also follow answer from the link below that involves adding sid to your apt source list, upgrade those packages to latest, then restoring your apt source list. Whatever you choose to do backup your important files because it might break your system.

After getting libc6 correctly installed Wine should not segfault anymore.

Link: How to upgrade glibc from version 2.13 to 2.15 on Debian?
Locked