----------------------------------------- running the program (named "bug") ----------------------------------------- address@hidden any-fix]$ ./bug saved ptr: 0x804d348, *buf: 0x804d334, diff: 20, length: 20 Segmentation fault (core dumped) address@hidden any-fix]$ ----------------------------------------- gdb backtrace ----------------------------------------- address@hidden any-fix]$ gdb bug core GNU gdb 5.0 Copyright 2000 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-redhat-linux"... Core was generated by `./bug'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 __libc_siglongjmp (env=0xd1b99df9, val=-105) at ../sysdeps/generic/longjmp.c:35 35 ../sysdeps/generic/longjmp.c: No such file or directory. (gdb) bt #0 __libc_siglongjmp (env=0xd1b99df9, val=-105) at ../sysdeps/generic/longjmp.c:35 #1 0x8048c61 in DDecPhoneNumberContent (b=0x804cf38, tagId0=134531312, elmtLen0=3221223104, v=0xbffff700, bytesDecoded=0xc, env=0xd1b99df9) at any.c:221 #2 0x804a45b in BDecAsnAny (b=0x804cf38, result=0xbffff7a8, bytesDecoded=0xbffff6c0, env=0xbffff700) at mbuf/asn-any.c:222 #3 0x804885f in DDecContentContent (b=0x804cf38, tagId0=0, elmtLen0=0, v=0xbffff7a0, bytesDecoded=0xbffff7b0, env=0xbffff700) at any.c:86 #4 0x8048f90 in main () at main.c:49 #5 0x4003bb65 in __libc_start_main (main=0x8048e28
, argc=1, ubp_av=0xbffff854, init=0x80484e0 <_init>, fini=0x804ad8c <_fini>, rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffff84c) at ../sysdeps/generic/libc-start.c:111 (gdb)