public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* emacs won't run
@ 2013-12-04  9:20 Andrea Venturoli
  2013-12-04 10:56 ` marco atzeri
  2013-12-04 15:50 ` David Karr
  0 siblings, 2 replies; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-04  9:20 UTC (permalink / raw)
  To: cygwin

Hello.

Since a bit, emacs won't start under X: no error, no message, nothing. 
It just starts and exits after a while without doing anything.

I can run "emacs -nw" fine.

How can I diagnose this? Is there any log I can look into? Any utility?

  bye & Thanks
	av.

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-04  9:20 emacs won't run Andrea Venturoli
@ 2013-12-04 10:56 ` marco atzeri
  2013-12-04 19:21   ` Christopher Faylor
  2013-12-05 12:50   ` Andrea Venturoli
  2013-12-04 15:50 ` David Karr
  1 sibling, 2 replies; 27+ messages in thread
From: marco atzeri @ 2013-12-04 10:56 UTC (permalink / raw)
  To: cygwin

Il 12/4/2013 10:20 AM, Andrea Venturoli ha scritto:
> Hello.
>
> Since a bit, emacs won't start under X: no error, no message, nothing.
> It just starts and exits after a while without doing anything.
>
> I can run "emacs -nw" fine.
>
> How can I diagnose this? Is there any log I can look into? Any utility?
>
>   bye & Thanks
>      av.
>

use strace.

Regards
Marco


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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-04  9:20 emacs won't run Andrea Venturoli
  2013-12-04 10:56 ` marco atzeri
@ 2013-12-04 15:50 ` David Karr
  2013-12-05 12:47   ` Andrea Venturoli
  1 sibling, 1 reply; 27+ messages in thread
From: David Karr @ 2013-12-04 15:50 UTC (permalink / raw)
  To: cygwin

Are you running it from the desktop from "run"?  I discovered the same
thing.  One workaround that worked for me was to open a rxvt window
and then run emacs from that. However, an even better workaround was
simply using the "w32" version and bypassing X entirely. When I
changed my "run" shortcut to run "emacs-w32" instead, it works fine.

On Wed, Dec 4, 2013 at 1:20 AM, Andrea Venturoli <ml@netfence.it> wrote:
> Hello.
>
> Since a bit, emacs won't start under X: no error, no message, nothing. It
> just starts and exits after a while without doing anything.
>
> I can run "emacs -nw" fine.
>
> How can I diagnose this? Is there any log I can look into? Any utility?
>
>  bye & Thanks
>         av.
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-04 10:56 ` marco atzeri
@ 2013-12-04 19:21   ` Christopher Faylor
  2013-12-05  5:53     ` marco atzeri
  2013-12-05 12:50   ` Andrea Venturoli
  1 sibling, 1 reply; 27+ messages in thread
From: Christopher Faylor @ 2013-12-04 19:21 UTC (permalink / raw)
  To: cygwin

On Wed, Dec 04, 2013 at 11:56:11AM +0100, marco atzeri wrote:
>Il 12/4/2013 10:20 AM, Andrea Venturoli ha scritto:
>> Hello.
>>
>> Since a bit, emacs won't start under X: no error, no message, nothing.
>> It just starts and exits after a while without doing anything.
>>
>> I can run "emacs -nw" fine.
>>
>> How can I diagnose this? Is there any log I can look into? Any utility?
>>
>>   bye & Thanks
>>      av.
>>
>
>use strace.

Wouldn't "cygcheck /usr/bin/emacs" be a better first step?  It sounds like
it could be a missing DLL.

cgf

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-04 19:21   ` Christopher Faylor
@ 2013-12-05  5:53     ` marco atzeri
  0 siblings, 0 replies; 27+ messages in thread
From: marco atzeri @ 2013-12-05  5:53 UTC (permalink / raw)
  To: cygwin

Il 12/4/2013 8:21 PM, Christopher Faylor ha scritto:
> On Wed, Dec 04, 2013 at 11:56:11AM +0100, marco atzeri wrote:
>> Il 12/4/2013 10:20 AM, Andrea Venturoli ha scritto:
>>> Hello.
>>>
>>> Since a bit, emacs won't start under X: no error, no message, nothing.
>>> It just starts and exits after a while without doing anything.
>>>
>>> I can run "emacs -nw" fine.
>>>
>>> How can I diagnose this? Is there any log I can look into? Any utility?
>>>
>>>    bye & Thanks
>>>       av.
>>>
>>
>> use strace.
>
> Wouldn't "cygcheck /usr/bin/emacs" be a better first step?  It sounds like
> it could be a missing DLL.

likely it is a missing/wrong DLL, but he mentioned that
"emacs -nw" is working, so should be not a static one and
cygcheck could miss the issue.

>
> cgf

Marco


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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-04 15:50 ` David Karr
@ 2013-12-05 12:47   ` Andrea Venturoli
  0 siblings, 0 replies; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-05 12:47 UTC (permalink / raw)
  To: cygwin

On 12/04/13 16:50, David Karr wrote:
> Are you running it from the desktop from "run"?  I discovered the same
> thing.  One workaround that worked for me was to open a rxvt window
> and then run emacs from that.

I tried from xterm or "Cygwin Terminal".



> However, an even better workaround was
> simply using the "w32" version and bypassing X entirely.

I know, but this is not the exactly the same.

  bye & Thnanks
	av.

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-04 10:56 ` marco atzeri
  2013-12-04 19:21   ` Christopher Faylor
@ 2013-12-05 12:50   ` Andrea Venturoli
  2013-12-05 14:40     ` marco atzeri
  2013-12-05 15:02     ` Achim Gratz
  1 sibling, 2 replies; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-05 12:50 UTC (permalink / raw)
  To: cygwin

On 12/04/13 11:56, marco atzeri wrote:
> Il 12/4/2013 10:20 AM, Andrea Venturoli ha scritto:
>> Hello.
>>
>> Since a bit, emacs won't start under X: no error, no message, nothing.
>> It just starts and exits after a while without doing anything.
>>
>> I can run "emacs -nw" fine.
>>
>> How can I diagnose this? Is there any log I can look into? Any utility?
>>
>>   bye & Thanks
>>      av.
>>
>
> use strace.

Thanks.
Forgive my noobiness, but...

 > strace emacs
 > strace.exe error creating process emacs, (error 2)

Of course, emacs is a shell script.

So I run "strace emacs-x11": is this ok?



Running emacs-x11 by itself I get one of two behaviours:
a) either it hogs the CPU for some seconds, then quits with no effect at 
all;
b) or it hogs the CPU for a while, then I'll get "Memory exhausted--use 
M-x save-some-buffers then exit and restart Emacs".

I still can't grasp what makes the difference.



Running it through strace, however, it never exits (still doing nothing 
appreciable); it is also quite hard to kill.



In the end I got a trace file (which is over 7MB!), but it's nothing I 
can interpret.
What should I do?
Anything I should look for?
Any way to make some sense out of this?
Should I upload it somewhere for someone who might be interested in 
seeing it?

  bye & Thanks
	av.

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-05 12:50   ` Andrea Venturoli
@ 2013-12-05 14:40     ` marco atzeri
  2013-12-06 13:38       ` Andrea Venturoli
  2013-12-05 15:02     ` Achim Gratz
  1 sibling, 1 reply; 27+ messages in thread
From: marco atzeri @ 2013-12-05 14:40 UTC (permalink / raw)
  To: cygwin

Il 12/5/2013 1:50 PM, Andrea Venturoli ha scritto:
> On 12/04/13 11:56, marco atzeri wrote:
>> Il 12/4/2013 10:20 AM, Andrea Venturoli ha scritto:
>>> Hello.
>>>
>>> Since a bit, emacs won't start under X: no error, no message, nothing.
>>> It just starts and exits after a while without doing anything.
>>>
>>> I can run "emacs -nw" fine.
>>>
>>> How can I diagnose this? Is there any log I can look into? Any utility?
>>>
>>>   bye & Thanks
>>>      av.
>>>
>>
>> use strace.
>
> Thanks.
> Forgive my noobiness, but...
>
>  > strace emacs
>  > strace.exe error creating process emacs, (error 2)
>
> Of course, emacs is a shell script.
>
> So I run "strace emacs-x11": is this ok?

