Check version #s for gcc, automake et al.
RUN it under gdb, not just connect to it after it's crashed.
-----Burton
---------- Original Message ----------------------------------
From: yoshi <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Tue, 11 Feb 2003 19:29:49 -0500
>Burton,
>
>
>I would like to go back to the original issue that I had in the beginning.
>
>I installed 2 linux boxes, one is RH7.0 and the other one is 7.2.
>7.2 works fine, but 7.0 doesn't.
>
>Installation went fine for both of them. I didn't see any error
>during installation.
>However, when I start ntop in RH7.0, it always gives me the same
>error message.
>
>#./ntop
>#Segmentation fault (core dumped)
>
>I tried all possible options like;
>-W3000, -u nobody, -P /usr, -i eth0, etc...
>
>No matter what kind of options I try, it always gives me only one line says,
>
>#Segmentation fault (core dumped)
>
>So, I can't get any clue what the problem is.
>
>Here is the output of gdb.
>
> >gdb ./ntop
>(gdb) info stack
>No stack
>(gdb) list
>735 /* ************************* */
>736
>737 /* That's the meat */
>738 #infdef WIN32
>739 #int ntop_main(int argc, char * argv[]) {
>740 #else
>741 int main(int agrc, char #argv[]) {
>742 #endif
>743 int i, userSpecified;
>744 char ifstr[196] = {0};
>
>
>I got the same output from RH7.2 linux box, so can't really get
>much clue from this.
>
>Any thought?
>
>
>
>
>
>Burton M. Strauss III wrote:
>> STFW... for "Unable to generate reloads"
>>
>> http://gcc.gnu.org/ml/gcc/2001-09/msg00838.html
>>
>> http://mail.gnu.org/archive/html/discuss-gnustep/2001-11/msg00048.html
>>
>> Sounds like a problem with your c compiler.
>>
>> I know of success w gcc 2.95, 3.2 and 3.2.1 also a couple of cc versions
>> (Solaris).
>>
>> What version is on that old box??? If it's the RedHat pre-release 3.0...
>>
>> -----Burton
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of yoshi
>> Sent: Tuesday, February 11, 2003 12:44 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [Ntop] Segmentation fault on ntop.
>>
>>
>> Thank you Burton,
>>
>> I cleaned up all old version, and reinstalled 2.1.56. This time I
>> completely followed BUILD-NTOP.txt file in docs.
>>
>> After building chart libraries, I tried to build ntop but I had an
>> error message when I make,
>>
>> icmpPlugin.c: In function 'handleIcmpWatchHTTPrequest' :
>> icmpPlugin.c:432: Unable to generate reloads for :
>> (insn 2522 2520 2523 (set (reg:SF 8 st(0))
>> (float)truncate:SF (reg:XF 9 st(1)))) 91 {*truncxfsf2_2} (nil)
>> (expr_list:REG_DEAD (reg:XF 9 st(1))
>> (nil)))
>> icmpPlugin.c:432: Internal compiler error in find_reloads, at reload.c:3493
>> Please submit a full bug report.
>> make [3]:***[icmpPlugin.lo] Error 1
>> make [3]:Leaving directory '/home/yoshi/ntop-2.1.56/ntop/plugins'
>> make [2]:***[all-recursive] Error 1
>> make [2]:Leaving directory '/home/yoshi/ntop-2.1.56/ntop/plugins'
>> make [1]:***[all-recursive] Error 1
>> make [1]:Leaving directory '/home/yoshi/ntop-2.1.56/ntop'
>> make: ***[all] Error 2
>>
>> Did I do anything wrong?
>>
>>
>>
>>
>>
>>
>>
>>
>>>There are some bugs in 2.1.3, that's why the development version is long
>>>past it.
>>>
>>>You're long on information about your compiles but don't show how you're
>>>invoking ntop nor the log messages, so this is a guess, but it may be in
>>>extending the hash.
>>>
>>>Thoughts:
>>>
>>>0. You shouldn't need to do make install for ANY of the tools if you're
>>>using the static versions in the ntop source tree. In fact, that can
>>
>> cause
>>
>>>problems due to version conflicts with libpng. DON'T DO THAT. In fact,
>>>uninstall them.
>>>
>>>1. Try the current development version.
>>>
>>>2. Run under gdb and capture the output, but frankly as we're working
>>>towards 2.2, we don't have much interest in fixing 2.1.3. Instructions
>>
>> for
>>
>>>running gdb and what to capture are in the docs/FAQ of recent development
>>>snapshots and releases or at http://snapshot.ntop.org
>>>
>>>
>>>-----Burton
>>>
>>>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of yoshi
>>>Sent: Friday, February 07, 2003 12:39 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: [Ntop] Segmentation fault on ntop.
>>>
>>>
>>>I just installed ntop in 2 Linux boxes, one is Redhat 7.2 and the other
>>>one is 7.0.
>>>
>>>In Redhat 7.2, it works just fine, but in 7.0, when I start ntop, it
>>>gives me an error message,
>>>"Segmentation fault (core dumped)".
>>>
>>>I installed ntop in thoese 2 linux boxes exactly same way.
>>>Here is what I did,
>>>
>>>Downloaded ntop-2.1.3.tar.gz and libpcap-0.7.1.tar.gz.
>>>
>>>#tar zvfx libpcap-0.7.1.tar.gz
>>>#cd libpcap-0.7.1.tar.gz
>>>#./configure --prefix=/usr/local/src/libpcap
>>>#make
>>>#make install
>>>
>>>#tar zvfx ntop-2.1.3.tar.gz
>>>#cd ./ntop-2.1.3/gdchart0.94c/gd-1.8.3/zlib-1.1.4
>>>#./configure
>>>#make
>>>#make install
>>>
>>>#cd ./ntop-2.1.3/gdchart0.94c/gd-1.8.3/libpng-1.2.1/script/
>>>#cp makefile.linux ../makefile
>>>#cd ..
>>>#make test
>>>#make install
>>>
>>>#cd ./ntop-2.1.3/gdchart0.94c/gd-1.8.3
>>>#make
>>>#make install
>>>
>>>#cd ./ntop-2.1.3/gdchart0.94c
>>>#./configure
>>>#make
>>>
>>>#cd ./ntop-2.1.3/ntop
>>>#./autogen.sh -1
>>>#./configure --prefix=/usr/local/src/ntop
>>> --with-pcap-root=/home/yoshi/software/libpcap-0.7.1
>>> --with-gdchart-root=/home/yoshi/software/ntop-2.1.3/gdchart0.94c
>>>#make
>>>#make install
>>>
>>>
>>>I read all FAQs and documents and tried all different parameters, but
>>>none of them worked. It always gives me same error,
>>>Segmentation fault (core dumped)
>>>
>>>However, intop works just fine.
>>>
>>>Does anyone have any idea?
>>
>>
>>
>> _______________________________________________
>> Ntop mailing list
>> [EMAIL PROTECTED]
>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>
>>
>
>
>
>________________________________________________________________________
>This email has been scanned for all viruses by the MessageLabs SkyScan
>service. For more information on a proactive anti-virus service working
>around the clock, around the globe, visit http://www.messagelabs.com
>________________________________________________________________________
>_______________________________________________
>Ntop mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop
>
____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop