On 07/07/2008 11:36, Benny Prijono wrote: > On Fri, Jul 4, 2008 at 2:19 PM, Filippo Zangheri <filippo.zangheri at yahoo.it> > wrote: > >>>> 22:42:19.958 sip_endpoint.c Module "mod-msg-logger" registered >>>> Segmentation fault >>> The same apply to stateless_proxy-i686-pc-linux-gnu. In effect, all >>> applications relying on proxy.h:proxy_init() suffer from the same >> problem. >> ^^^^^^^^^^^^ >> Typo, I meant init_proxy(). >> >> >> > Sorry for the late reply. I was upgrading my Linux box last week and along > the way managed to corrupt my Grub installation. It was not easy to solve > when your computer doesn't have CD or floppy drive and can't boot from USB > or the internal CF reader. :D Thank you. I thought you were intentionally ignoring me! ;) I've heard that upgrading Ubuntu is a major pain. > I tried the proxy samples and it seems to be working okay on Ubuntu > 8.04/linux 2.6.24-19, so there must be some particular setup in your box > that pjlib doesn't like. Yes, probably. > I'm attaching a simple application to enumerate network interfaces, could > you try that out? If it's still segfaulting, could you probably build pjsip > with debug info (./aconfigure CFLAGS='--g') and debug the application and > find out exactly where it segfaults? It is still segfaulting the same way. Running ./aconfigure CFLAGS='--g' results in the following error: checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... aconfigure: error: C compiler cannot create executables See `config.log' for more details. The reason is this: ... aconfigure:1817: gcc --g conftest.c >&5 cc1: error: unrecognized command line option "-fg" ... So I ran ./aconfigure CFLAGS='-g' And it worked fine. The problem is that I can't seem to be able to debug, because gdb doesn't find debugging symbols: filippo at asus-laptop:~/tesi/pjsip/debug/pjproject-0.9.0/pjsip-apps/bin/samples$ gdb -e stateful_proxy-i686-pc-linux-gnu GNU gdb 6.4.90-debian Copyright (C) 2006 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 "i486-linux-gnu". (gdb) run Starting program: /home/filippo/tesi/pjsip/debug/pjproject-0.9.0/pjsip-apps/bin/samples/stateful_proxy-i686-pc-linux-gnu Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1212123456 (LWP 17268)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 12:59:23.708 os_core_unix.c pjlib 0.9.0-release for POSIX initialized 12:59:23.709 pjlib select() I/O Queue created (0xb7bc5098) 12:59:23.709 sip_endpoint.c Module "mod-msg-print" registered 12:59:23.709 sip_endpoint.c Module "mod-tsx-layer" registered 12:59:23.709 sip_endpoint.c Module "mod-stateful-util" registered (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 12:59:23.738 udp0x80a2b60 SIP UDP transport started, published address is 82.59.213.185:5060 12:59:23.738 sip_endpoint.c Module "mod-msg-logger" registered Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212123456 (LWP 17268)] 0x08077908 in ?? () What's the problem? gcc version is: gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21). Thank you! Best regards. -- Filippo Zangheri GPG key ID: 0x6C1F2F2F -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080707/57f96b38/attachment.bin