[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-users
Subject:    core dump (segfault) while compiling snmpd...
From:       Andreas Maus <andreas_maus () bigfoot ! com>
Date:       2001-06-29 21:29:13
[Download RAW message or body]

Hi everybody!

Yesterday I've tried to build the 4.2.1 version of ucd-snmp and encountered some \
strange problems.

After a run of 
./configure --prefix=/usr/local/ucd-snmp-4.2.1 

and a "make" followed by a "make install" without any errors, I found that everything \
was build (and installed) except "snmpd".

Looking through the source-tree I fond a core file in the "agent" directory (where \
the sources of "snmpd" live).

Examining this core I found that it was produced from my compiler.

My system is:

root@conglom-o:~ $ uname -a
Linux conglom-o 2.2.13 #18 Wed Jun 6 15:48:17 CEST 2001 i586 unknown

The compiler is:
root@conglom-o:~ $ gcc --version
egcs-2.91.66

OpenSSL is installed on this system (OpenSSL 0.9.6a), but there is no difference if I \
compile it with or without OpenSSL support. 

Running gdb against the core I get:

root@conglom-o:~ $ gdb /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/cc1 \
/tmp/ucd-snmp-4.2.1/agent/core GNU gdb 4.18
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 "i386-suse-linux-gnu"...
Core was generated by `/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/cc1 /tmp/ccdPFnXw.i \
-quiet -dumpbase v'. Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0  0x817efc7 in output_strlen_unroll ()
(gdb) where
#0  0x817efc7 in output_strlen_unroll ()
#1  0x816de6c in output_413 ()
#2  0x81537df in final_scan_insn ()
#3  0x8152824 in final ()
#4  0x806a533 in rest_of_compilation (decl=0x83499d0) at toplev.c:3874
#5  0x80594fa in finish_function ()
#6  0x8049a07 in yyparse ()
#7  0x8068dee in compile_file (name=0xbffff5d2 "/tmp/ccdPFnXw.i")
    at toplev.c:2793
#8  0x806bb02 in main (argc=10, argv=0xbffff3e4, envp=0xbffff410)
    at toplev.c:4877
(gdb) 

Any suggestions? Would it help if I switch to gcc (on the other hand I've got no \
problems compiling ucd-snmp 4.1.2 with this egcs)?

Thanks in advance...

Andreas Maus.

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/net-snmp-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic