EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Setup private server on PCDuino (https://www.eqemulator.org/forums/showthread.php?t=37321)

Xumtiil 10-08-2013 02:54 PM

I saw that, but considering most of the linux boxes i toy with are headless, and therefore without any gui, I need to use command lines to download things. The subversion was easy to get, albeit a bit slow, but the googledocs page does not provide any proper links to use wget or any other downloader option. It makes downloading those a pain - I actually need to download it manually on my windows and upload it to my linux with scp :/

demonstar55 10-08-2013 03:21 PM

Download on desktop, FTP or some other way?

lerxst2112 10-08-2013 10:44 PM

There's no available command line SVN client? I use it all the time on my linux boxes.

xellosdark 10-09-2013 08:14 PM

Quote:

Originally Posted by lerxst2112 (Post 224604)
Ideally it would be great if all the parts ran on the device, but right now they can't. It just seems that rather than let that stop you from trying to get the other 90% of the server working you just work around that small issue and move on to the rest.

Is the crash while generating the shared memory file or when it's trying to load it? How big is the file compared to the free memory on the device?

I have same problem when running share memory, this is the output of "free -m"

eqemu@fl-pcduino:~/source/build/Bin$ free -m
total used free shared buffers cached
Mem: 812 446 365 0 24 231
-/+ buffers/cache: 190 621
Swap: 0 0 0

Maybe I need to check the memory file generated.

demonstar55 10-09-2013 09:33 PM

If you tell me how to run PCDuino in QEMU, I might be able to get the LS crypto compiled for it.

xellosdark 10-11-2013 11:20 PM

Problem is found in shared_memory module, "Segmentation fault", in session of load
- Skill Cap
- Spells

I tried to debug the case and found that problem should occur in handling string

1) LoadSkillCaps
- no problem is found when I do not use the subroutine MakeAnyLenString
2) LoadSpells
- this trick does not work, segmentation fault still return when RunQuery handling the input SQL

When compiling the software, warning is found

/media/SDCARD/home/eqemu/source/Server/common/debug.h:107:7: note: the mangling of ‘va_list’ has changed in GCC 4.4

Will it cause any problem? (search from web, it seems that is a warning only)

xellosdark 10-14-2013 05:39 AM

It seems that that is a hint

Old:
if(RunQuery(query, MakeAnyLenString(&query,
"SELECT * FROM spells_new ORDER BY id ASC"),
errbuf, &result)) {
safe_delete_array(query);
-> It is found that value of variable "query" was corrupted

After changing the code into
uint32 length = MakeAnyLenString(&query, "SELECT * FROM spells_new ORDER BY id ASC");
if(RunQuery(query, length,
errbuf, &result)) {

The problem is solved. Is there any option in compiler will cause this problem?

How could I check the compiler options and version? I think that I am using gcc 4.6.3

eqemu@fl-pcduino:~/source/build$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)


All times are GMT -4. The time now is 04:55 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.