This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


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

more on seg. faults



I've been trying to compile emacs-20.4 on a powerpc "APUS" system using
binutils-2.9.4.0.8, egcs-1.1.2, and glibc-2.1.1.  I've gotten seg. faults
when trying to run ddd-3.1.3 and emacs 20.3/4.  I do not have much
knowlege of how egcs, binutils, glibc, etc. may play together in 
situations like these and was wondering if someone could offer some
insight.

The first gdb bit is from the emacs core dump.  The second gdb bit is from
a ddd-3.1.3 core dump.  Both seem to die in the soinit.c The soinit.c is
part of the glibc distribution.  

I've tried using various assembler versions, and recompiling egcs, glibc 
and binutils, several times.  I've tried using the egcs snapshots as well. 


I've compiled a fair amount of various utilities and apps.   A large 
percentage of them seem to work fine.

I thought I might as well give up compiling emacs and downloaded a binary
from linuxppc, but alas it did not run either.

Lately, I've been pondering recompiling X, since both emacs and ddd depend
on X though X is working fine for the most part.  What made me think X
might be causing a problem is that an xemacs binary I've compiled works
from a console but not with X.  When run from an X term it seg. faults in
the same place in the soinit.c as ddd and emacs.  i.e. 0xcbefb8 in Letex
() at soinit.c:59

This is from emacs-20.4:

amiga1:/home/heitkamp# emacs
Fatal error (11).Segmentation fault (core dumped)
amiga1:/home/heitkamp# gdb `which emacs` core
GNU gdb 4.17.0.12 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details. This GDB was configured as "powerpc-unknown-linux-gnu"...
Core was generated by `emacs'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11/lib/libXaw.so.6...done.
Reading symbols from /usr/X11/lib/libXmu.so.6...done.
Reading symbols from /usr/X11/lib/libXt.so.6...done.
Reading symbols from /usr/X11/lib/libSM.so.6...done.
Reading symbols from /usr/X11/lib/libICE.so.6...done.
Reading symbols from /usr/X11/lib/libXext.so.6...done.
Reading symbols from /usr/X11/lib/libX11.so.6...done.
Reading symbols from /usr/lib/libncurses.so.3.4...done.
Reading symbols from /usr/lib/libm.so.6...done.
Reading symbols from /usr/lib/libc.so.6...done.
Reading symbols from /lib/ld.so.1...done.
#0  0x11c8fb8 in Letext () at soinit.c:59
59      }
(gdb) where
#0  0x11c8fb8 in Letext () at soinit.c:59
#1  0x185c9a0 in fatal_error_signal (sig=2147480728) at emacs.c:248 #2 
<signal handler called>
#3  0x11f4b7c in Letext () at fputc.c:42
#4  0x183b9f8 in cmputc (c=27 '\e') at cm.c:51
#5  0x1399720 in tputs ()
#6  0x183c6c0 in set_terminal_modes () at term.c:363
#7  0x18741e0 in init_sys_modes () at sysdep.c:1596
#8  0x185db7c in main (argc=1, argv=0x7ffffd74, envp=0x183b9cc) at
emacs.c:1272 #9  0x11c1a1c in Letext () at
../sysdeps/powerpc/elf/libc-start.c:107 (gdb) list
54        }
55      # else
56        __register_frame (__EH_FRAME_BEGIN__);
57      # endif
58      #endif
59      }
60
61
62      /* This function becomes the DT_FINI termination function 63        
for the C library.  */
(gdb) 

This next bit is from compiling ddd-3.1.3:

bash-2.02$ ddd
Warning: This DDD requires a Motif 1.2 library (using Motif 2.0) Continue
at own risk.

Internal error (Segmentation fault).

Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <ddd-bugs@ips.cs.tu-bs.de>, giving a subject like

    DDD 3.1.3 (powerpc-unknown-linux-gnu) gets `Segmentation fault' signal

To enable us to fix the bug, you should include the following information:
* What you were doing to get this message.  Report all the facts. * The
contents of the `~/.ddd/log' file as generated by this session. Please
read also the section "Reporting Bugs" in the DDD manual.

We thank you for your support.

Segmentation fault (core dumped)
bash-2.02$ gdb `which ddd` core
GNU gdb 4.17.0.12 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details. This GDB was configured as "powerpc-unknown-linux-gnu"...
Core was generated by `ddd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libXm.so.2...done.
Reading symbols from /usr/X11R6/lib/libXp.so.6...done.
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Reading symbols from /usr/X11R6/lib/libXaw.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/local/lib/libstdc++.so.2.9...done.
Reading symbols from /usr/lib/libm.so.6...done.
Reading symbols from /usr/lib/libc.so.6...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Reading symbols from /lib/ld.so.1...done.
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/libnss_files.so.2...done.
#0  0xf4d694 in strcmp () at soinit.c:59
59      }
(gdb) 

Current language:  auto; currently c
#0  0xf4d694 in strcmp () at soinit.c:59
#1  0x171afd0 in _XmFontListGetDefaultFont () at XmString.c:999 #2 
0x187a544 in _topShadowGC (_label=0x1d00c90) at LabelH.C:255 #3  0x187a3b0
in enable3d (_new=0x1d00c90) at LabelH.C:178
#4  0x187a44c in initialize (_new=0x1d00c90) at LabelH.C:204
#5  0x15fd284 in InitializeLeafWrapper (request=0x7fffe948,
new_w=0x1d00c90, 
    args=0x7fffee30, num_args=0x7fffe908) at BaseClass.c:1482 #6 
0x135542c in CallInitialize ()
#7  0x1355b6c in xtCreate ()
#8  0x13560ec in _XtCreateWidget ()
#9  0x13561f8 in XtCreateWidget ()
#10 0x180912c in main (argc=1, argv=0x7ffffa24) at ddd.C:1958 #11 0xf0ea1c
in Letext () at ../sysdeps/powerpc/elf/libc-start.c:107 bash-2.02$ 



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