delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/17/13:43:47

From: Tuukka Kalliokoski <tuukka DOT kalliokoski AT koti DOT tpo DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Problems with LWP 2.0 / djgpp 2.03
Date: Sun, 17 Dec 2000 20:18:43 +0200
Organization: Tampere Telephone Plc
Lines: 51
Message-ID: <bg0q3t401q1enh09c6rssnieolj6f1o2ru@4ax.com>
NNTP-Posting-Host: ip5-134.dial.tpo.fi
Mime-Version: 1.0
X-Trace: news.koti.tpo.fi 977077139 26685 212.246.193.134 (17 Dec 2000 18:18:59 GMT)
X-Complaints-To: abuse AT tpo DOT fi
NNTP-Posting-Date: 17 Dec 2000 18:18:59 GMT
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi

Has anybody got the LWP multithreading package working 
with djgpp 2.03 ?  The package and example programs compile,
but running example1 produces following results (screen dump follows):

MAIN
MAIN
MAIN
MAIN
MAIN
MAIN
MAIN
MAIN
MAIN
MAIN
Exiting due to signal SIGSEGV
General Protection Fault at eip=000060b4
eax=3d4e464c ebx=0013b1b8 ecx=00000001 edx=0013b1bc esi=00000003
edi=00000001
ebp=00132f60 esp=00132f54 program=C:\DJGPP\CONTRIB\LWP\EXAMPLE1.EXE
cs: sel=00af  base=83397000  limit=00142fff
ds: sel=00b7  base=83397000  limit=00142fff
es: sel=00b7  base=83397000  limit=00142fff
fs: sel=0087  base=00015250  limit=0000ffff
gs: sel=00c7  base=00000000  limit=0010ffff
ss: sel=00b7  base=83397000  limit=00142fff
App stack: [00133000..000b3000]  Exceptn stack: [0001354c..0001160c]

Call frame traceback EIPs:
  0x000060b4
  0x00001fec
  0x00001806
  0x00004332

C:\djgpp\contrib\LWP>


The program should alternately print MAIN and PROC n as main and 4
threads execute. As you see, my compilation only executes the main
thread. After keypress the problam should kill the threads and exit,
mine gets a SIGSEGV.

I am running Win98, after experiencing problems with Win2k and make...
djgpp version is 2.03, gcc is 2.95.2 and the lwp package is 2.0 from
jtlwp20.zip.


br
Tuukka

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019