should be.

>
> Running emacs-x11 by itself I get one of two behaviours:
> a) either it hogs the CPU for some seconds, then quits with no effect at
> all;
> b) or it hogs the CPU for a while, then I'll get "Memory exhausted--use
> M-x save-some-buffers then exit and restart Emacs".
>
> I still can't grasp what makes the difference.
>
>
>
> Running it through strace, however, it never exits (still doing nothing
> appreciable); it is also quite hard to kill.
>
>
>
> In the end I got a trace file (which is over 7MB!), but it's nothing I
> can interpret.
> What should I do?
> Anything I should look for?

any seriuos error ;-)

> Any way to make some sense out of this?
> Should I upload it somewhere for someone who might be interested in
> seeing it?

see here
> Problem reports:       http://cygwin.com/problems.html
and follow the "cygcheck -s -v -r > cygcheck.out" point

additonal you can upload the trace file somewhere, so someone could take 
a look


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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-05 12:50   ` Andrea Venturoli
  2013-12-05 14:40     ` marco atzeri
@ 2013-12-05 15:02     ` Achim Gratz
  2013-12-06 13:25       ` Andrea Venturoli
  1 sibling, 1 reply; 27+ messages in thread
From: Achim Gratz @ 2013-12-05 15:02 UTC (permalink / raw)
  To: cygwin

Andrea Venturoli <ml <at> netfence.it> writes:
> Of course, emacs is a shell script.

Of course it should be a symlink, pointing to emacs-X11 on a standard
installation.  Did you read /usr/share/doc/emacs/README.Cygwin?  Is the
DISPLAY environment variable set correctly?  Does Emacs "run" when you start
it as "emacs-X11 -Q"?


Regards,
Achim.




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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Install Bash 4.2 for Cygwin
@ 2013-12-05 20:10           ` Javier Murillo Márquez
  2013-12-06 15:02             ` Peter Rosin
  0 siblings, 1 reply; 27+ messages in thread
From: Javier Murillo Márquez @ 2013-12-05 20:10 UTC (permalink / raw)
  To: cygwin

Hello!!

Is possible install bash 4.2 on cygwin? Is there some patch or update for it?

Thanks

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-05 15:02     ` Achim Gratz
@ 2013-12-06 13:25       ` Andrea Venturoli
  2013-12-06 16:26         ` Ken Brown
  0 siblings, 1 reply; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-06 13:25 UTC (permalink / raw)
  To: cygwin

On 12/05/13 16:01, Achim Gratz wrote:
> Andrea Venturoli <ml <at> netfence.it> writes:
>> Of course, emacs is a shell script.
>
> Of course it should be a symlink, pointing to emacs-X11 on a standard
> installation.

Right.
It's a symlink to a symlink:

> $ which emacs
> /usr/bin/emacs
> $ ls -l /usr/bin/emacs
> lrwxrwxrwx 1 andrea mkgroup 23 11 set 12.22 /usr/bin/emacs -> /etc/alternatives/emacs
> $ ls -l /etc/alternatives/emacs
> lrwxrwxrwx 1 andrea mkgroup 22 11 set 12.22 /etc/alternatives/emacs -> /usr/bin/emacs-X11.exe

Then I would have expected strace to accept it, but it doesn't matter 
really.



> Did you read /usr/share/doc/emacs/README.Cygwin?

Now yes, thanks.



> Is the DISPLAY environment variable set correctly?

I think so.

$ env|grep DISPLAY
DISPLAY=:0.0



> Does Emacs "run" when you start it as "emacs-X11 -Q"?

No luck.
It either hangs, hogging the CPU, or quits without doing anything.



  bye & Thanks
	av.

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-05 14:40     ` marco atzeri
@ 2013-12-06 13:38       ` Andrea Venturoli
  2013-12-06 13:51         ` Max Polk
                           ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-06 13:38 UTC (permalink / raw)
  To: cygwin

On 12/05/13 15:40, marco atzeri wrote:

>> In the end I got a trace file (which is over 7MB!), but it's nothing I
>> can interpret.
>> What should I do?
>> Anything I should look for?
>
> any seriuos error ;-)

Wish I could discern... :-)



> see here
>> Problem reports:       http://cygwin.com/problems.html
> and follow the "cygcheck -s -v -r > cygcheck.out" point
>
> additonal you can upload the trace file somewhere, so someone could take
> a look

Both files are here:
http://netfence.it/download/cyg_emacs.zip.



Thanks to anyone who helped me so far or will look into this in the future.

  bye
	av.

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 13:38       ` Andrea Venturoli
@ 2013-12-06 13:51         ` Max Polk
  2013-12-06 14:02           ` Andrea Venturoli
  2013-12-06 14:18         ` marco atzeri
  2013-12-13 13:34         ` Ken Brown
  2 siblings, 1 reply; 27+ messages in thread
From: Max Polk @ 2013-12-06 13:51 UTC (permalink / raw)
  To: cygwin

On 12/6/2013 8:38 AM, Andrea Venturoli wrote:
> In the end I got a trace file (which is over 7MB!), but it's nothing I

Try from mintty window running emacs without X and without start files:
     emacs -nw -Q
See if other X apps run:
     xterm
There should be no errors running the above.


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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 13:51         ` Max Polk
@ 2013-12-06 14:02           ` Andrea Venturoli
  0 siblings, 0 replies; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-06 14:02 UTC (permalink / raw)
  To: cygwin

On 12/06/13 14:51, Max Polk wrote:
> On 12/6/2013 8:38 AM, Andrea Venturoli wrote:
>> In the end I got a trace file (which is over 7MB!), but it's nothing I
>
> Try from mintty window running emacs without X and without start files:
>      emacs -nw -Q
> See if other X apps run:
>      xterm
> There should be no errors running the above.

Thanks.
As I said in previous post, "emacs -nw" works, as do other X apps 
(including xterm).

  bye
	av.


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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 13:38       ` Andrea Venturoli
  2013-12-06 13:51         ` Max Polk
@ 2013-12-06 14:18         ` marco atzeri
  2013-12-05 20:10           ` Install Bash 4.2 for Cygwin Javier Murillo Márquez
                             ` (2 more replies)
  2013-12-13 13:34         ` Ken Brown
  2 siblings, 3 replies; 27+ messages in thread
From: marco atzeri @ 2013-12-06 14:18 UTC (permalink / raw)
  To: cygwin

Il 12/6/2013 2:38 PM, Andrea Venturoli ha scritto:
> On 12/05/13 15:40, marco atzeri wrote:
>
>>> In the end I got a trace file (which is over 7MB!), but it's nothing I
>>> can interpret.
>>> What should I do?
>>> Anything I should look for?
>>
>> any seriuos error ;-)
>
> Wish I could discern... :-)
>

the crash is here

--- Process 3888, exception c0000005 at 610FA004
[cut]
--- Process 3888, exception c0000005 at 00597673
--- Process 3888, exception c0000005 at 610D67B3


$ addr2line.exe -a 610FA004 -e /usr/bin/cygwin1.dll
0x610fa004
/usr/src/debug/cygwin-1.7.26-1/winsup/cygwin/thread.cc:136

but I do not see a clear reason of why it is happening

verifyable_object_isvalid (void const *objectptr, thread_magic_t magic, 
void *static_ptr1,
                            void *static_ptr2, void *static_ptr3)
{
   myfault efault;
   if (efault.faulted (objectptr))                           <<< here
     return INVALID_OBJECT;                                  <<<

   verifyable_object **object = (verifyable_object **) objectptr;

   if ((static_ptr1 && *object == static_ptr1) ||
       (static_ptr2 && *object == static_ptr2) ||
       (static_ptr3 && *object == static_ptr3))
     return VALID_STATIC_OBJECT;
   if ((*object)->magic != magic)
     return INVALID_OBJECT;
   return VALID_OBJECT;
}



>> see here
>>> Problem reports:       http://cygwin.com/problems.html
>> and follow the "cygcheck -s -v -r > cygcheck.out" point
>>
>> additonal you can upload the trace file somewhere, so someone could take
>> a look
>
> Both files are here:
> http://netfence.it/download/cyg_emacs.zip.
>

Marco


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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 14:18         ` marco atzeri
  2013-12-05 20:10           ` Install Bash 4.2 for Cygwin Javier Murillo Márquez
@ 2013-12-06 14:40           ` Andrea Venturoli
  2013-12-06 15:17           ` cgf
  2 siblings, 0 replies; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-06 14:40 UTC (permalink / raw)
  To: cygwin

On 12/06/13 15:18, marco atzeri wrote:

> the crash is here
>
> --- Process 3888, exception c0000005 at 610FA004
> [cut]
> --- Process 3888, exception c0000005 at 00597673
> --- Process 3888, exception c0000005 at 610D67B3
>
>
> $ addr2line.exe -a 610FA004 -e /usr/bin/cygwin1.dll
> 0x610fa004
> /usr/src/debug/cygwin-1.7.26-1/winsup/cygwin/thread.cc:136
>
> but I do not see a clear reason of why it is happening

Thanks anyway.

  bye
	av.



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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Install Bash 4.2 for Cygwin
  2013-12-05 20:10           ` Install Bash 4.2 for Cygwin Javier Murillo Márquez
@ 2013-12-06 15:02             ` Peter Rosin
  2013-12-06 15:30               ` Javier Murillo Márquez
  0 siblings, 1 reply; 27+ messages in thread
From: Peter Rosin @ 2013-12-06 15:02 UTC (permalink / raw)
  To: cygwin

Javier wrote:
> Hello!!
> 
> Is possible install bash 4.2 on cygwin? Is there some patch or update for it?

It is available for 64-bit. Not 32-bit though, we're still waiting for
that update (with the WORDEXP_OPTION enabled to fix wordexp(3) and
enabled support for loadable builtins)...

You could probably find a 32-bit version in cygwinports.

Cheers,
Peter

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 14:18         ` marco atzeri
  2013-12-05 20:10           ` Install Bash 4.2 for Cygwin Javier Murillo Márquez
  2013-12-06 14:40           ` emacs won't run Andrea Venturoli
@ 2013-12-06 15:17           ` cgf
  2 siblings, 0 replies; 27+ messages in thread
From: cgf @ 2013-12-06 15:17 UTC (permalink / raw)
  To: cygwin

On Fri, Dec 06, 2013 at 03:18:31PM +0100, marco atzeri wrote:
>Il 12/6/2013 2:38 PM, Andrea Venturoli ha scritto:
>> On 12/05/13 15:40, marco atzeri wrote:
>>
>>>> In the end I got a trace file (which is over 7MB!), but it's nothing I
>>>> can interpret.
>>>> What should I do?
>>>> Anything I should look for?
>>>
>>> any seriuos error ;-)
>>
>> Wish I could discern... :-)
>>
>
>the crash is here
>
>--- Process 3888, exception c0000005 at 610FA004
>[cut]
>--- Process 3888, exception c0000005 at 00597673
>--- Process 3888, exception c0000005 at 610D67B3
>
>
>$ addr2line.exe -a 610FA004 -e /usr/bin/cygwin1.dll
>0x610fa004
>/usr/src/debug/cygwin-1.7.26-1/winsup/cygwin/thread.cc:136

That is not a crash.

>but I do not see a clear reason of why it is happening
>
>verifyable_object_isvalid (void const *objectptr, thread_magic_t magic, 
>void *static_ptr1,
>                            void *static_ptr2, void *static_ptr3)
>{
>   myfault efault;
>   if (efault.faulted (objectptr))                           <<< here
>     return INVALID_OBJECT;                                  <<<

This is the return of "INVALID_OBJECT" if an invalid pointer is passed
to a thread routine.

cgf

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Install Bash 4.2 for Cygwin
  2013-12-06 15:02             ` Peter Rosin
@ 2013-12-06 15:30               ` Javier Murillo Márquez
  2013-12-06 18:20                 ` Peter Rosin
  0 siblings, 1 reply; 27+ messages in thread
From: Javier Murillo Márquez @ 2013-12-06 15:30 UTC (permalink / raw)
  To: cygwin

Is it available for 64-bit? I installed CygWin and searched the
package for bash 4.2 and I just found Bash 4.1.
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=bash&arch=x86_64

2013/12/6 Peter Rosin <peda@lysator.liu.se>:
> Javier wrote:
>> Hello!!
>>
>> Is possible install bash 4.2 on cygwin? Is there some patch or update for it?
>
> It is available for 64-bit. Not 32-bit though, we're still waiting for
> that update (with the WORDEXP_OPTION enabled to fix wordexp(3) and
> enabled support for loadable builtins)...
>
> You could probably find a 32-bit version in cygwinports.
>
> Cheers,
> Peter
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 13:25       ` Andrea Venturoli
@ 2013-12-06 16:26         ` Ken Brown
  2013-12-10  9:34           ` Andrea Venturoli
  0 siblings, 1 reply; 27+ messages in thread
From: Ken Brown @ 2013-12-06 16:26 UTC (permalink / raw)
  To: cygwin

On 12/6/2013 8:25 AM, Andrea Venturoli wrote:
>> lrwxrwxrwx 1 andrea mkgroup 23 11 set 12.22 /usr/bin/emacs ->
>> /etc/alternatives/emacs
>> $ ls -l /etc/alternatives/emacs
>> lrwxrwxrwx 1 andrea mkgroup 22 11 set 12.22 /etc/alternatives/emacs ->
>> /usr/bin/emacs-X11.exe

I don't know if this explains your emacs problem, but the group 
"mkgroup" indicates that /etc/group (and possibly /etc/passwd) should be 
rebuilt  Don't you get a message about this when you start a shell?

Ken

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Install Bash 4.2 for Cygwin
  2013-12-06 15:30               ` Javier Murillo Márquez
@ 2013-12-06 18:20                 ` Peter Rosin
  2013-12-06 18:56                   ` Javier Murillo Márquez
  0 siblings, 1 reply; 27+ messages in thread
From: Peter Rosin @ 2013-12-06 18:20 UTC (permalink / raw)
  To: cygwin

Hi!

Sorry about that, I knew the 64-bit version was newer and was convinced
it was 4.2-something. So convinced that I didn't check before writing.

Cheers,
Peter

On 2013-12-06 16:30, Javier Murillo Márquez wrote:
> Is it available for 64-bit? I installed CygWin and searched the
> package for bash 4.2 and I just found Bash 4.1.
> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=bash&arch=x86_64
> 
> 2013/12/6 Peter Rosin <peda@lysator.liu.se>:
>> Javier wrote:
>>> Hello!!
>>>
>>> Is possible install bash 4.2 on cygwin? Is there some patch or update for it?
>>
>> It is available for 64-bit. Not 32-bit though, we're still waiting for
>> that update (with the WORDEXP_OPTION enabled to fix wordexp(3) and
>> enabled support for loadable builtins)...
>>
>> You could probably find a 32-bit version in cygwinports.
>>
>> Cheers,
>> Peter
>>
>> --
>> Problem reports:       http://cygwin.com/problems.html
>> FAQ:                   http://cygwin.com/faq/
>> Documentation:         http://cygwin.com/docs.html
>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>>
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 


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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Install Bash 4.2 for Cygwin
  2013-12-06 18:20                 ` Peter Rosin
@ 2013-12-06 18:56                   ` Javier Murillo Márquez
  2013-12-06 19:18                     ` Christopher Faylor
  0 siblings, 1 reply; 27+ messages in thread
From: Javier Murillo Márquez @ 2013-12-06 18:56 UTC (permalink / raw)
  To: cygwin

Hello

Then, is not possible install bash 4.2 on CygWin?. I can not
understand if there is some way for it.

Thanks :)

2013/12/6 Peter Rosin <peda@lysator.liu.se>:
> Hi!
>
> Sorry about that, I knew the 64-bit version was newer and was convinced
> it was 4.2-something. So convinced that I didn't check before writing.
>
> Cheers,
> Peter
>
> On 2013-12-06 16:30, Javier Murillo Márquez wrote:
>> Is it available for 64-bit? I installed CygWin and searched the
>> package for bash 4.2 and I just found Bash 4.1.
>> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=bash&arch=x86_64
>>
>> 2013/12/6 Peter Rosin <peda@lysator.liu.se>:
>>> Javier wrote:
>>>> Hello!!
>>>>
>>>> Is possible install bash 4.2 on cygwin? Is there some patch or update for it?
>>>
>>> It is available for 64-bit. Not 32-bit though, we're still waiting for
>>> that update (with the WORDEXP_OPTION enabled to fix wordexp(3) and
>>> enabled support for loadable builtins)...
>>>
>>> You could probably find a 32-bit version in cygwinports.
>>>
>>> Cheers,
>>> Peter
>>>
>>> --
>>> Problem reports:       http://cygwin.com/problems.html
>>> FAQ:                   http://cygwin.com/faq/
>>> Documentation:         http://cygwin.com/docs.html
>>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>>>
>>
>> --
>> Problem reports:       http://cygwin.com/problems.html
>> FAQ:                   http://cygwin.com/faq/
>> Documentation:         http://cygwin.com/docs.html
>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>>
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Install Bash 4.2 for Cygwin
  2013-12-06 18:56                   ` Javier Murillo Márquez
@ 2013-12-06 19:18                     ` Christopher Faylor
  0 siblings, 0 replies; 27+ messages in thread
From: Christopher Faylor @ 2013-12-06 19:18 UTC (permalink / raw)
  To: cygwin

On Fri, Dec 06, 2013 at 07:56:16PM +0100, Javier Murillo M?rquez wrote:
>Hello
>
>Then, is not possible install bash 4.2 on CygWin?. I can not
>understand if there is some way for it.

We have a program called setup-*.exe which installs programs.  If you
don't see bash 4.2 there then it is not available for installation.
There isn't any secret way to get other versions of programs than what
is available via setup.

You could presumably build bash 4.2 yourself, however.

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 16:26         ` Ken Brown
@ 2013-12-10  9:34           ` Andrea Venturoli
  2013-12-10 11:02             ` Corinna Vinschen
  0 siblings, 1 reply; 27+ messages in thread
From: Andrea Venturoli @ 2013-12-10  9:34 UTC (permalink / raw)
  To: cygwin

On 12/06/13 17:26, Ken Brown wrote:

> I don't know if this explains your emacs problem, but the group
> "mkgroup" indicates that /etc/group (and possibly /etc/passwd) should be
> rebuilt  Don't you get a message about this when you start a shell?

I don't get any such message.

"mkpasswd -l" won't list me, since I'm a domain user.
"mkpasswd -l -D", "mkpasswd -l -D domain", "mkpasswd -l -d" and 
"mkpasswd -l -d domain" all end with error 2221.

"mkgroup -l -D >/etc/group" (run elevated) updated my /etc/group.

Still no luck with emacs-x11.

  bye & Thanks
	av.

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-10  9:34           ` Andrea Venturoli
@ 2013-12-10 11:02             ` Corinna Vinschen
  0 siblings, 0 replies; 27+ messages in thread
From: Corinna Vinschen @ 2013-12-10 11:02 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]

On Dec 10 10:34, Andrea Venturoli wrote:
> On 12/06/13 17:26, Ken Brown wrote:
> 
> >I don't know if this explains your emacs problem, but the group
> >"mkgroup" indicates that /etc/group (and possibly /etc/passwd) should be
> >rebuilt  Don't you get a message about this when you start a shell?
> 
> I don't get any such message.
> 
> "mkpasswd -l" won't list me, since I'm a domain user.
> "mkpasswd -l -D", "mkpasswd -l -D domain", "mkpasswd -l -d" and
> "mkpasswd -l -d domain" all end with error 2221.

That's weird.  I never saw that happen with the -d/-D option.  Especialy
because mkpasswd -d/-D doesn't rely on any user name, it just asks the
domain controller to list the domain accounts using the NetUserEnum
function, and NetUserEnum is not documented to be able to return
error 2221 (NERR_UserNotFound) at all.  Are you running this under a
domain account?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-06 13:38       ` Andrea Venturoli
  2013-12-06 13:51         ` Max Polk
  2013-12-06 14:18         ` marco atzeri
@ 2013-12-13 13:34         ` Ken Brown
  2013-12-20 18:30           ` Mark Evenson
  2 siblings, 1 reply; 27+ messages in thread
From: Ken Brown @ 2013-12-13 13:34 UTC (permalink / raw)
  To: cygwin

On 12/6/2013 8:38 AM, Andrea Venturoli wrote:
> On 12/05/13 15:40, marco atzeri wrote:
>
>>> In the end I got a trace file (which is over 7MB!), but it's nothing I
>>> can interpret.
>>> What should I do?
>>> Anything I should look for?
>>
>> any seriuos error ;-)
>
> Wish I could discern... :-)
>
>
>
>> see here
>>> Problem reports:       http://cygwin.com/problems.html
>> and follow the "cygcheck -s -v -r > cygcheck.out" point
>>
>> additonal you can upload the trace file somewhere, so someone could take
>> a look
>
> Both files are here:
> http://netfence.it/download/cyg_emacs.zip.

I just took a second look at your strace output, and I saw the same font 
issue as the one here:

   http://cygwin.com/ml/cygwin/2013-12/msg00248.html

Try the remedy I suggested there.

Ken

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

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: emacs won't run
  2013-12-13 13:34         ` Ken Brown
@ 2013-12-20 18:30           ` Mark Evenson
  0 siblings, 0 replies; 27+ messages in thread
From: Mark Evenson @ 2013-12-20 18:30 UTC (permalink / raw)
  To: cygwin

On 2013-12-13 13:34:01 +0000, Ken Brown said:

> I just took a second look at your strace output, and I saw the same 
> font issue as the one here:
> 
>    http://cygwin.com/ml/cygwin/2013-12/msg00248.html
> 
> Try the remedy I suggested there.
> 
> Ken



The instructions linked here solved the problem running emacs-x11 for
me under cygwin-x86_64:

I suggest that you delete the directories ~/.fontconfig and
~/.cache/fontconfig. Then run (as administrator) "fc-cache -fsv".


-- 
"A screaming comes across the sky.  It has happened before, but there s 
nothing to compare to it now."



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

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2013-12-20 18:30 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-04  9:20 emacs won't run Andrea Venturoli
2013-12-04 10:56 ` marco atzeri
2013-12-04 19:21   ` Christopher Faylor
2013-12-05  5:53     ` marco atzeri
2013-12-05 12:50   ` Andrea Venturoli
2013-12-05 14:40     ` marco atzeri
2013-12-06 13:38       ` Andrea Venturoli
2013-12-06 13:51         ` Max Polk
2013-12-06 14:02           ` Andrea Venturoli
2013-12-06 14:18         ` marco atzeri
2013-12-05 20:10           ` Install Bash 4.2 for Cygwin Javier Murillo Márquez
2013-12-06 15:02             ` Peter Rosin
2013-12-06 15:30               ` Javier Murillo Márquez
2013-12-06 18:20                 ` Peter Rosin
2013-12-06 18:56                   ` Javier Murillo Márquez
2013-12-06 19:18                     ` Christopher Faylor
2013-12-06 14:40           ` emacs won't run Andrea Venturoli
2013-12-06 15:17           ` cgf
2013-12-13 13:34         ` Ken Brown
2013-12-20 18:30           ` Mark Evenson
2013-12-05 15:02     ` Achim Gratz
2013-12-06 13:25       ` Andrea Venturoli
2013-12-06 16:26         ` Ken Brown
2013-12-10  9:34           ` Andrea Venturoli
2013-12-10 11:02             ` Corinna Vinschen
2013-12-04 15:50 ` David Karr
2013-12-05 12:47   ` Andrea Venturoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).