Can't compile Wine under Windows - cygwin

I need to compile wine dlls under windows for debug purposes.
I installed cygwin, downloaded wine and run "./configure", then following error appears. I am completely new to Linux environment, so I can even understand what it does mean.
./configure: fork: retry: Resource temporarily unavailable
261414951 [main] sh 1368 fhandler_dev_zero::fixup_mmap_after_fork: requested 0x7E6E0000 != 0x0 mem alloc base 0x0, state 0x10000, size 524288, Win32 error 487
261415207 [main] sh 1368 C:\cygwin\bin\sh.exe: *** fatal error in forked process - recreate_mmaps_after_fork_failed
261415593 [main] sh 1368 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

As per Cygwin wiki, errors related to fork() are usually solved by rebasing.
Stop all Cygwin services; open a command prompt & issue:
\cygwin\bin\dash -c '/usr/bin/rebaseall'

Related

Xenomai 3.1 mercury prologue failed for thread running official demo

Hello I have the following problem running a Xenomai demo: "prologue failed for thread" EINVAL
debian:~/xenomai_mercury_lib/demo$ sudo ./alchemy/altency
0"000.665| WARNING: [main] prologue failed for thread <anonymous>, EINVAL
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
0"000.997| WARNING: [main] prologue failed for thread alt-display-2077, EINVAL
altency: failed to create display task, code -22
What I have:
debian 10.10.0-amd64, installed inside a VirtualBox
xenomai 3.1 mercury installed and built for 32bit target
xenomai configure:
../xenomai-3.1/configure --enable-lores-clock --with-core=mercury --enable-smp --enable-pshared CFLAGS="-m32 -O2" LDFLAGS="-m32"
Maybe something is missing inside the underlying OS? Something to install?
Do you have some ideas?
Thanks a lot.

How to avoid died waiting for dll loading, errno 11 - Win10

I am installing Babun(http://babun.github.io/) to run tmux on Windows 10.
unfortunately, when I am updating Cygwin through update.bat file from the Babun installed folder I am getting below whole message.
While going through some other posts, people are referring to Git, etc , which I do not have anyway.
I had this working on my Win7 laptop, but in office we are forced to switch to win10.
3 [main] -zsh 11180 fork: child 13276 - died waiting for dll loading, errno 11
/usr/local/etc/babun.start:4: fork failed: resource temporarily unavailable
/home/jchadala/.oh-my-zsh/oh-my-zsh.sh:3: command not found: env
/home/jchadala/.oh-my-zsh/lib/theme-and-appearance.zsh:9: command not found: uname
/home/jchadala/.oh-my-zsh/lib/theme-and-appearance.zsh:13: command not found: uname
4439101 [main] -zsh 11180 fork: child 15760 - died waiting for dll loading, errno 11
/home/jchadala/.oh-my-zsh/lib/theme-and-appearance.zsh:18: fork failed: resource temporarily unavailable
compdump:136: command not found: mv
$fg[blue]{ dist } \
$fg[green]$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )$reset_color \
$fg[red]ยป$reset_color $fg[blue]/cygdrive/c/Users/jchadala/.babun/dist$reset_color ${return_code}
Also if you have any other suggestions to use tmux in windows also is helpful.

PHP exec(myexe) fails in PHP App, but not CLI. Fails Running Under User "apache"

I have a custom program (e.g. myexe) being executed by a web app using PHP's exec() function. It does not fail when run using the PHP CLI nor does myexe fail when run from the command line with me as a user. I have built myexe so that there are no memory issues when profiled using valgrind. myexe is about 26MB in size.
To simplify the situation, I have run myexe on the command line under the user 'apache' and reproduced the failure.
su -s /bin/sh apache -c "/usr/local/bin/myexe parm1 parm2..."
==> Segmentation fault (core dumped)
BUT when I change the user to myself and run the same command above, it works.
su -s /bin/sh mike -c "/usr/local/bin/myexe parm1 parm2..."
==> WORKS
Here's the error from the system log file:
Jul 9 18:26:15 DEVSTN-1 kernel: myexe[27352]: segfault at 7fffa2bf9ff8 ip 0000000000410324 sp 00007fffa2bfa000 error 6 in myexe[400000+5ae000]
Jul 9 18:26:16 DEVSTN-1 abrt[27353]: Saved core dump of pid 27352 (/usr/local/bin/myexe) to /var/spool/abrt/ccpp-2015-07-09-18:26:15-27352 (13631488 bytes)
Jul 9 18:26:16 DEVSTN-1 abrtd: Directory 'ccpp-2015-07-09-18:26:15-27352' creation detected
Jul 9 18:26:17 DEVSTN-1 abrtd: Executable '/usr/local/bin/myexe' doesn't belong to any package and ProcessUnpackaged is set to 'no'
Jul 9 18:26:17 DEVSTN-1 abrtd: 'post-create' on '/var/spool/abrt/ccpp-2015-07-09-18:26:15-27352' exited with 1
Jul 9 18:26:17 DEVSTN-1 abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2015-07-09-18:26:15-27352'
My configuration:
CentOS6 2.6.32-504.23.4.el6.x86_64
Apache/2.2.15 (CentOS)
PHP Version 5.3.3
Am I correct with assuming that PHP has nothing to do with the error?
What should I do next?
Correct; PHP has nothing to do with the error. This is a segmentation fault caused by invalid memory access (either overflowing a buffer, or accessing already-freed memory) in myexe. It seems to have saved a core dump to /var/spool/abrt/ccpp-2015-07-09-18:26:15-27352, so, try debugging with GDB:
gdb /usr/local/bin/myexe -c /var/spool/abrt/ccpp-2015-07-09-18:26:15-27352
(gdb) bt
And try to see where the executable is failing. To get useful output, it will need to be compiled with debugging symbols. If it doesn't fail running as root or a different user, or running in an interactive terminal, I'd look for bugs that could be triggered by being unable to open a file, unable to read an expected environment variable, etc. to help isolate your problem.
Running the executable under strace might help figure out what's going on as well.
Found the problem by entering a bash shell user user apache and running the program using gdb.
Turns out myexe was trying to create a directory under the user's home dir (/home/apache) which doesn't exist.
What helped me was knowing how to start a shell under a different user and using gdb.
Here's the command to start a shell under another user (apache):
su -s /bin/bash apache

Internal error occured during launch of waveform

I am running redhawk 1.9 and am trying to lauch a waveform. I get the following error: An internal error occurred during: "Launching FM_Radio_Example".
org.jacorb.orb.ORB cannot be cast to com.sun.corba.se.spi.orb.ORB
The error panel shows the following:
java.lang.ClassCastException: org.jacorb.orb.ORB cannot be cast to com.sun.corba.se.spi.orb.ORB
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2017)
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2054)
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2222)
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2234)
at com.sun.corba.se.impl.corba.AnyImpl.write_value(AnyImpl.java:608)
at org.jacorb.orb.CDROutputStream.write_any(CDROutputStream.java:743)
at CF.DataTypeHelper.write(DataTypeHelper.java:79)
at CF.PropertiesHelper.write(PropertiesHelper.java:61)
at CF._ResourceStub.configure(_ResourceStub.java:189)
at gov.redhawk.model.sca.impl.ScaAbstractComponentImpl.configure(ScaAbstractComponentImpl.java:680)
at gov.redhawk.ide.debug.internal.LocalApplicationFactory.configureComponent(LocalApplicationFactory.java:297)
at gov.redhawk.ide.debug.internal.LocalApplicationFactory.configureComponents(LocalApplicationFactory.java:199)
at gov.redhawk.ide.debug.internal.LocalApplicationFactory.create(LocalApplicationFactory.java:158)
at gov.redhawk.ide.debug.internal.ui.LocalWaveformLaunchDelegate.launch(LocalWaveformLaunchDelegate.java:98)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
at gov.redhawk.ide.debug.ui.LaunchUtil$1.run(LaunchUtil.java:213)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I have a device mananger node that when launched I get the following error. It may be related but I am not sure. The library in question is at /root/src/redhawk-src-1.9.0/redhawk/src/base/framework/.libs. I set the environment variable PKG_CONFIG_PATH to this path but that did not help.
INFO:DeviceManager - Starting Device Manager with /nodes/SI9138_Node/DeviceManager.dcd.xml
INFO:DeviceManager_impl - Connecting to Domain Manager REDHAWK_root/REDHAWK_root
INFO:DeviceManager_impl - Child process SI9138_1 (pid 24915) has exited with status 127
/var/redhawk/sdr/dev/devices/SI9138/cpp/SI9138: error while loading shared libraries: libossieidl.so.3: cannot open shared object file: No such file or directory
WARN:DeviceManager_impl - skipping exec param with null value
INFO:DeviceManager - Starting ORB!
INFO:SI9138_Node:GPP_1:Registering Device
INFO:DeviceManager_impl - Registering device GPP_1 on Device Manager SI9138_Node
INFO:DeviceManager_impl - Initializing device GPP_1 on Device Manager SI9138_Node
INFO:DeviceManager_impl - Registering device GPP_1 on Domain Manager
Here is the eclipse/java information:
eclipse.buildId=1.9.0.R201309261648
java.version=1.6.0_30
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
The latest version of openjdk has caused some problems with jacorb. Below are two ways to get around the problem:
Downgrade openjdk and openjdk-devel
$ sudo yum downgrade java-1.6.0-openjdk-devel java-1.6.0-openjdk
Install REDHAWK 1.8.7+ or REDHAWK 1.10+ and launch the IDE at /usr/local/redhawk/ide/1.10/eclipse.

Cygwin shell fatal error - prefork: couldn't create pipe process

When I start the Cygwin shell in Windows XP, I get a stream of messages like this:
0 [main] -bash 2920 C:\cygwin\bin\bash.exe: *** fatal error - prefork: couldn't create pipe process trackerWin32 error 161
I get yet more messages whenever I run scripts and commands. The shell appears to work underneath the flood of errors, but it is very annoying.
Is there any way to find out what is causing this or to fix it?

Resources