* [gentoo-dev] xemacs segfault @ 2002-04-08 2:39 Dave Lee 2002-04-08 3:52 ` Arcady Genkin 0 siblings, 1 reply; 7+ messages in thread From: Dave Lee @ 2002-04-08 2:39 UTC (permalink / raw To: gentoo-dev Hello, Has anyone been able to figure out why xemacs segfaults on startup? As mentioned before, if you are emerge-ing something, than xemacs will actually run w/o segfaulting. This is strange behavior. TIA, Dave ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] xemacs segfault 2002-04-08 2:39 [gentoo-dev] xemacs segfault Dave Lee @ 2002-04-08 3:52 ` Arcady Genkin 2002-04-08 13:42 ` Dave Lee 2002-04-08 17:17 ` [gentoo-dev] " Dave Lee 0 siblings, 2 replies; 7+ messages in thread From: Arcady Genkin @ 2002-04-08 3:52 UTC (permalink / raw To: gentoo-dev Dave Lee <davel@canuck.com> writes: > Has anyone been able to figure out why xemacs segfaults on startup? As > mentioned before, if you are emerge-ing something, than xemacs will > actually run w/o segfaulting. This is strange behavior. TIA, Dave Which version? Have you tried xemacs -debug-init xemacs -vanilla Also try running in the terminal with xemacs -nw Perhaps these would help you to pin-point the problem... -- Arcady Genkin Don't read everything you believe. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] xemacs segfault 2002-04-08 3:52 ` Arcady Genkin @ 2002-04-08 13:42 ` Dave Lee 2002-04-08 15:05 ` Naresh Donti 2002-04-08 17:17 ` [gentoo-dev] " Dave Lee 1 sibling, 1 reply; 7+ messages in thread From: Dave Lee @ 2002-04-08 13:42 UTC (permalink / raw To: gentoo-dev Arcady Genkin wrote: > Dave Lee <davel@canuck.com> writes: > > > Has anyone been able to figure out why xemacs segfaults on startup? As > > mentioned before, if you are emerge-ing something, than xemacs will > > actually run w/o segfaulting. This is strange behavior. TIA, Dave > > Which version? both 21.1.whatever and 21.4.6 > Have you tried > > xemacs -debug-init > xemacs -vanilla > > Also try running in the terminal with > > xemacs -nw I did try -vanilla and -norc, but not the others. I'll see what they do for me. > Perhaps these would help you to pin-point the problem... I dont know, would it? Can anybody see why xemacs would run just fine when I am in the process of compiling something else, but when I am not compiling anything it segfaults immediately. I did try to run strace on xemacs, and although I dont have the results at hand to cut and paste, the segfault was happening after a bunch of stat calls that were looking for default.{elc,el,} but when I am compiling something nothing happens here other than ENOENT. Dave ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] xemacs segfault 2002-04-08 13:42 ` Dave Lee @ 2002-04-08 15:05 ` Naresh Donti 2002-04-08 15:40 ` Dave Lee 0 siblings, 1 reply; 7+ messages in thread From: Naresh Donti @ 2002-04-08 15:05 UTC (permalink / raw To: gentoo-dev I am pretty sure this is happening because xemacs is trying to load .elc files generated by gnu emacs. Ths byte compiled lisp files (.elc) are not compatible between Gnu emacs and xemacs. This probably happened because some package independent of both emacsen installed *.elc files which were compiled by emacs, and then you installed xemacs and are trying to run it. How to check if this is the case: * unmerge emacs and xemacs * find / -name \*.elc -exec rm -f {} \; -print * remerge xemacs And then try running it. The second step removes all the *.elc files on your machine. This should not cost you too much because loading .el files is only marginally slower than loading *.elc files. You might want to rename the files instead of removing them. On Mon, Apr 08, 2002 at 07:42:49AM -0600, Dave Lee wrote: > > > Arcady Genkin wrote: > > Dave Lee <davel@canuck.com> writes: > > > > > Has anyone been able to figure out why xemacs segfaults on startup? As > > > mentioned before, if you are emerge-ing something, than xemacs will > > > actually run w/o segfaulting. This is strange behavior. TIA, Dave > > > > Which version? > > both 21.1.whatever and 21.4.6 > > > Have you tried > > > > xemacs -debug-init > > xemacs -vanilla > > > > Also try running in the terminal with > > > > xemacs -nw > > I did try -vanilla and -norc, but not the others. I'll see what they do > for me. > > > Perhaps these would help you to pin-point the problem... > > I dont know, would it? Can anybody see why xemacs would run just fine > when I am in the process of compiling something else, but when I am not > compiling anything it segfaults immediately. > > I did try to run strace on xemacs, and although I dont have the results at > hand to cut and paste, the segfault was happening after a bunch of stat > calls that were looking for default.{elc,el,} but when I am compiling > something nothing happens here other than ENOENT. > > Dave > > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@gentoo.org > http://lists.gentoo.org/mailman/listinfo/gentoo-dev > -- Naresh Donti ndonti@swbell.net Tomorrow's computers some time next month. -- DEC ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] xemacs segfault 2002-04-08 15:05 ` Naresh Donti @ 2002-04-08 15:40 ` Dave Lee 2002-04-08 20:24 ` [gentoo-dev] There is a Bug about this " Sloan Poe 0 siblings, 1 reply; 7+ messages in thread From: Dave Lee @ 2002-04-08 15:40 UTC (permalink / raw To: gentoo-dev I dont even have standard emacs installed. Also, the default* files dont exist, and the stat calls are returning ENOENT. IIRC, when I was able to get xemacs to run while compiling something else, strace showed that after those stat calls, the next thing that happened was a SIGIO whereas normal xemacs execution doesnt ever get that SIGIO. Dave Naresh Donti wrote: > I am pretty sure this is happening because xemacs is trying to load .elc files > generated by gnu emacs. Ths byte compiled lisp files (.elc) are not compatible > between Gnu emacs and xemacs. > > This probably happened because some package independent of both emacsen > installed *.elc files which were compiled by emacs, and then you installed > xemacs and are trying to run it. > > How to check if this is the case: > * unmerge emacs and xemacs > * find / -name \*.elc -exec rm -f {} \; -print > * remerge xemacs > > And then try running it. > > The second step removes all the *.elc files on your machine. This should not > cost you too much because loading .el files is only marginally slower than > loading *.elc files. You might want to rename the files instead of removing > them. > > On Mon, Apr 08, 2002 at 07:42:49AM -0600, Dave Lee wrote: > > > > > > Arcady Genkin wrote: > > > Dave Lee <davel@canuck.com> writes: > > > > > > > Has anyone been able to figure out why xemacs segfaults on startup? As > > > > mentioned before, if you are emerge-ing something, than xemacs will > > > > actually run w/o segfaulting. This is strange behavior. TIA, Dave > > > > > > Which version? > > > > both 21.1.whatever and 21.4.6 > > > > > Have you tried > > > > > > xemacs -debug-init > > > xemacs -vanilla > > > > > > Also try running in the terminal with > > > > > > xemacs -nw > > > > I did try -vanilla and -norc, but not the others. I'll see what they do > > for me. > > > > > Perhaps these would help you to pin-point the problem... > > > > I dont know, would it? Can anybody see why xemacs would run just fine > > when I am in the process of compiling something else, but when I am not > > compiling anything it segfaults immediately. > > > > I did try to run strace on xemacs, and although I dont have the results at > > hand to cut and paste, the segfault was happening after a bunch of stat > > calls that were looking for default.{elc,el,} but when I am compiling > > something nothing happens here other than ENOENT. > > > > Dave > > > > _______________________________________________ > > gentoo-dev mailing list > > gentoo-dev@gentoo.org > > http://lists.gentoo.org/mailman/listinfo/gentoo-dev > > > > -- > Naresh Donti > ndonti@swbell.net > > Tomorrow's computers some time next month. > -- DEC > > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@gentoo.org > http://lists.gentoo.org/mailman/listinfo/gentoo-dev > ^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-dev] There is a Bug about this xemacs segfault 2002-04-08 15:40 ` Dave Lee @ 2002-04-08 20:24 ` Sloan Poe 0 siblings, 0 replies; 7+ messages in thread From: Sloan Poe @ 2002-04-08 20:24 UTC (permalink / raw To: gentoo-dev [-- Attachment #1: Type: text/plain, Size: 337 bytes --] this is a bugreport on this with a partial explanation as to why it works when emerge is running: http://bugs.gentoo.org/show_bug.cgi?id=1574 Though there seems to be a new ebuild out now 21.4.6-r1.. So now though I can't even get xemacs to compile. It seems to hang trying to find NAS which I have installed.. :( -- [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] xemacs segfault 2002-04-08 3:52 ` Arcady Genkin 2002-04-08 13:42 ` Dave Lee @ 2002-04-08 17:17 ` Dave Lee 1 sibling, 0 replies; 7+ messages in thread From: Dave Lee @ 2002-04-08 17:17 UTC (permalink / raw To: gentoo-dev Arcady Genkin wrote: > Dave Lee <davel@canuck.com> writes: > > > Has anyone been able to figure out why xemacs segfaults on startup? As > > mentioned before, if you are emerge-ing something, than xemacs will > > actually run w/o segfaulting. This is strange behavior. TIA, Dave > > Which version? > Have you tried > > xemacs -debug-init > xemacs -vanilla > > Also try running in the terminal with > > xemacs -nw > > Perhaps these would help you to pin-point the problem... so I compiled xemacs-21.4.6-r1 on my headless webserver, so no X. When I run xemacs here I have no problems at al. Since this is in terminal mode I assume its the equivalent of 'xemacs -nw'. Here is the strace output stat64("/usr/lib/xemacs-21.4.6/lisp/default.elc", 0xbfffe700) = -1 ENOENT (No such file or directory) stat64("/usr/lib/xemacs-21.4.6/lisp/default.el", 0xbfffe700) = -1 ENOENT (No such file or directory) stat64("/usr/lib/xemacs-21.4.6/lisp/default", 0xbfffe700) = -1 ENOENT (No such file or directory) gettimeofday({1018271343, 614761}, NULL) = 0 gettimeofday({1018271343, 615396}, NULL) = 0 when xemacs was segfaulting on my home desktop machine, I never made it to those gettimeofday calls. Still, I wonder what the hell could cause a program to run fine only while emerge-ing. I guess I will see what I can figure out when I get home. Dave ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-04-08 20:25 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-04-08 2:39 [gentoo-dev] xemacs segfault Dave Lee 2002-04-08 3:52 ` Arcady Genkin 2002-04-08 13:42 ` Dave Lee 2002-04-08 15:05 ` Naresh Donti 2002-04-08 15:40 ` Dave Lee 2002-04-08 20:24 ` [gentoo-dev] There is a Bug about this " Sloan Poe 2002-04-08 17:17 ` [gentoo-dev] " Dave Lee
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox