Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
GetDataInfo function seg fault (Read 2687 times)
flashtop
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 18
GetDataInfo function seg fault
Aug 28th, 2009 at 2:53am
 
hy guys

I think I might have found a seg fault error. If the GetDataInfo(matrix, DataFilterID, ...) batch language command is run with an empty Datafilter, I get a segmentation fault.

BTW, is there an error printing command which prints the buffer immediately? I was unable to locate the problem using the HYPHYMP execution from the command line as the "fprintf" statements I used to track the error weren't executed before the Seg Fault error.

However, when using the GTK GUI I was able to track the error line before the GUI printed out the seg fault

Hope this helps you guys
Gordon
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: GetDataInfo function seg fault
Reply #1 - Aug 28th, 2009 at 5:52pm
 
Dear Gordon,

You should not be able to create empty filters in HyPhy, so if you can – that's a bug! Can you attach some example code that crashes the program?

Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
flashtop
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 18
Re: GetDataInfo function seg fault
Reply #2 - Aug 30th, 2009 at 5:19am
 
Hey Sergei

I get a seg fault with just a one line batchfile with the GetDataInfo command. If the data filter does not exist ( such as a typo in the filter name or if it hasn't been created yet ) it seg faults.

i.e. my data filter was called "part" but I made a caps typo in the command and called it "Part", which caused the error.

ciao
gordon
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: GetDataInfo function seg fault
Reply #3 - Sep 1st, 2009 at 10:25am
 
Dear Gordon,

The current (SVN 605) version of HyPhy reports an error if I try

Code:
GetDataInfo(res,garbageID,1,1);
 



but does not segfault. Can you confirm which version is crashing in your example?

Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged