Help, my MathLink Examples segfault.
- To: mathgroup at smc.vnet.net
- Subject: [mg23178] Help, my MathLink Examples segfault.
- From: raholcom at unity.ncsu.edu (Richard Allan Holcombe)
- Date: Fri, 21 Apr 2000 00:47:06 -0400 (EDT)
- Organization: North Carolina State University
- Sender: owner-wri-mathgroup at wolfram.com
I would like to use mathlink. I downloaded the DeveloperKit, and the makefile
successfully compiled the example programs, but when I run the programs,
they crash. I am running mathematica 3.0 for students, on RedHat6.1 Linux
I have the latest mathlink.h, mathML.a files, and the
PrebuiltExamples work fine. When run through gdb I get:
(gdb) run
Starting program: /home/raholcom/mma/AddOns/MathLink/DevelopersKits/Linux/MathLinkExamples/reverse
Program received signal SIGSEGV, Segmentation fault.
0x4008cb57 in __uflow (fp=0x80783c8) at genops.c:328
328 genops.c: No such file or directory.
(gdb) where
#0 0x4008cb57 in __uflow (fp=0x80783c8) at genops.c:328
#1 0x40088e65 in _IO_getline_info (fp=0x80783c8, buf=0xbffff874 "", n=254,
delim=10, extract_delim=1, eof=0x0) at iogetline.c:67
#2 0x40088e16 in _IO_getline (fp=0x80783c8, buf=0xbffff874 "", n=254,
delim=10, extract_delim=1) at iogetline.c:39
#3 0x40088610 in _IO_fgets (buf=0xbffff874 "", n=255, fp=0x80783c8)
at iofgets.c:48
#4 0x8069df1 in MLRequest_unix ()
#5 0x804d05d in default_request_argv ()
#6 0x804ce96 in MLRequestArgv ()
#7 0x804bd1f in mlopen_argv ()
#8 0x804bbe2 in MLOpenArgv ()
#9 0x804a6d7 in _MLMain ()
#10 0x804a878 in MLMain ()
#11 0x804a044 in main ()
#12 0x4004f1eb in __libc_start_main (main=0x804a034 <main>, argc=1,
argv=0xbffffa74, init=0x8049b20 <_init>, fini=0x80761bc <_fini>,
rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffa6c)
at ../sysdeps/generic/libc-start.c:90
Does anyone know how to fix this?
Thanks.
--
Richard Holcombe