/lib/lsb/init-functions: Segmentation fault

127 views
Skip to first unread message

lkgs

unread,
May 30, 2011, 12:33:31 PM5/30/11
to APE Project
Hello everybody,

at first, excuse me for my bad English please.

At the end of the week (Saturday), I have to give away a practical
work for my university study, but my own APE-server modul won't work.
I can start my server, but after a certain period of time, the server
terminates unexpectedly.

The error message in the shell console is:
/lib/lsb/init-functions: line 30: 5812 Segmentation fault /sbin/
start-stop idfile" -- "$@"
failed!

Does anyone know this error message?
Or can help me with my server module?

It think the line of code is causing in the method called
'updateScreens' in the class ContentGenerator (see line 92 of the
document).

You can download the full javascript code of the module here:
http://www.file-upload.net/download-3470118/MySQL.js.html

And here is a cutting of the Ape-config-file (/etc/ape/ape.conf):
Server {
port = 6969
daemon = no
ip_listen = 0.0.0.0
domain = auto
rlimit_nofile = 10000
pid_file = /var/run/aped.pid
}

Log {
debug = 1
use_syslog = 0
logfile = /var/log/ape.log
}

I hope someone can help me and thank you for your time you invested
here already.
If you have any questions, please ask.

Best regards,
Michael

Anthony Catel

unread,
May 30, 2011, 12:50:04 PM5/30/11
to ape-p...@googlegroups.com
Hi,

Are you using APE 1.1.0?

Thanks

Le 30/05/2011 18:33, lkgs a �crit :

lkgs

unread,
May 31, 2011, 4:39:37 AM5/31/11
to APE Project
Hello,

an no, it was APE 1.0.

But now, first i want to upgrade my APE.

Yesterday night (in Germany) I wanted to install APE 1.1.0, but first
I get problems with the "libmysqlclient16"-dependency and must add a
backport-source to get this files (unter Debian Lenny, 64bit). Here is
the url, if someone is interested to that:
Sources.list
> deb http://backports.debian.org/debian-backports lenny-backports main
Or directly in web under: http://packages.debian.org/lenny-backports/libmysqlclient16

After installation, I wanted to run my server modul-plugin, but I get
an error: /usr/bin/aped: symbol lookup error: /usr/lib/ape/
libmod_spidermonkey.so: undefined symbol: scramble

It's the same as in:
http://groups.google.com/group/ape-project/browse_thread/thread/bf7eb99f05551bbe

This morning I discovered, that once a new version (1.1.1) is
availible and I wanted to install this source with the
APE_Server-1.1.1-amd64.deb-File (http://www.ape-project.org/stable/
APE_Server-1.1.1-amd64.deb).
But there seems to be another error an while execute in bash I got the
error:
> dpkg: error processing APE_Server-1.1.1-amd64.deb (--install):
> package architecture (i386) does not match system (amd64)

I still contected the IRC Channel and Martin (User: Mekza) would take
care of it and now I hope I can test my servermodule in a few hours
once again. Then I will report you and keep you posted.

Greetings,
Michael

Anthony Catel

unread,
May 31, 2011, 10:36:14 AM5/31/11
to ape-p...@googlegroups.com
Hi,

Oups indeed. Just fixed the amd64 package.

Le 31/05/2011 10:39, lkgs a �crit :

lkgs

unread,
May 31, 2011, 11:27:15 AM5/31/11
to APE Project
Okay,

now APE is running in Version 1.1.1 on my server.
But I still get the referenced message "/usr/bin/aped: symbol lookup
error: /usr/lib/ape/libmod_spidermonkey.so: undefined symbol: scramble
failed!" while including my MySQL-Serverside-Module.

In this topic (http://groups.google.com/group/ape-project/
browse_thread/thread/bf7eb99f05551bbe), Pierre answered:
"Ok I compiled libmod_spidermonkey.so with sources, and all is fine."
-> But how can I compile the Unix Library (*.so) once again for error-
free execution?

I am grateful for your help.

