niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
Callback from threaded c-library
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Kim Karlsson
*nix forums beginner


Joined: 21 Feb 2005
Posts: 1

PostPosted: Mon Feb 21, 2005 12:18 pm    Post subject: Callback from threaded c-library Reply with quote

Hi all,

I am using Perl 5.8.0, using Red Hat 9 with a 2.6.9 kernel on a dual-Xeon
machine,
and I shared object I need to use. This shared object has a working thread
which calls a callback when it has finished working.
I have written an extension (following the instructions (the one with the
FH) in
http://www.tfug.org/helpdesk/perl/pod/perlcall.html#Strategies_for_storing_Calback_)
in Perl to access this shared object.

The problem I have is that if the thread calls the callback (to a Perl
sub), I get a segmentation fault. If the callback is called before the
thread starts executing, it all works fine. If I use a C program to setup
the callback and have the thread call the callback, it all works. Thus it
seems there is something going wrong with Perl.
The odd thing is that it crashes -before- it enters the private C function
that calls the Perl sub.

Are there any knows issues with Perl and external threads that I don't
know about, or does anyone know what I can do ?

Cheers,
-Kim
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Wed Jan 07, 2009 11:16 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts statistics library Arkadiusz Stasiak C++ 1 Fri Jul 21, 2006 11:40 am
No new posts Bug#379051: ITP: libsvm -- LibSVM is a machine-learning l... Rudi Cilibrasi devel 0 Thu Jul 20, 2006 9:00 pm
No new posts Bug#379048: ITP: libcsoap -- library in C for SOAP networ... Rudi Cilibrasi devel 0 Thu Jul 20, 2006 7:30 pm
No new posts Bug#378939: ITP: libcomplearn -- machine learning through... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 8:40 pm
No new posts Bug#378878: ITP: libsvm-ruby1.8 -- Ruby binding to the Li... Rudi Cilibrasi devel 4 Wed Jul 19, 2006 1:50 pm

Mortgages | Comprar vivienda Denia | Credit Cards | Myspace Layouts | Agencia de viagens
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1183s ][ Queries: 16 (0.0542s) ][ GZIP on - Debug on ]