Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Help, my MathLink Examples segfault.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23219] Re: Help, my MathLink Examples segfault.
  • From: paulh at wolfram.com (P.J. Hinton)
  • Date: Mon, 24 Apr 2000 01:12:26 -0400 (EDT)
  • Organization: "Wolfram Research, Inc."
  • References: <8domf0$jng@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <8domf0$jng at smc.vnet.net>,
 raholcom at unity.ncsu.edu (Richard Allan Holcombe) writes:

> 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?  

The version of GCC for Red Hat Linux 6.x distributions links against
version 2.1 of the GNU C runtime library.  You must download a 
specially compiled version of libML.a from the WRI Technical Support
website.  See this URL:

http://support.wolfram.com/MathLink/Linux/RedHat6.html

This issue is not limited to Red Hat 6.x.  You will also find that
this is the case for recent releases of other Linux distributions
such as SuSE 6.2 and Caldera OpenLinux 2.3.

-- 
P.J. Hinton
Mathematica Programming Group           paulh at wolfram.com
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.


  • Prev by Date: Re: how to rank a list of elements?
  • Next by Date: Re: A simple programming question.
  • Previous by thread: Re: Help, my MathLink Examples segfault.
  • Next by thread: Re: Help, my MathLink Examples segfault.