Re: 64-bit Notepad2 crashes
On Fri, Dec 31, 2010 at 06:14:52PM -0700, James McKenzie wrote: > > set | grep LIBRARY > LD_LIBRARY_PATH=/Applications/Wine.app/Contents/Resources/Lib > > is what I get on my Mac (LD_LIBRARY_PATH has to be set due to the > UNIXness of Wine.) Really a properly linked elf binary shouldn't need LD_LIBRARY_PATH be set in order to find its libraries. LD_LIBRARY_PATH should only be used to override the default assignments. (Linux has a complete fubar here, and you have to do something obscure to get LD_LIBRARY_PATH to override the info in the elf image.) If you run 'objdump -p program' the RPATH entries show which which directories are searched. Additionally $ORIGIN can be used (in RPATH) entries to refer to the directory that contains the program binary. The RPATH entries typically need to be different for 32bit and 64bit binaries on a 64bit system. The library names are shown in the NEEDED entries (the value comes from the soname property of the library found when linking the program. This is usually just foo.so, but can contain directory names. David -- David Laight: da...@l8s.co.uk
Re: 64-bit Notepad2 crashes
On 12/31/10 6:19 PM, Dan Kegel wrote: 'set' is not a good way to check the environment, since it also shows shell variables that are not yet exported. The portable way to check the environment is 'env'. True. Let me check this. correction: env | grep LIBRARY James McKenzie
re: 64-bit Notepad2 crashes
'set' is not a good way to check the environment, since it also shows shell variables that are not yet exported. The portable way to check the environment is 'env'.
Re: 64-bit Notepad2 crashes
On 12/31/10 11:56 AM, Hin-Tak Leung wrote: Susan Cragin wrote: Does this 'path' exist in LD_LIBRARY_PATH or equivilent? Otherwise ld might not be able to 'find' it when starting the program. James McKenzie James... You've just exhausted my technical knowledge. How do I do / find that? Susan: For the BASH shell: Type in set and look for the LD_LIBRARY_PATH line. for the CSH/KSH shell: Type in env Look for the LD_LIBRARY_PATH line. Hopefully, /usr/local/lib is there. BTW, to make Wine work on a Mac, I have to add this line James McKenzie Typed "set" Did word search on "library." Nothing. for BASH, it should be export | grep LD_LIBRARY_PATH not "set". If you are setting the value, not searching for it. set | grep LIBRARY LD_LIBRARY_PATH=/Applications/Wine.app/Contents/Resources/Lib is what I get on my Mac (LD_LIBRARY_PATH has to be set due to the UNIXness of Wine.) James McKenzie
Re: 64-bit Notepad2 crashes
Susan Cragin wrote: Does this 'path' exist in LD_LIBRARY_PATH or equivilent? Otherwise ld might not be able to 'find' it when starting the program. James McKenzie James... You've just exhausted my technical knowledge. How do I do / find that? Susan: For the BASH shell: Type in set and look for the LD_LIBRARY_PATH line. for the CSH/KSH shell: Type in env Look for the LD_LIBRARY_PATH line. Hopefully, /usr/local/lib is there. BTW, to make Wine work on a Mac, I have to add this line James McKenzie Typed "set" Did word search on "library." Nothing. for BASH, it should be export | grep LD_LIBRARY_PATH not "set".
Re: 64-bit Notepad2 crashes
>>> Does this 'path' exist in LD_LIBRARY_PATH or equivilent? >>> >>> Otherwise ld might not be able to 'find' it when starting the program. >>> >>> James McKenzie >>> >> James... >> You've just exhausted my technical knowledge. How do I do / find that? >Susan: > >For the BASH shell: >Type in set and look for the LD_LIBRARY_PATH line. >for the CSH/KSH shell: >Type in env >Look for the LD_LIBRARY_PATH line. > >Hopefully, /usr/local/lib is there. > >BTW, to make Wine work on a Mac, I have to add this line > >James McKenzie Typed "set" Did word search on "library." Nothing.
Re: 64-bit Notepad2 crashes
IGNORE MY LAST POST. I'm away from home and don't have my glasses with me. >Wine build complete. >su...@ubuntu:~/wine$ wine checkinstall >wine: error while loading shared libraries: libwine.so.1: cannot open shared >object file: No such file or directory > > >
Re: 64-bit Notepad2 crashes
On Thu, Dec 30, 2010 at 07:22:31AM -0500, Susan Cragin wrote: > >> ELF7f3aa090b000-7f3aa0c3d000 Export > >> libwine.so.1 > >>if you've compiled wine yourself, it's strange that libwine.so doesn't > >>contain any dwarf information > >>maybe you're loading another instance of libwine? > >>A+ > >> > >>-- > >>Eric Pouech > > > >I did a search of the file system. > > > >Under /usr/local/lib64 I have > >libwine.so (link) > >libwine.so.1 (link) > >libwine.so.1.0 > >wine [folder} >>> >>>Then I ran ldconfig on the 64-bit, and then tried wine notepad. >>>I got the following error: >>>wine: error while loading shared libraries: libwine.so.1: cannot open shared >>>object file: No such file or directory >> >>Does this 'path' exist in LD_LIBRARY_PATH or equivilent? >> >>Otherwise ld might not be able to 'find' it when starting the program. >> >>James McKenzie >> >su...@ubuntu:~$ ldd /usr/local/bin/wine > linux-gate.so.1 => (0xf77c6000) > libwine.so.1 => not found > libpthread.so.0 => /lib32/libpthread.so.0 (0xf778c000) > libc.so.6 => /lib32/libc.so.6 (0xf762f000) > /lib/ld-linux.so.2 (0xf77c7000) > >Eureka, I think. > Just compiled today's git. Could compile but not install. Here's the message. Wine build complete. su...@ubuntu:~/wine$ wine checkinstall wine: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory
Re: 64-bit Notepad2 crashes
-Original Message- >From: James Mckenzie >Sent: Dec 30, 2010 10:38 AM >To: Susan Cragin , Marcus Meissner > >Cc: Wine Developers , Eric Pouech > >Subject: Re: 64-bit Notepad2 crashes > >Susan Cragin wrote: >>Sent: Dec 30, 2010 8:30 AM >>To: Marcus Meissner >>Cc: Wine Developers , Eric Pouech >> >>Subject: Re: 64-bit Notepad2 crashes >> >>>On Thu, Dec 30, 2010 at 07:22:31AM -0500, Susan Cragin wrote: >>>> >> ELF 7f3aa090b000-7f3aa0c3d000 Export >>>> >> libwine.so.1 >>>> >>if you've compiled wine yourself, it's strange that libwine.so doesn't >>>> >>contain any dwarf information >>>> >>maybe you're loading another instance of libwine? >>>> >>A+ >>>> >> >>>> >>-- >>>> >>Eric Pouech >>>> > >>>> >I did a search of the file system. >>>> > >>>> >Under /usr/local/lib64 I have >>>> >libwine.so (link) >>>> >libwine.so.1 (link) >>>> >libwine.so.1.0 >>>> >wine [folder} >> >>Then I ran ldconfig on the 64-bit, and then tried wine notepad. >>I got the following error: >>wine: error while loading shared libraries: libwine.so.1: cannot open shared >>object file: No such file or directory > >Does this 'path' exist in LD_LIBRARY_PATH or equivilent? > >Otherwise ld might not be able to 'find' it when starting the program. > >James McKenzie > su...@ubuntu:~$ ldd /usr/local/bin/wine linux-gate.so.1 => (0xf77c6000) libwine.so.1 => not found libpthread.so.0 => /lib32/libpthread.so.0 (0xf778c000) libc.so.6 => /lib32/libc.so.6 (0xf762f000) /lib/ld-linux.so.2 (0xf77c7000) Eureka, I think.
Re: 64-bit Notepad2 crashes
Susan Cragin wrote: >Sent: Dec 30, 2010 8:30 AM >To: Marcus Meissner >Cc: Wine Developers , Eric Pouech > >Subject: Re: 64-bit Notepad2 crashes > >>On Thu, Dec 30, 2010 at 07:22:31AM -0500, Susan Cragin wrote: >>> >> ELF 7f3aa090b000-7f3aa0c3d000 Export >>> >> libwine.so.1 >>> >>if you've compiled wine yourself, it's strange that libwine.so doesn't >>> >>contain any dwarf information >>> >>maybe you're loading another instance of libwine? >>> >>A+ >>> >> >>> >>-- >>> >>Eric Pouech >>> > >>> >I did a search of the file system. >>> > >>> >Under /usr/local/lib64 I have >>> >libwine.so (link) >>> >libwine.so.1 (link) >>> >libwine.so.1.0 >>> >wine [folder} > >Then I ran ldconfig on the 64-bit, and then tried wine notepad. >I got the following error: >wine: error while loading shared libraries: libwine.so.1: cannot open shared >object file: No such file or directory Does this 'path' exist in LD_LIBRARY_PATH or equivilent? Otherwise ld might not be able to 'find' it when starting the program. James McKenzie
Re: 64-bit Notepad2 crashes
>On Thu, Dec 30, 2010 at 07:22:31AM -0500, Susan Cragin wrote: >> >> ELF 7f3aa090b000-7f3aa0c3d000 Export >> >> libwine.so.1 >> >>if you've compiled wine yourself, it's strange that libwine.so doesn't >> >>contain any dwarf information >> >>maybe you're loading another instance of libwine? >> >>A+ >> >> >> >>-- >> >>Eric Pouech >> > >> >I did a search of the file system. >> > >> >Under /usr/local/lib64 I have >> >libwine.so (link) >> >libwine.so.1 (link) >> >libwine.so.1.0 >> >wine [folder} >> > >> >Under /usr/local/lib64/wine I have >> >libwinecrt0.a >> >libwined3d.def >> >> I purged wine yesterday and hand-removed all wine files I could find, >> including my repository and prefix. >> And I downloaded yesterday's git. >> And now I'm getting a different error. >> wine: error while loading shared libraries: libwine.so.1: cannot open shared >> object file: No such file or directory >> This error is for all wine commands, including wine --version >> >> I have the same files under /usr/local/lib64 >> but under user/local/lib64/wine I have lots of so's and def's. >> ?? > >Is /etc/ld.so.conf listing /usr/local/lib64 ? >Did you try running "ldconfig" once? > >Ciao, Marcus No, it is not listing it. It lists only: include /etc/ld.so.conf.d/*.conf Then I checked ld.so.conf.d, which is a directory containing the following conf files: GL lib32asound2 libasound2 libc x86_64-linux-gnu So, I compared those files to those generated with my 32-bit partition. The last file is replaced by the following: i686-linux-gnu.conf and i-486-linux-gnu.conf Then I ran ldconfig on the 64-bit, and then tried wine notepad. I got the following error: wine: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory ?Susan
Re: 64-bit Notepad2 crashes
On Thu, Dec 30, 2010 at 07:22:31AM -0500, Susan Cragin wrote: > >> ELF7f3aa090b000-7f3aa0c3d000 Export > >> libwine.so.1 > >>if you've compiled wine yourself, it's strange that libwine.so doesn't > >>contain any dwarf information > >>maybe you're loading another instance of libwine? > >>A+ > >> > >>-- > >>Eric Pouech > > > >I did a search of the file system. > > > >Under /usr/local/lib64 I have > >libwine.so (link) > >libwine.so.1 (link) > >libwine.so.1.0 > >wine [folder} > > > >Under /usr/local/lib64/wine I have > >libwinecrt0.a > >libwined3d.def > > I purged wine yesterday and hand-removed all wine files I could find, > including my repository and prefix. > And I downloaded yesterday's git. > And now I'm getting a different error. > wine: error while loading shared libraries: libwine.so.1: cannot open shared > object file: No such file or directory > This error is for all wine commands, including wine --version > > I have the same files under /usr/local/lib64 > but under user/local/lib64/wine I have lots of so's and def's. > ?? Is /etc/ld.so.conf listing /usr/local/lib64 ? Did you try running "ldconfig" once? Ciao, Marcus
Re: 64-bit Notepad2 crashes
>> ELF 7f3aa090b000-7f3aa0c3d000 Export libwine.so.1 >>if you've compiled wine yourself, it's strange that libwine.so doesn't >>contain any dwarf information >>maybe you're loading another instance of libwine? >>A+ >> >>-- >>Eric Pouech > >I did a search of the file system. > >Under /usr/local/lib64 I have >libwine.so (link) >libwine.so.1 (link) >libwine.so.1.0 >wine [folder} > >Under /usr/local/lib64/wine I have >libwinecrt0.a >libwined3d.def I purged wine yesterday and hand-removed all wine files I could find, including my repository and prefix. And I downloaded yesterday's git. And now I'm getting a different error. wine: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory This error is for all wine commands, including wine --version I have the same files under /usr/local/lib64 but under user/local/lib64/wine I have lots of so's and def's. ??
Re: 64-bit Notepad2 crashes
>> ELF 7f3aa090b000-7f3aa0c3d000 Export libwine.so.1 >if you've compiled wine yourself, it's strange that libwine.so doesn't >contain any dwarf information >maybe you're loading another instance of libwine? >A+ > >-- >Eric Pouech I did a search of the file system. Under /usr/local/lib64 I have libwine.so (link) libwine.so.1 (link) libwine.so.1.0 wine [folder} Under /usr/local/lib64/wine I have libwinecrt0.a libwined3d.def Do you want copies of so.1.0?
Re: 64-bit Notepad2 crashes
ELF 7f3aa090b000-7f3aa0c3d000 Export libwine.so.1 if you've compiled wine yourself, it's strange that libwine.so doesn't contain any dwarf information maybe you're loading another instance of libwine? A+ -- Eric Pouech "The problem with designing something completely foolproof is to underestimate the ingenuity of a complete idiot." (Douglas Adams)
Re: 64-bit Notepad2 crashes
>> >On 29 December 2010 04:47, Susan Cragin wrote: >> >> Stack dump: >> >> 0x0022b470: >> >> 0x0022b480: >> >> 0x0022b490: >> >> 0x0022b4a0: >> >> 0x0022b4b0: >> >[snip] >> >> Backtrace: >> >> =>0 0x7f3a9dd5cafb PathIsUNCW+0x7b() in shlwapi (0x0022b860) >> > >> >The stack has been blitzed? Or is this local variables (even though >> >PathIsUNCW doesn't have any)? It's hard to know what's going on >> >without a proper stack trace. PathIsUNCW is such a small function, the >> >problem is almost certainly further up the call chain. >> >> Well, anybody up for seeing a couple of thousand lines of WINEDEBUG-+all, or >> should I run relay only? >> >> There used to be a place to post log files so people could look at them... >> but I've forgotten where it is. > >I was not able to reproduce this here on openSUSE 11.3, >using Notepad2-4.1.24-x86-64.zip from http://www.flos-freeware.ch/notepad2.html > >Is this the one you used? > >The sourcecode shows it calling PathIsUNCW just with a stackbuffer in >src/Dialog.c, which should be safe. > >Ciao, Marcus That is the one I used. To be clear about what I did, that file on the download site is an installation exe. I opened the compressed file and just used the program's exe and ini files by copying them to my home directory. I have compiled three logs, all, seh & relay, and have compressed them, and a copy of the program and ini file I used, and have downloaded all to the following. https://www.yousendit.com/download/RlRxT20zT2JYSHhjR0E9PQ I did not configure any special compiler optimizations. I am running Ubuntu's Natty 64-bit Studio with linux 2.6.37-11-generic.
Re: 64-bit Notepad2 crashes
On Tue, Dec 28, 2010 at 07:28:16PM -0500, Susan Cragin wrote: > > > > -Original Message- > >From: Austin Lund > >Sent: Dec 28, 2010 6:14 PM > >To: Susan Cragin > >Cc: Wine Developers > >Subject: Re: 64-bit Notepad2 crashes > > > >On 29 December 2010 04:47, Susan Cragin wrote: > >> Stack dump: > >> 0x0022b470: > >> 0x0022b480: > >> 0x0022b490: > >> 0x0022b4a0: > >> 0x0022b4b0: > >[snip] > >> Backtrace: > >> =>0 0x7f3a9dd5cafb PathIsUNCW+0x7b() in shlwapi (0x0022b860) > > > >The stack has been blitzed? Or is this local variables (even though > >PathIsUNCW doesn't have any)? It's hard to know what's going on > >without a proper stack trace. PathIsUNCW is such a small function, the > >problem is almost certainly further up the call chain. > > Well, anybody up for seeing a couple of thousand lines of WINEDEBUG-+all, or > should I run relay only? > > There used to be a place to post log files so people could look at them... > but I've forgotten where it is. I was not able to reproduce this here on openSUSE 11.3, using Notepad2-4.1.24-x86-64.zip from http://www.flos-freeware.ch/notepad2.html Is this the one you used? The sourcecode shows it calling PathIsUNCW just with a stackbuffer in src/Dialog.c, which should be safe. Ciao, Marcus
Re: 64-bit Notepad2 crashes
-Original Message- >From: Austin Lund >Sent: Dec 28, 2010 6:14 PM >To: Susan Cragin >Cc: Wine Developers >Subject: Re: 64-bit Notepad2 crashes > >On 29 December 2010 04:47, Susan Cragin wrote: >> Stack dump: >> 0x0022b470: >> 0x0022b480: >> 0x0022b490: >> 0x0022b4a0: >> 0x0022b4b0: >[snip] >> Backtrace: >> =>0 0x7f3a9dd5cafb PathIsUNCW+0x7b() in shlwapi (0x0022b860) > >The stack has been blitzed? Or is this local variables (even though >PathIsUNCW doesn't have any)? It's hard to know what's going on >without a proper stack trace. PathIsUNCW is such a small function, the >problem is almost certainly further up the call chain. Well, anybody up for seeing a couple of thousand lines of WINEDEBUG-+all, or should I run relay only? There used to be a place to post log files so people could look at them... but I've forgotten where it is.
Re: 64-bit Notepad2 crashes
On 29 December 2010 04:47, Susan Cragin wrote: > Stack dump: > 0x0022b470: > 0x0022b480: > 0x0022b490: > 0x0022b4a0: > 0x0022b4b0: [snip] > Backtrace: > =>0 0x7f3a9dd5cafb PathIsUNCW+0x7b() in shlwapi (0x0022b860) The stack has been blitzed? Or is this local variables (even though PathIsUNCW doesn't have any)? It's hard to know what's going on without a proper stack trace. PathIsUNCW is such a small function, the problem is almost certainly further up the call chain.