1. xthreads

------=_NextPart_000_006F_01C07F33.0C177F20
        boundary="----=_NextPart_001_0070_01C07F33.0C177F20"


------=_NextPart_001_0070_01C07F33.0C177F20
        charset="iso-8859-1"

Hi,
  I'm trying to write a cross-platform threads library. So far, I've =
only got one function coded for Linux. Here's my problem...when I
try to create a thread, I get this error:

Segmentation fault(core dumped)

For some reason, gdb can't read the 'core' file...I've attached what =
I've coded so far.

------=_NextPart_001_0070_01C07F33.0C177F20
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; I'm trying to write a =
cross-platform threads=20
library. So far, I've only got one function coded for Linux. Here's my=20
problem...when I</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>try to create a thread, I get this=20
error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Segmentation fault(core =
dumped)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>For some reason, gdb can't read the =
'core'=20

------=_NextPart_001_0070_01C07F33.0C177F20--

------=_NextPart_000_006F_01C07F33.0C177F20
        name="xthreads.tar.Z"

new topic     » topic index » view message » categorize

2. Re: xthreads

Unfortunately, seg faults can come from MANY different coding errors.
I have not looked at your source code yet because i believe that you should
look into it a little deeper yourself (one function wrapped did you say?). its
probably something stupid thats causing the segmentation fault. Sorry if i
sound pig-headed and stuff but i think its better to figure stuff out
yourself if you can first and if you cant, then get help. If you cant figure
it out soon, ill look at it for you :)

-- 
evil, corruption and bad taste
^[cense]

new topic     » goto parent     » topic index » view message » categorize

3. Re: xthreads

On Wed, 17 Jan 2001 07:42:17 -0700, cEnsE <cense at MAIL.RU> wrote:

>Unfortunately, seg faults can come from MANY different coding errors.
>I have not looked at your source code yet because i believe that you should
>look into it a little deeper yourself (one function wrapped did you say?).
its
>probably something stupid thats causing the segmentation fault. Sorry if i
>sound pig-headed and stuff but i think its better to figure stuff out
>yourself if you can first and if you cant, then get help. If you cant
figure
>it out soon, ill look at it for you :)

Yeah, thanks, I'll try to see what's wrong. And believe me, I make a LOT
of stupid mistakes :)

 - Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu