www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/18/10:35:35

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <7c5010d60803180834p7fb8a0bdx556ccfc248072fc@mail.gmail.com>
Date: Tue, 18 Mar 2008 16:34:53 +0100
From: "Giovanni Maruzzelli" <gmaruzz DOT lists AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: please help: crash on vista
In-Reply-To: <7c5010d60803171241t425d465et85765331745693a3@mail.gmail.com>
MIME-Version: 1.0
References: <7c5010d60803170346v638ab1e5k37134c0a35aacc1f AT mail DOT gmail DOT com> <7c5010d60803170724w585d8010o581b821ce4a9ad63 AT mail DOT gmail DOT com> <20080317154620 DOT GB16519 AT calimero DOT vinschen DOT de> <7c5010d60803171000k4432a2d7hd00ca431aaad5596 AT mail DOT gmail DOT com> <20080317172705 DOT GR19345 AT calimero DOT vinschen DOT de> <7c5010d60803171224wee6aff8yb8f636448d123f58 AT mail DOT gmail DOT com> <005101c88865$a7c3ca80$2708a8c0 AT CAM DOT ARTIMI DOT COM> <7c5010d60803171241t425d465et85765331745693a3 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi Dave, hi Cygwin developers,

I checked the contents of /proc/<pid>/maps with the test program
below, both before and after waveinopen, with both cygwin1.dll
1.5.25.11 and the snapshot 2008-03-02.

The content of maps seems to be the same, with some differences in the
"permissions".

The test program is at the end of this post.

1.5.25.11 crashes almost immediately after returning from waveinopen
(I had to try many times to get the /proc/<pid>/maps). waveinopen
returns 0 (no error).

snapshot runs without problems.

contents of /proc/<pid>/maps in cygwin 1.5.25.11:
=======================================
1.5.25.11 BEFORE waveinopen:

00400000-00460000 r--s 00401000 56BD:822F 27021597764369322
/home/maruzz/wavein/waveinopen_vista.exe
777D0000-778EE000 rw-s 00000000 56BD:822F 281474976736141
/cygdrive/c/Windows/system32/ntdll.dll
776F0000-777C8000 r-xs 7773B6EC 56BD:822F 281474976735614
/cygdrive/c/Windows/system32/kernel32.dll
61000000-61200000 r--s 610547B0 56BD:822F 3377699720531033
/usr/bin/cygwin1.dll
76430000-764EF000 r-xs 764773B4 56BD:822F 281474976734517
/cygdrive/c/Windows/system32/ADVAPI32.DLL
77360000-77423000 r-xs 773AAB44 56BD:822F 1407374883561411
/cygdrive/c/Windows/system32/RPCRT4.dll
72290000-722C3000 r-xs 72293841 56BD:822F 281474976736981
/cygdrive/c/Windows/system32/WINMM.DLL
770A0000-7714A000 r-xs 770AA66D 56BD:822F 281474976735930
/cygdrive/c/Windows/system32/msvcrt.dll
77970000-77A0E000 r-xs 77984205 56BD:822F 562949953467980
/cygdrive/c/Windows/system32/USER32.dll
77280000-772CB000 r-xs 77289339 56BD:822F 281474976735244
/cygdrive/c/Windows/system32/GDI32.dll
76260000-763A4000 r-xs 762B7EC1 56BD:822F 281474976736212
/cygdrive/c/Windows/system32/ole32.dll
77660000-776EC000 r--s 77664307 56BD:822F 1125899906896537
/cygdrive/c/Windows/system32/OLEAUT32.dll
72250000-72288000 r-xs 72251C6D 56BD:822F 281474976736214
/cygdrive/c/Windows/system32/OLEACC.dll
77430000-7744E000 r-xs 7743134D 56BD:822F 281474976735375
/cygdrive/c/Windows/system32/IMM32.DLL
77160000-77227000 r-xs 771616B9 56BD:822F 281474976735811
/cygdrive/c/Windows/system32/MSCTF.dll
77650000-77659000 r--s 77651303 56BD:822F 281474976735683
/cygdrive/c/Windows/system32/LPK.DLL
763B0000-7642D000 r--s 763C76EE 56BD:822F 281474976736835
/cygdrive/c/Windows/system32/USP10.dll
75EC0000-75EEC000 r-xs 75EC1275 56BD:822F 281474976734536
/cygdrive/c/Windows/system32/apphelp.dll
=========================================================

1.5.25.11 AFTER waveinopen:

00400000-00460000 rw-p 00401000 56BD:822F 27021597764369322
/home/maruzz/wavein/waveinopen_vista.exe
777D0000-778EE000 r-xs 00000000 56BD:822F 281474976736141
/cygdrive/c/Windows/system32/ntdll.dll
776F0000-777C8000 r-xs 7773B6EC 56BD:822F 281474976735614
/cygdrive/c/Windows/system32/kernel32.dll
61000000-61200000 rw-p 610547B0 56BD:822F 3377699720531033
/usr/bin/cygwin1.dll
76430000-764EF000 r-xs 764773B4 56BD:822F 281474976734517
/cygdrive/c/Windows/system32/ADVAPI32.DLL
77360000-77423000 r-xs 773AAB44 56BD:822F 1407374883561411
/cygdrive/c/Windows/system32/RPCRT4.dll
72290000-722C3000 r-xs 72293841 56BD:822F 281474976736981
/cygdrive/c/Windows/system32/WINMM.DLL
770A0000-7714A000 r--s 770AA66D 56BD:822F 281474976735930
/cygdrive/c/Windows/system32/msvcrt.dll
77970000-77A0E000 r-xs 77984205 56BD:822F 562949953467980
/cygdrive/c/Windows/system32/USER32.dll
77280000-772CB000 r-xs 77289339 56BD:822F 281474976735244
/cygdrive/c/Windows/system32/GDI32.dll
76260000-763A4000 r-xs 762B7EC1 56BD:822F 281474976736212
/cygdrive/c/Windows/system32/ole32.dll
77660000-776EC000 r--s 77664307 56BD:822F 1125899906896537
/cygdrive/c/Windows/system32/OLEAUT32.dll
72250000-72288000 r-xs 72251C6D 56BD:822F 281474976736214
/cygdrive/c/Windows/system32/OLEACC.dll
77430000-7744E000 r-xp 7743134D 56BD:822F 281474976735375
/cygdrive/c/Windows/system32/IMM32.DLL
77160000-77227000 r-xs 771616B9 56BD:822F 281474976735811
/cygdrive/c/Windows/system32/MSCTF.dll
77650000-77659000 r--s 77651303 56BD:822F 281474976735683
/cygdrive/c/Windows/system32/LPK.DLL
763B0000-7642D000 r--s 763C76EE 56BD:822F 281474976736835
/cygdrive/c/Windows/system32/USP10.dll
75EC0000-75EEC000 rw-p 75EC1275 56BD:822F 281474976734536
/cygdrive/c/Windows/system32/apphelp.dll
721C0000-721F0000 r-xs 721C3E73 56BD:822F 281474976736903
/cygdrive/c/Windows/system32/wdmaud.drv
727A0000-727A4000 r-xp 727A1030 56BD:822F 281474976735633
/cygdrive/c/Windows/system32/ksuser.dll
75300000-75307000 r--s 75301080 56BD:822F 281474976734586
/cygdrive/c/Windows/system32/AVRT.dll
75230000-75257000 r-xs 7523A4EE 56BD:822F 562949953460253
/cygdrive/c/Windows/system32/MMDevAPI.DLL
77300000-77355000 r-xs 77318C95 56BD:822F 281474976736572
/cygdrive/c/Windows/system32/SHLWAPI.dll
74E30000-74FC4000 rw-s 74E963D1 56BD:822F 281474976756316
/cygdrive/c/Windows/WinSxS/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100/comctl32.dll
77010000-77094000 r-xs 77012469 56BD:822F 281474976734696
/cygdrive/c/Windows/system32/CLBCatQ.DLL
760D0000-76259000 r-xs 760D1792 56BD:822F 1970324837027720
/cygdrive/c/Windows/system32/SETUPAPI.dll
75190000-751BD000 r-xs 75191685 56BD:822F 281474976737016
/cygdrive/c/Windows/system32/WINTRUST.dll
759F0000-75AE1000 r-xs 759F16A1 56BD:822F 562949953459949
/cygdrive/c/Windows/system32/CRYPT32.dll
75B50000-75B62000 rw-p 75B5359E 56BD:822F 281474976735795
/cygdrive/c/Windows/system32/MSASN1.dll
75F40000-75F5E000 rw-p 75F4152E 56BD:822F 281474976736831
/cygdrive/c/Windows/system32/USERENV.dll
75F20000-75F34000 rw-p 75F21245 56BD:822F 281474976736524
/cygdrive/c/Windows/system32/Secur32.dll
76090000-760B9000 r-xs 760912C0 56BD:822F 1125899906890070
/cygdrive/c/Windows/system32/imagehlp.dll
71FA0000-71FC1000 r--s 71FAA116 56BD:822F 281474976734559
/cygdrive/c/Windows/System32/audioses.dll
71F30000-71F96000 r--s 71F40396 56BD:822F 281474976734557
/cygdrive/c/Windows/System32/audioeng.dll
76080000-76087000 rw-p 7608154B 56BD:822F 281474976736337
/cygdrive/c/Windows/system32/PSAPI.DLL
72240000-72249000 r--s 72243700 56BD:822F 281474976735792
/cygdrive/c/Windows/system32/msacm32.drv
721A0000-721B5000 r--s 721A1349 56BD:822F 281474976735791
/cygdrive/c/Windows/system32/MSACM32.dll
72230000-72237000 r--s 72232BF7 56BD:822F 281474976735739
/cygdrive/c/Windows/system32/midimap.dll

==========================================
==========================================
==========================================

contents of /proc/<pid>/maps with the snapshot 2008-03-02:
====================================
snapshot BEFORE waveinopen:

00400000-00460000 r--s 00401000 56BD:822F 27021597764369322
/home/maruzz/wavein/waveinopen_vista.exe
777D0000-778EE000 rw-s 00000000 56BD:822F 281474976736141
/cygdrive/c/Windows/system32/ntdll.dll
776F0000-777C8000 r-xs 7773B6EC 56BD:822F 281474976735614
/cygdrive/c/Windows/system32/kernel32.dll
61000000-61280000 r-xs 61064C30 56BD:822F 6473924464355664
/usr/bin/cygwin1.dll
76430000-764EF000 r-xs 764773B4 56BD:822F 281474976734517
/cygdrive/c/Windows/system32/ADVAPI32.DLL
77360000-77423000 r-xs 773AAB44 56BD:822F 1407374883561411
/cygdrive/c/Windows/system32/RPCRT4.dll
72290000-722C3000 r-xs 72293841 56BD:822F 281474976736981
/cygdrive/c/Windows/system32/WINMM.DLL
770A0000-7714A000 r-xs 770AA66D 56BD:822F 281474976735930
/cygdrive/c/Windows/system32/msvcrt.dll
77970000-77A0E000 r-xs 77984205 56BD:822F 562949953467980
/cygdrive/c/Windows/system32/USER32.dll
77280000-772CB000 r-xs 77289339 56BD:822F 281474976735244
/cygdrive/c/Windows/system32/GDI32.dll
76260000-763A4000 r-xs 762B7EC1 56BD:822F 281474976736212
/cygdrive/c/Windows/system32/ole32.dll
77660000-776EC000 r--s 77664307 56BD:822F 1125899906896537
/cygdrive/c/Windows/system32/OLEAUT32.dll
72250000-72288000 r-xs 72251C6D 56BD:822F 281474976736214
/cygdrive/c/Windows/system32/OLEACC.dll
77430000-7744E000 r-xs 7743134D 56BD:822F 281474976735375
/cygdrive/c/Windows/system32/IMM32.DLL
77160000-77227000 r-xs 771616B9 56BD:822F 281474976735811
/cygdrive/c/Windows/system32/MSCTF.dll
77650000-77659000 r--s 77651303 56BD:822F 281474976735683
/cygdrive/c/Windows/system32/LPK.DLL
763B0000-7642D000 r--s 763C76EE 56BD:822F 281474976736835
/cygdrive/c/Windows/system32/USP10.dll
75EC0000-75EEC000 r-xs 75EC1275 56BD:822F 281474976734536
/cygdrive/c/Windows/system32/apphelp.dll
=========================================================

snapshot AFTER waveinopen:

00400000-00460000 r--s 00401000 56BD:822F 27021597764369322
/home/maruzz/wavein/waveinopen_vista.exe
777D0000-778EE000 r-xs 00000000 56BD:822F 281474976736141
/cygdrive/c/Windows/system32/ntdll.dll
776F0000-777C8000 r-xs 7773B6EC 56BD:822F 281474976735614
/cygdrive/c/Windows/system32/kernel32.dll
61000000-61280000 r-xs 61064C30 56BD:822F 6473924464355664
/usr/bin/cygwin1.dll
76430000-764EF000 r-xs 764773B4 56BD:822F 281474976734517
/cygdrive/c/Windows/system32/ADVAPI32.DLL
77360000-77423000 r-xs 773AAB44 56BD:822F 1407374883561411
/cygdrive/c/Windows/system32/RPCRT4.dll
72290000-722C3000 r--s 72293841 56BD:822F 281474976736981
/cygdrive/c/Windows/system32/WINMM.DLL
770A0000-7714A000 r--s 770AA66D 56BD:822F 281474976735930
/cygdrive/c/Windows/system32/msvcrt.dll
77970000-77A0E000 r-xs 77984205 56BD:822F 562949953467980
/cygdrive/c/Windows/system32/USER32.dll
77280000-772CB000 r-xs 77289339 56BD:822F 281474976735244
/cygdrive/c/Windows/system32/GDI32.dll
76260000-763A4000 r-xs 762B7EC1 56BD:822F 281474976736212
/cygdrive/c/Windows/system32/ole32.dll
77660000-776EC000 r-xs 77664307 56BD:822F 1125899906896537
/cygdrive/c/Windows/system32/OLEAUT32.dll
72250000-72288000 rw-p 72251C6D 56BD:822F 281474976736214
/cygdrive/c/Windows/system32/OLEACC.dll
77430000-7744E000 r-xp 7743134D 56BD:822F 281474976735375
/cygdrive/c/Windows/system32/IMM32.DLL
77160000-77227000 r-xs 771616B9 56BD:822F 281474976735811
/cygdrive/c/Windows/system32/MSCTF.dll
77650000-77659000 r--s 77651303 56BD:822F 281474976735683
/cygdrive/c/Windows/system32/LPK.DLL
763B0000-7642D000 r--s 763C76EE 56BD:822F 281474976736835
/cygdrive/c/Windows/system32/USP10.dll
75EC0000-75EEC000 r-xs 75EC1275 56BD:822F 281474976734536
/cygdrive/c/Windows/system32/apphelp.dll
721C0000-721F0000 r-xs 721C3E73 56BD:822F 281474976736903
/cygdrive/c/Windows/system32/wdmaud.drv
727A0000-727A4000 r-xp 727A1030 56BD:822F 281474976735633
/cygdrive/c/Windows/system32/ksuser.dll
75300000-75307000 r-xp 75301080 56BD:822F 281474976734586
/cygdrive/c/Windows/system32/AVRT.dll
75230000-75257000 rw-p 7523A4EE 56BD:822F 562949953460253
/cygdrive/c/Windows/system32/MMDevAPI.DLL
77300000-77355000 r-xs 77318C95 56BD:822F 281474976736572
/cygdrive/c/Windows/system32/SHLWAPI.dll
74E30000-74FC4000 rw-s 74E963D1 56BD:822F 281474976756316
/cygdrive/c/Windows/WinSxS/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100/comctl32.dll
77010000-77094000 rw-p 77012469 56BD:822F 281474976734696
/cygdrive/c/Windows/system32/CLBCatQ.DLL
760D0000-76259000 r--s 760D1792 56BD:822F 1970324837027720
/cygdrive/c/Windows/system32/SETUPAPI.dll
75190000-751BD000 r-xs 75191685 56BD:822F 281474976737016
/cygdrive/c/Windows/system32/WINTRUST.dll
759F0000-75AE1000 r-xs 759F16A1 56BD:822F 562949953459949
/cygdrive/c/Windows/system32/CRYPT32.dll
75B50000-75B62000 rw-p 75B5359E 56BD:822F 281474976735795
/cygdrive/c/Windows/system32/MSASN1.dll
75F40000-75F5E000 rw-p 75F4152E 56BD:822F 281474976736831
/cygdrive/c/Windows/system32/USERENV.dll
75F20000-75F34000 r-xs 75F21245 56BD:822F 281474976736524
/cygdrive/c/Windows/system32/Secur32.dll
76090000-760B9000 r--s 760912C0 56BD:822F 1125899906890070
/cygdrive/c/Windows/system32/imagehlp.dll
71FA0000-71FC1000 r--s 71FAA116 56BD:822F 281474976734559
/cygdrive/c/Windows/System32/audioses.dll
71F30000-71F96000 r--s 71F40396 56BD:822F 281474976734557
/cygdrive/c/Windows/System32/audioeng.dll
76080000-76087000 rw-p 7608154B 56BD:822F 281474976736337
/cygdrive/c/Windows/system32/PSAPI.DLL
72240000-72249000 r--s 72243700 56BD:822F 281474976735792
/cygdrive/c/Windows/system32/msacm32.drv
721A0000-721B5000 r--s 721A1349 56BD:822F 281474976735791
/cygdrive/c/Windows/system32/MSACM32.dll
72230000-72237000 r--s 72232BF7 56BD:822F 281474976735739
/cygdrive/c/Windows/system32/midimap.dll

*********************************************************
*********************************************************
*********************************************************
Sample program:

#include <windows.h>
#include <stdio.h>
#include <mmsystem.h>
#include <sys/types.h>
#include <unistd.h>

/* Handle to the WAVE In Device */
HWAVEIN                         WaveInHandle;

int main(int argc , char ** argv)
{
MMRESULT        err;
WAVEFORMATEX    waveFormat;

/* Initialize the WAVEFORMATEX */
waveFormat.wFormatTag = WAVE_FORMAT_PCM;
waveFormat.nChannels = 2;
waveFormat.nSamplesPerSec = 44100;
waveFormat.wBitsPerSample = 16;
waveFormat.nBlockAlign = waveFormat.nChannels *
        (waveFormat.wBitsPerSample/8);
waveFormat.nAvgBytesPerSec = waveFormat.nSamplesPerSec *
        waveFormat.nBlockAlign;
waveFormat.cbSize = 0;

int pid=0;
char cmd[100];

pid=getpid();
sprintf(cmd, "cat /proc/%d/maps", pid);
system(cmd);
printf("======================================\n\n\n");
Sleep(1000);

/* Open the default WAVE In Device */
err = waveInOpen(&WaveInHandle, 0, &waveFormat,
                0, 0, CALLBACK_NULL);

system(cmd);
printf("======================================\n\n\n");

printf("\n\nciao!!!%d\n\n", err);
Sleep(5000);
printf("\n\ngoodbye!!!\n\n");
Sleep(1000);

return 0;
}


On Mon, Mar 17, 2008 at 8:41 PM, Giovanni Maruzzelli
<gmaruzz DOT lists AT gmail DOT com> wrote:
> Thanks Dave, I'll do it tomorrow and post here the results.
>  Any other info that can be of interest?
>
>
>
>  On Mon, Mar 17, 2008 at 8:32 PM, Dave Korn <dave DOT korn AT artimi DOT com> wrote:
>  > Giovanni Maruzzelli wrote on 17 March 2008 19:25:
>  >
>  >
>  >  > I agree that SP1 probably has little to do.
>  >  >
>  >  > I have nothing on the machine, just bought it with Vista Premium
>  >  > preinstalled, disabled Defender, uninstalled Norton with the "Norton
>  >  > Uninstall Tool", installed Cygwin. No single application, utility,
>  >  > whatever.
>  >  >
>  >  > With the previous cygwin version waveInOpen was loading too much the
>  >  > CPU (80%), with the last one crash, with the snapshot runs perfect.
>  >
>  >   One thing that might help is if you could get a copy of /proc/<PID>/maps
>  >  during one of the test runs that goes wrong (might be hard to get for the
>  >  crashing case, should be plenty of time for the case when it's taking 80%
>  >  cpu), it might give us a clue about any interference from other applications
>  >  that may be injecting DLLs into cygwin processes.
>  >
>  >
>  >     cheers,
>  >       DaveK
>  >  --
>  >  Can't think of a witty .sigline today....

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019