Linux problems

General discussion forum - for all that doesn't fit in any other category.
Post Reply
AdamK
Posts: 5
Joined: Mon Dec 10, 2012 8:25 pm

Linux problems

Post by AdamK »

Hi.

With some problems, I compiled linux version of emulator software. Unfortunately, it hangs at startup. Here is backtrace after I recompiled everything once more without optimization and with debug info:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000724868 in ?? ()
(gdb) bt
#0 0x0000000000724868 in ?? ()
#1 0x00007ffff7b6074f in doContent (parser=0x76b330, startTagLevel=0, enc=0x7ffff7db7620 <latin1_encoding>,.
s=0x76beb5 "</disk_layout_name>\r\n\t<disk_layout_description>Standard 3\"5 DOS DD Floppy Disk</disk_layout_description>\r\n\t<prefered_fi
haveMore=0 '\000') at ../sources/thirdpartylibs/expat/expat-2.1.0/lib/xmlparse.c:2532
#2 0x00007ffff7b5f23a in contentProcessor (parser=0x76b330,.
start=0x76be87 "<disk_layout>\r\n\t<disk_layout_name>DOS_DD_720KB</disk_layout_name>\r\n\t<disk_layout_description>Standard 3\"5 DOS DD Fl
at ../sources/thirdpartylibs/expat/expat-2.1.0/lib/xmlparse.c:2105
#3 0x00007ffff7b63a8b in doProlog (parser=0x76b330, enc=0x7ffff7db7620 <latin1_encoding>,.
s=0x76be87 "<disk_layout>\r\n\t<disk_layout_name>DOS_DD_720KB</disk_layout_name>\r\n\t<disk_layout_description>Standard 3\"5 DOS DD Floppy
next=0x76be87 "<disk_layout>\r\n\t<disk_layout_name>DOS_DD_720KB</disk_layout_name>\r\n\t<disk_layout_description>Standard 3\"5 DOS DD Flo
at ../sources/thirdpartylibs/expat/expat-2.1.0/lib/xmlparse.c:4016
#4 0x00007ffff7b633ab in prologProcessor (parser=0x76b330,.
s=0x76be30 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n<!-- HxC Floppy Emulator Disk Layout -->\r\n<disk_layout>\r\n\t<disk_layout
at ../sources/thirdpartylibs/expat/expat-2.1.0/lib/xmlparse.c:3739
#5 0x00007ffff7b63319 in prologInitProcessor (parser=0x76b330,.
s=0x76be30 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n<!-- HxC Floppy Emulator Disk Layout -->\r\n<disk_layout>\r\n\t<disk_layout
at ../sources/thirdpartylibs/expat/expat-2.1.0/lib/xmlparse.c:3556
#6 0x00007ffff7b5e2d7 in XML_Parse (parser=0x76b330,.
s=0x76be30 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n<!-- HxC Floppy Emulator Disk Layout -->\r\n<disk_layout>\r\n\t<disk_layout
at ../sources/thirdpartylibs/expat/expat-2.1.0/lib/xmlparse.c:1558
#7 0x00007ffff7b5b3ee in hxcfe_getXmlLayoutDesc (context=0x76b310, moduleID=0) at ../sources/xml_disk/xml_disk.c:598
#8 0x000000000040f20a in Main_Window::Main_Window() ()
#9 0x000000000040d280 in main ()

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Linux problems

Post by Jeff »

Yes,this is a known issue : there is an "hard-to-find" problem with the expat xml parser added recently to the software on Linux.
This is working fine on MacOs X and Windows, but got this problem under Linux. Still working on this.
The problem seems to happen at the callback calling.

As workaround please use the command line version (hxcfe).
or comment these line into main_gui.cxx :

Code: Select all

	rfb=hxcfe_initXmlFloppy(guicontext->hxcfe);
	i = 0;
	while(i< hxcfe_numberOfXmlLayout(rfb) )
	{
		temp = (char*)hxcfe_getXmlLayoutDesc(rfb,i);
		if(temp)
		{
			disklayout_choices[i+1].text = (const char*)malloc(strlen(temp)+1);
			if(disklayout_choices[i+1].text)
				strcpy((char*)disklayout_choices[i+1].text, temp);
		}
		i++;
	}
	hxcfe_deinitXmlFloppy(rfb);

AdamK
Posts: 5
Joined: Mon Dec 10, 2012 8:25 pm

Re: Linux problems

Post by AdamK »

I compiled it sucessfully, but I get 'FTDI D2XX Driver not installed!' when opening config window (for USB floppy emulator, plugged in, but not plugged as floppy to anything).

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Linux problems

Post by Jeff »

AdamK wrote:I compiled it sucessfully, but I get 'FTDI D2XX Driver not installed!' when opening config window (for USB floppy emulator, plugged in, but not plugged as floppy to anything).
The expat issue and linux USB support are now corrected. Just make an update from the trunk.

For the driver you need to install this :

http://www.ftdichip.com/Drivers/D2XX.htm
http://www.ftdichip.com/Drivers/D2XX/Li ... -linux.txt

Post Reply