> I'm having a problem compiling up Analog, both 4.14 and 4.90beta1 - they
> both compile and run but core dump. For example;
>
> bash# ./analog --help
> This is analog version 4.14/Unix
> For help see docs/Readme.html, or http://www.analog.cx/
> Segmentation Fault (core dumped)
>
> bash# ./analog --help
> This is analog version 4.90beta1/Unix
> For help see docs/Readme.html, or http://www.analog.cx/
> Segmentation Fault (core dumped)
...
> > Any ideas what's going wrong? Is it possibly a gcc problem?
Sorry to send so much on this... I've compiled up with optimisation off
and -g to get the symbols in and tried using gdb to get more info (in a
limited way, as programming is Not My Thing). Does any of this give any
clues?
Reading symbols from analog...done.
(gdb) run --help
Starting program: /export/home/root/analog-4.90beta1/analog --help
This is analog version 4.90beta1/Unix
For help see docs/Readme.html, or http://www.analog.cx/
Program received signal SIGSEGV, Segmentation fault.
0x11230 in __do_global_dtors_aux ()
(gdb) bt
#0 0x11230 in __do_global_dtors_aux ()
#1 0x7fae8 in _fini ()
#2 0xff19b2c0 in _exithandle () from /usr/lib/libc.so.1
#3 0xff219fd8 in exit () from /usr/lib/libc.so.1
#4 0x61e5c in my_exit (status=0) at utils.c:35
#5 0x20844 in settings (op=0xa97f0, argc=2, argv=0xffbefcec) at
init.c:108
#6 0x2018c in initialise (argc=2, argv=0xffbefcec, op=0xa97f0) at
init.c:21
#7 0x149ac in main (argc=2, argv=0xffbefcec) at analog.c:34
(gdb) list init.c:108
103 for (i = 0; i < argc; i++) {
104 if (STREQ(argv[i], "-help") || STREQ(argv[i], "-version") ||
105 STREQ(argv[i], "--help") || STREQ(argv[i], "--version"))
{
106 fprintf(stderr, "This is analog version %s\n", VERSION);
107 fprintf(stderr, "For help see docs/Readme.html, or %s\n",
ANALOGURL);
108 my_exit(EXIT_SUCCESS);
109 }
110 }
111
112 /* once through command line arguments to see if default config
wanted */
(gdb) list init.c:21
16 #ifdef WIN32
17 Win32Init();
18 #endif
19 globals(argv[0]);
20 defaults(op);
21 settings(op, argc, argv);
22 correct(op);
23 finalinit(op);
24 }
25
(gdb) list analog.c:34
29 struct tm *pflt;
30 FILE *lf;
31 choice rc;
32
33 op = (Options *)xmalloc(sizeof(Options));
34 initialise(argc, argv, op);
35 if (vblesonly) {
36 report_vbles(op);
37 my_exit(EXIT_SUCCESS);
38 }
Thanks in advance,
Angus
--
Angus G Rae Computing Services
Science & Engineering Support Team University of Edinburgh
The above opinions are mine, and Edinburgh Uni can't have them.
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------