Best wishes from Germany,
Michael


On 31 Mai, 16:36, Anthony Catel <a.ca...@weelya.com> wrote:
> Hi,
>
> Oups indeed. Just fixed the amd64 package.
>
> Le 31/05/2011 10:39, lkgs a crit :
>
>
>
>
>
>
>
> > Hello,
>
> > an no, it was APE 1.0.
>
> > But now, first i want to upgrade my APE.
>
> > Yesterday night (in Germany) I wanted to install APE 1.1.0, but first
> > I get problems with the "libmysqlclient16"-dependency and must add a
> > backport-source to get this files (unter Debian Lenny, 64bit). Here is
> > the url, if someone is interested to that:
> > Sources.list
> >> debhttp://backports.debian.org/debian-backportslenny-backports main
> > Or directly in web under:http://packages.debian.org/lenny-backports/libmysqlclient16
>
> > After installation, I wanted to run my server modul-plugin, but I get
> > an error: /usr/bin/aped: symbol lookup error: /usr/lib/ape/
> > libmod_spidermonkey.so: undefined symbol: scramble
>
> > It's the same as in:
> >http://groups.google.com/group/ape-project/browse_thread/thread/bf7eb...

Anthony Catel

unread,
May 31, 2011, 12:37:02 PM5/31/11
to ape-p...@googlegroups.com
Yes, it seems that there is an issue with mysql.

What you need is to compile APE from the source :

Download this : https://github.com/APE-Project/APE_Server/tarball/master

Try this :

# apt-get install zip
$ tar -xzf file.tar.gz && cd APE_Server/
$ sh build.sh
$ cd modules/deps/ && make
$ cd ../ && make && cd ../ && make

Le 31/05/2011 17:27, lkgs a �crit :

lkgs

unread,
May 31, 2011, 1:26:29 PM5/31/11
to APE Project
Hey,

now, I can start the APE Server in the newest version (1.2-dev). Also
I can see my module in the loading list: [JS] Loading script ../
scripts/plugins/MySQL.js... , but while starting the module class, the
code have to set up a MySQL-Connection, but there isn't any (debug)
output in the logfile or system output of ./aped.

And I noticed that there isn't a Makefile in directory modules/deps/.
Only in modules/deps/mysac/-folder, which is included in the main
Makefile.

But where is my MySQL-Connection, which could be set up and used by
the servermodule?! :/

I think it will not be possible to finish my project until Saturday...
But APE would have been such a nice and interessting topic.

Best regards,
Michael

Anthony Catel

unread,
May 31, 2011, 1:29:18 PM5/31/11
to ape-p...@googlegroups.com
I don't understand.
The connection to MySQL isn't working?

Yes sorry the makefile was in mysac

Le 31/05/2011 19:26, lkgs a �crit :


> Hey,
>
> now, I can start the APE Server in the newest version (1.2-dev). Also
> I can see my module in the loading list: [JS] Loading script ../
> scripts/plugins/MySQL.js... , but while starting the module class, the
> code have to set up a MySQL-Connection, but there isn't any (debug)
> output in the logfile or system output of ./aped.
>
> And I noticed that there isn't a Makefile in directory modules/deps/.
> Only in modules/deps/mysac/-folder, which is included in the main
> Makefile.
>
> But where is my MySQL-Connection, which could be set up and used by
> the servermodule?! :/
>
> I think it will not be possible to finish my project until Saturday...
> But APE would have been such a nice and interessting topic.
>
> Best regards,
> Michael
>
>
> On 31 Mai, 18:37, Anthony Catel<a.ca...@weelya.com> wrote:
>> Yes, it seems that there is an issue with mysql.
>>
>> What you need is to compile APE from the source :
>>
>> Download this :https://github.com/APE-Project/APE_Server/tarball/master
>>
>> Try this :
>>
>> # apt-get install zip

>> $ tar -xzf file.tar.gz&& cd APE_Server/


>> $ sh build.sh
>> $ cd modules/deps/&& make

>> $ cd ../&& make&& cd ../&& make

Anthony Catel

unread,
May 31, 2011, 1:33:08 PM5/31/11
to ape-p...@googlegroups.com
BTW : Ape.log output in stdout while not running with "daemon = yes".

So If I understand.

It was working with 1.0 but not with 1.2-dev ?

Le 31/05/2011 19:29, Anthony Catel a �crit :

lkgs

unread,
May 31, 2011, 1:35:28 PM5/31/11
to APE Project
Ahhh, I get an error when I execute my Makefile in mysac-directory:

Server:/home/xxx/APE-Project-APE_Server-358ea62/modules/deps/mysac#
make
make lib
make[1]: Entering directory `/home/xxx/APE-Project-APE_Server-358ea62/
modules/deps/mysac'
cc -DBUILDVER=0.4b -I/usr/include/mysql -O0 -g -Wall -fPIC -c -o
mysac.o mysac.c
mysac.c:24:25: error: mysql/mysql.h: No such file or directory

What files I need in directory /usr/include/mysql ?

Anthony Catel

unread,
May 31, 2011, 1:36:38 PM5/31/11
to ape-p...@googlegroups.com
apt-get install libmysqlclient-dev

Le 31/05/2011 19:35, lkgs a �crit :

Anthony Catel

unread,
May 31, 2011, 1:37:19 PM5/31/11
to ape-p...@googlegroups.com
Oh and you need to re-run build.sh after that

Le 31/05/2011 19:36, Anthony Catel a �crit :

lkgs

unread,
May 31, 2011, 2:26:37 PM5/31/11
to APE Project
Okay, now my APE-server runs with MySQL-support.

But still have an error while executing my serverside-module-script:
Segmentation fault.
It's the same error as at begin of this conversation.

And so there are stille the questions:
> Does anyone know this error message?
> Or can help me with my server module?

I don't know, whats wrong.

To the concept of the servermodul:
The server have to fetch data dynamically via MySQL and send them to
all clients are actually connected on the channel.

But my special thanks to you, Anthony !!

Nicolas

unread,
Jun 14, 2011, 7:33:17 AM6/14/11
to APE Project
Be careful,

cd modules/deps/

should read

cd modules/deps/mysac



On 31 mai, 19:26, lkgs <l...@arcor.de> wrote:
> Okay, now my APE-server runs withMySQL-support.
>
> But still have an error while executing my serverside-module-script:
> Segmentation fault.
> It's the same error as at begin of this conversation.
>
> And so there are stille the questions:
>
> > Does anyone know this error message?
> > Or can help me with my server module?
>
> I don't know, whats wrong.
>
> To the concept of the servermodul:
> The server have to fetch data dynamically viaMySQLand send them to
> all clients are actually connected on the channel.
>
> But my special thanks to you, Anthony !!
>
> On 31 Mai, 19:37, Anthony Catel <a.ca...@weelya.com> wrote:
>
>
>
>
>
>
>
> > Oh and you need to re-run build.sh after that
>
> > Le 31/05/201119:36, Anthony Catel a crit :
>
> > > apt-get install libmysqlclient-dev
>
> > > Le 31/05/201119:35, lkgs a crit :
> > >> Ahhh, I get an error when I execute my Makefile in mysac-directory:
>
> > >> Server:/home/xxx/APE-Project-APE_Server-358ea62/modules/deps/mysac#
> > >> make
> > >> make lib
> > >> make[1]: Entering directory `/home/xxx/APE-Project-APE_Server-358ea62/
> > >> modules/deps/mysac'
> > >> cc -DBUILDVER=0.4b -I/usr/include/mysql-O0 -g -Wall -fPIC   -c -o

Nicolas Guibert

unread,
Jun 14, 2011, 8:28:27 AM6/14/11
to APE Project
Oops, I am not completely sure of what i have just said. Check for yourself.



2011/6/14 Nicolas <ioa.g...@googlemail.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/

Reply all
Reply to author
Forward
0 new messages