This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: mc segfaults


On Thu, 5 Jun 2003 FischRon.external@infineon.com wrote:

> >> Starting mc or mcedit causes the following assertion violation:
> >>
> >> ** CRITICAL **: file /tmp/build/mc-4.6.0/src/utilunix.c: line 81
> >> (init_groups):
> >> assertion `pwd != NULL' failed.
> >> Segmentation fault (core dumped)
> >
> >Hello,
> >
> >As far I as I can tell this error message suggests that
> >something with you
> >system is not OK. Would you please give more details about you
> >environment
> >- windows version
>
> Windows 2000
>
> >, cygwin version (uname -a)
>
> CYGWIN_NT-5.0 mucw0291 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown
> unknown Cygwin
>
> >, etc. Do the files
> >/etc/passwd and /etc/group exist on your system ?
>
> Yes, but /etc/passwd is somewhat strange, in that my user
> id (i.e. what is returned by 'id -u') does not match the
> respective entry in /etc/passwd:
>
> $ id -u
> 56297
>
> $ grep -c 56297 /etc/passwd
> 0
>
> There *is* an entry in /etc/passwd corresponding to my
> Windows account, but it has user id 121833.
>
> Ronald

Okay, Ronald, you're suffering from the UID wrapping problem.  Cygwin UIDs
are currently 16 bit, so any number higher than 65535 will get wrapped
(and did).  You can change your UID to any unique number smaller than
65535 (56297 should do as well as any other).  I don't know that that's
the cause of your mc problem, but it's something to fix nonetheless.

If it turns out to fix your problem, it's a bug in 'mc', IMO.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]