[pptp-server] pptpctrl segfaults (fwd)
Harald Hannelius
harald at iki.fi
Tue Sep 19 05:44:28 CDT 2000
Forwarding this discussion to the list as well...
Harald H Hannelius | Harald at iki.fi | GSM +358405470870
---------- Forwarded message ----------
Date: Tue, 19 Sep 2000 13:36:07 +0300 (EEST)
From: Harald Hannelius <harald at iki.fi>
To: David Luyer <david_luyer at pacific.net.au>
Subject: Re: [pptp-server] pptpctrl segfaults
The file is not stripped. Don't know how to get to the debugging symbols
though. Does the configure script enable debugging symbols by default? I
tried to look for that, but don't know where to set it.
# file /usr/local/sbin/pptpctrl
/usr/local/sbin/pptpctrl: ELF 32-bit LSB executable, Intel 80386, version
1, dynamically linked (uses shared libs), not stripped
I put "CC=gcc -g" in the top Makefile and recompiled, with this result in
gdb:
# gdb pptpctrl
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-slackware-linux"...
(gdb) run
Starting program: /usr/local/sbin/pptpctrl
Program received signal SIGSEGV, Segmentation fault.
__strtol_internal (nptr=0x0, endptr=0x0, base=10, group=0) at strtol.c:287
287 strtol.c: No such file or directory.
(gdb) bt
#0 __strtol_internal (nptr=0x0, endptr=0x0, base=10, group=0) at
strtol.c:287
#1 0x8048bc1 in main (argc=1, argv=0xbffff9d4) at
/usr/include/stdlib.h:251
#2 0x40036aa7 in __libc_start_main (main=0x8048b50 <main>, argc=1,
argv=0xbffff9d4, init=0x8048810 <_init>,
fini=0x804ad34 <_fini>, rtld_fini=0x4000acb0 <_dl_fini>,
stack_end=0xbffff9cc)
at ../sysdeps/generic/libc-start.c:92
Looks the same to me...
I'm running slackware-7.1, upgraded with the libc-2.1.3 patch. I have
tried compiling pptpctrl on 2.0.36, libc-2.0.7 with the same result,
segfaults.
The software compiled on slackware-7.1 (current) with libc-2.1.2
and compiled with -g: Still segfaults
The binary version downloaded as rpm from the also segfaults...
On Tue, 19 Sep 2000, David Luyer wrote:
> >
> > On Tue, 19 Sep 2000, David Luyer wrote:
> >
> > > If you're not a programmer you should be running the stable version (1.0.0).
> > > There is a single bug-fix patch available for that version but that's all.
>
> > (gdb) bt
> > #0 __strtol_internal (nptr=0x0, endptr=0x0, base=10, group=0) at
> > strtol.c:287
> > #1 0x8048bc1 in main ()
> > #2 0x40036aa7 in __libc_start_main (main=0x8048b50 <main>, argc=1,
> > argv=0xbffff9d4, init=0x8048810 <_init>,
> > fini=0x804ad34 <_fini>, rtld_fini=0x4000acb0 <_dl_fini>,
> > stack_end=0xbffff9cc)
> > at ../sysdeps/generic/libc-start.c:92
>
> If you make sure you're using -g (debug) and no -s (strip) during compiling and
> linking, do you get any more detail in the backtrace?
>
> That backtrace there is pretty hard to get anything out of at present.
>
> David.
> --
> ----------------------------------------------
> David Luyer
> Senior Network Engineer
> Pacific Internet (Aust) Pty Ltd
> Phone: +61 3 9674 7525
> Fax: +61 3 9699 8693
> Mobile: +61 4 1064 2258, +61 4 1114 2258
> http://www.pacific.net.au NASDAQ: PCNTF
> << fast 'n easy >>
> ----------------------------------------------
>
>
Harald H Hannelius | Harald at iki.fi | GSM +358405470870
More information about the pptp-server
mailing list