Strange problem when building & running aped on new server

34 views
Skip to first unread message

pavimus

unread,
Feb 23, 2011, 2:10:19 AM2/23/11
to APE Project
Hi, All!

I successfully used aped on my previous server, and ape is great! now
i must setup it on my new server and i got problems: aped compiles
successully, but when i run it, see the error:

h03 bin # ./aped
_ ___ ___
/_\ | _ \ __|
/ _ \| _/ _|
/_/ \_\_| |___|
AJAX Push Engine

Bind on port 6969

Version : 1.01dev
Build : Feb 21 2011 11:30:16
Author : Weelya (con...@weelya.com)

[Module] Failed to load ../modules/lib/libmod_spidermonkey.so [Invalid
library] (../modules/lib/libmod_spidermonkey.so: undefined symbol:
memcpy_fixed)

I found, that problem is in mysac library, after adding:
#ifdef BAD_MEMCPY /* Problem with gcc on Alpha
*/
#define memcpy_fixed(A,B,C) bmove((A),(B),(C))
#else
#define memcpy_fixed(A,B,C) memcpy((A),(B),(C))
#endif

to mysac.h (i taked this code from /usr/include/mysql/m_string.h).
When i tried to include mysql/m_string.h in mysac.h
it fails to compile. Now i got next error from tracemonkey:

/_\ | _ \ __|
/ _ \| _/ _|
/_/ \_\_| |___|
AJAX Push Engine

Bind on port 6969

Version : 1.01dev
Build : Feb 23 2011 06:56:18
Author : Weelya (con...@weelya.com)

[Module] [spidermonkey] Loading module : Javascript embeded (0.01) -
Anthony Catel
[JS] Loading script ../scripts/framework/mootools.js...
Segmentation fault

there is coredump backtrace:
#0 0x00000267d34de1f3 in nanojit::CodeAlloc::alloc(unsigned char*&,
unsigned char*&) () from ../modules/lib/libmod_spidermonkey.so
(gdb) bt
#0 0x00000267d34de1f3 in nanojit::CodeAlloc::alloc(unsigned char*&,
unsigned char*&) () from ../modules/lib/libmod_spidermonkey.so
#1 0x00000267d34d9438 in nanojit::Assembler::codeAlloc(unsigned
char*&, unsigned char*&, unsigned char*&) ()
from ../modules/lib/libmod_spidermonkey.so
#2 0x00000267d34f46da in nanojit::Assembler::nativePageSetup() ()
from ../modules/lib/libmod_spidermonkey.so
#3 0x00000267d34d9ae5 in
nanojit::Assembler::beginAssembly(nanojit::Fragment*) () from ../
modules/lib/libmod_spidermonkey.so
#4 0x00000267d34e3f59 in nanojit::compile(nanojit::Assembler*,
nanojit::Fragment*, nanojit::Allocator&) ()
from ../modules/lib/libmod_spidermonkey.so
#5 0x00000267d34b471e in TraceRecorder::compile() () from ../modules/
lib/libmod_spidermonkey.so
#6 0x00000267d34bef95 in TraceRecorder::closeLoop(SlotMap&,
VMSideExit*) () from ../modules/lib/libmod_spidermonkey.so
#7 0x00000267d34bf4a5 in TraceRecorder::closeLoop(VMSideExit*) ()
from ../modules/lib/libmod_spidermonkey.so
#8 0x00000267d34c3db4 in TraceRecorder::checkTraceEnd(unsigned char*)
() from ../modules/lib/libmod_spidermonkey.so
#9 0x00000267d34d57e9 in TraceRecorder::monitorRecording(JSOp) ()
from ../modules/lib/libmod_spidermonkey.so
#10 0x00000267d34fd34a in js_Interpret () from ../modules/lib/
libmod_spidermonkey.so
#11 0x00000267d3414810 in js_Execute () from ../modules/lib/
libmod_spidermonkey.so
#12 0x00000267d33c7956 in JS_ExecuteScript () from ../modules/lib/
libmod_spidermonkey.so
#13 0x00000267d33bf99f in ape_sm_include () from ../modules/lib/
libmod_spidermonkey.so
#14 0x00000267d3413824 in js_Invoke () from ../modules/lib/
libmod_spidermonkey.so
#15 0x00000267d34f7d45 in js_Interpret () from ../modules/lib/
libmod_spidermonkey.so
#16 0x00000267d3413d7d in js_Invoke () from ../modules/lib/
libmod_spidermonkey.so
#17 0x00000267d3414392 in js_InternalInvoke () from ../modules/lib/
libmod_spidermonkey.so
#18 0x00000267d33c738a in JS_CallFunctionValue () from ../modules/lib/
libmod_spidermonkey.so
#19 0x00000267d33beb63 in ape_fire_callback.clone.5 () from ../modules/
lib/libmod_spidermonkey.so
#20 0x00000267d33bf816 in init_module () from ../modules/lib/
libmod_spidermonkey.so
#21 0x0000003e0fe18191 in findandloadplugin ()
#22 0x0000003e0fe0ca48 in main ()


Can anyone give me advice how solve this problems? which additional
info is needed?

info about new server:
Hardened Gentoo Linux amd64
gcc version 4.5.1 (Gentoo Hardened 4.5.1-r1 p1.4, pie-0.4.5)
glibc-2.12.1
kernel 2.6.36-hardened-
r6
mysql 5.1.53

Thanks for help!

tunisiano

unread,
Feb 23, 2011, 9:12:49 AM2/23/11
to APE Project
try to install libmysql++-dev after that re-compile aped

On Feb 23, 8:10 am, pavimus <pavi...@gmail.com> wrote:
> Hi, All!
>
> I successfully used aped on my previous server, and ape is great! now
> i must setup it on my new server and i got problems: aped compiles
> successully, but when i run it, see the error:
>
> h03 bin # ./aped
>    _   ___ ___
>   /_\ | _ \ __|
>  / _ \|  _/ _|
> /_/ \_\_| |___|
> AJAX Push Engine
>
> Bind on port 6969
>
> Version : 1.01dev
> Build   : Feb 21 2011 11:30:16
> Author  : Weelya (cont...@weelya.com)
>
> [Module] Failed to load ../modules/lib/libmod_spidermonkey.so [Invalid
> library] (../modules/lib/libmod_spidermonkey.so: undefined symbol:
> memcpy_fixed)
>
> I found, that problem is in mysac library, after adding:
> #ifdef BAD_MEMCPY                       /* Problem with gcc on Alpha
> */
> #define memcpy_fixed(A,B,C) bmove((A),(B),(C))
> #else
> #define memcpy_fixed(A,B,C) memcpy((A),(B),(C))
> #endif
>
> to mysac.h (i taked this code from /usr/include/mysql/m_string.h).
> When i tried to include mysql/m_string.h in mysac.h
> it fails to compile. Now i got next error from tracemonkey:
>
>   /_\ | _ \ __|
>  / _ \|  _/ _|
> /_/ \_\_| |___|
> AJAX Push Engine
>
> Bind on port 6969
>
> Version : 1.01dev
> Build   : Feb 23 2011 06:56:18
> Author  : Weelya (cont...@weelya.com)

Pavel Gushcha

unread,
Feb 24, 2011, 8:43:47 AM2/24/11
to ape-p...@googlegroups.com, tunisiano
Thanks for answer!

libmysql++-dev - as i understood, this is for ubuntu. In my gentoo I
did following:

1. Installed mysql++ version 3.0.9
2. Cloned APE_Server from git to new directory
3. built aped

after starting i got my old error:


[Module] Failed to load ../modules/lib/libmod_spidermonkey.so [Invalid
library] (../modules/lib/libmod_spidermonkey.so: undefined symbol:
memcpy_fixed)

What changes installed mysql++, mysac will use it?

Thanks for help!

2011/2/23 tunisiano <tun...@gmail.com>:

> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to ape-p...@googlegroups.com
> To unsubscribe from this group, send email to
> ape-project...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

Doug

unread,
Feb 25, 2011, 12:06:33 PM2/25/11
to APE Project
Hey Pavel,

I just did what you did, moved my old installation over to a new
server, what I did was I copied the exact directory over (from my old
server) and it seemed to get rid of the spidermonkey.so problem that I
had.

Hope this helps,
Doug

On Feb 24, 6:43 am, Pavel Gushcha <pavi...@gmail.com> wrote:
> Thanks for answer!
>
> libmysql++-dev - as i understood, this is for ubuntu. In my gentoo I
> did following:
>
> 1. Installed mysql++ version 3.0.9
> 2. Cloned APE_Server from git to new directory
> 3. built aped
>
> after starting i got my old error:
> [Module] Failed to load ../modules/lib/libmod_spidermonkey.so [Invalid
> library] (../modules/lib/libmod_spidermonkey.so: undefined symbol:
> memcpy_fixed)
>
> What changes installed mysql++, mysac will use it?
>
> Thanks for help!
>
> 2011/2/23 tunisiano <tuni...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages