|
From: Lars R. <lar...@gm...> - 2006-11-21 13:25:55
|
Olivier, Actually I don't know what is different on my system. I have npptools.dll, too. I don't know what it is for, but perhaps it isn't loaded on my system. Also it is the first time I heard, that it is necessary to rebase a dll. E.g. Most dlls used in Wireshark have the same base address. Usually the OS relocates the dll, if necessary. So this sounds like a bug of the OS to me, that is triggered somehow. I have a fully patched WinXP SP2 (german version), but I have also tried with a Win2k3 with SP1 (english) and some other Windows Versions. Lars Olivier Jacques schrieb: > Nikolay, > > thanks again. It worked! > I did the following: > cd /usr/bin > cp cygwin1.dll cygwin1.dll.new > rebase -d -b 0x59000000 -o 0x100000 cygwin1.dll.new > > > Then, exited cygwin, replaced cygwin1.dll by cygwin1.dll.new, > restarted Cygwin, re-started SIPp, and it works! > > So, for those who want to test it now, here is the windows installer: > http://sipp.sourceforge.net/snapshots/sipp-1.1rc7-tmp.win32-setup.exe > > As 3PCC is currently broken, we will have to fix it before rc7 (and > integrate the other fixes we got). > > Olivier. > > On 11/20/06, *Olivier Jacques* <oja...@gm... > <mailto:oja...@gm...>> wrote: > > Nikolay, > > thank you so much for this. I will see how if it will work for me > too. > Lars, I'm curious to know why you didn't experimented this. Did > you use Win XP SP2? Another version of Cygwin (mine is IPv6 patched). > > Olivier. > > > > > On 11/20/06, *Nikolay Pakulin* < np...@is... > <mailto:np...@is...>> wrote: > > Dear Oliver, > > > > In your mail on October 24 2006 you wrote: > > *Re: [Sipp-users] [patch] SIPp with pcap support on cygwin* > > Olivier Jacques > Tue, 24 Oct 2006 10:41:54 -0700 > > Lars Roland wrote: > > > I finally got some time to work on this. Patch is attached. > > > I don't have any IPv6 pcap files, to test with. also I did > not test on > > > any other platform than Cygwin. > > > > > > The following still applies: > > > > > > On my system I've copied the WinPcap developer package to > > > "C:\cygwin\lib\WpdPack". > > > > > > Additionally I had to remove or rename "pthread.h" in > > > "C:\cygwin\lib\WpdPack\Include", as it interfered with > pthread.h from > > > cygwin. > > > Perhaps someone who knows more about makefiles for GNU make > can solve > > > this issue in a better way. > > > > > > Regards, > > > Lars > > > > > Hello Lars, > > > > I can't seem to get it working on my cygwin. Compiling and > running SIPp > > without pcapplay works (with or without ossl). > > When I compile with pcapplay for Cygwin, the compile works but > SIPp > > crashes every time at startup. > > Here is what gdb gives for a simple "sipp -h" > > $ gdb --args sipp -h > > GNU gdb 6.5.50.20060706-cvs (cygwin-special) > > Copyright (C) 2006 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public > License, and you are > > welcome to change it and/or distribute copies of it under certain > > conditions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" > for details. > > This GDB was configured as "i686-pc-cygwin"... > > (gdb) run > > Starting program: /cygdrive/c/transfer/SIP/sipp.svn/sipp.exe -h > > Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/wpcap.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/ws2_32.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/msvcrt.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/ws2help.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/Packet.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/WanPacket.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/npptools.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/mfc42u.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/gdi32.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/user32.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/ole32.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/oleaut32.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/iphlpapi.dll > > Loaded symbols for /cygdrive/c/WINDOWS/system32/version.dll > > Loaded symbols for /usr/bin/cygcrypto-0.9.8.dll > > Loaded symbols for /usr/bin/cygwin1.dll > > Loaded symbols for /usr/bin/cygncurses-8.dll > > Loaded symbols for /usr/bin/cygssl-0.9.8.dll > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x007c6225 in init_console_handler () > > (gdb) > > > > It seems that init_console_handler is a Cygwin function - but > I was > > unable to find any info on that. > > > > Do you have any idea? > > > > In the mean time, I will try to do it on another PC I have. > > > > ----------------------------------------------------------------------- > > > > I ran across the same problem building Cygwin application with > pcap. Eventually I managed to track and solve the problem. I > don't know how but Windows creates a process with overlapping > DLLs. In my case (and, I believe, in yours too) shared > libraries /cygdrive/c/WINDOWS/system32/npptools.dll and > /usr/bin/cygwin1.dll overlap in memory. I had cygwin1.dll to > be loaded at the addresses from 61001000 to 610fb4a4, while > npptools.dll is loaded to addresses 610f1000 to 610fc5d5 – > last 42kb of cygwin1.dll got overwritten by npptools.dll. > > > > How to find the collision. > > 1. Start your application in GDB. > > 2. After SIGSEGV issue 'info shared' in GDB. The debugger > will print the list of DLLs mapped in the address space of the > process with their load addresses. > > > > Cygwin1.dll is relocatable. In order to avoid this collision > change the base address of cygwin1.dll to a safe value (say, > 59000000) using 'rebase' utility. > > > > For me this worked. > > > > I'm not subscribed to SIPp users list, please, post this hack. > > > > Best regards, > > Nikolay Pakulin. > > > > > -- > HP OpenCall Software > http://www.hp.com/go/opencall/ <http://www.hp.com/go/opencall/> > > > > > -- > HP OpenCall Software > http://www.hp.com/go/opencall/ |