zorg.ch
#58003 by @ 01.12.2004 09:09 - nach oben -
64bit-Experten gesucht

Also, wie ihr sicher alle wisst ist der neue Zorg-Server ein Opteron.
Ich hab mich dazu entschlossen, das Ding im native, 64bit Modus zu betreiben. Plusminus laeuft das auch ganz gut, aber ein paar Applikationen machen Probleme. Einen Grossteil davon konnte ich auch selber loesen, aber momentan stehe ich vor einem Problem das mich ueberfordert.

Ich hoffe speziell darauf das einer der Software-Entwickler hier weiss wie man das Problem loesen koennte. Konkret geht es um die IRC Services, welche ueberhaupt nicht funktionieren. Das Programm stuerzt unvermittelt und ohne brauchbare Fehlermeldung ab.

Damit ich es ueberhaupt kompilieren konnte, musste ich zu den Parametern fuer den C-Compiler noch die Option '-fPIC' hinzufuegen. Diese bewirkt laut Doku folgendes:


-fPIC
If supported for the target machine, emit position-independent code, suitable for dynamic
linking and avoiding any limit on the size of the global offset table. This option makes
a difference on the m68k and the SPARC.

Position-independent code requires special support, and therefore works only on certain
machines.


Danach konnte ich das Programm zumindest mal kompilieren.

Wenn ich das Programm normal starte, also so das es automatisch in den Hintergrund forkt, klappt das auch alles. Will ich es jedoch unter dem Prozessmanagment starten, bei welchem es im Vordergrund laufen muss, funktioniert garnichts.


# /service/anope/run
zsh: segmentation fault (core dumped) /service/anope/run



root@yarak:anope [65|0] # gdb /usr/bin/services core
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `/usr/bin/services -nofork'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/mysql/libmysqlclient.so.14...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/mysql/libmysqlclient.so.14
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...
(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libm.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libssl.so.0.9.7...done.
Loaded symbols for /usr/lib/libssl.so.0.9.7
Reading symbols from /usr/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0 0x0000002a95b7d960 in strlen ()
from /lib/libc.so.6
(gdb) bt
#0 0x0000002a95b7d960 in strlen () from /lib/libc.so.6
#1 0x0000002a95b4bc75 in vfprintf () from /lib/libc.so.6
#2 0x0000002a95b4da94 in vfprintf () from /lib/libc.so.6
#3 0x0000002a95b4974f in vfprintf () from /lib/libc.so.6
#4 0x00000000004382d7 in alog ()
#5 0x000000000043623d in init ()
#6 0x0000000000439c49 in main ()
(gdb) Quit


Was ist da kaputt, und wie fixe ich es?
zorg.ch
#58005 by @ 01.12.2004 10:54 - nach oben -
Problem mit meid's Hilfe gefixt. Allen Log-Output nach stdout deaktiviert ;)
zorg.ch
#58007 by @ 01.12.2004 11:45 - nach oben -
Vielleicht willst du uns noch sagen was der Fehler war.
zorg.ch
#58025 by @ 01.12.2004 14:27 - nach oben -
Das weiss ich nicht. Ich weiss nur das es geht, wenn ich den Log-Output nach stdout deaktiviere (sprich, in den Sourcen auskommentiert habe).
zorg.ch
#58063 by @ 01.12.2004 17:17 - nach oben -
Hehe das tönt nach einem recht krassen workaround :)
zorg.ch
#58069 by @ 01.12.2004 18:03 - nach oben -
Du hast noch nie mit Branchensoftware gearbeitet, gell? :)
zorg.ch
#58070 by @ 01.12.2004 18:20 - nach oben -
haeh? verzell meh...
zorg.ch
#58074 by @ 01.12.2004 18:25 - nach oben -
Naja, war eine Anspielung darauf das nichts so krass bastelig ist wie branchensoftware. Ich sag nur:

id/data
int/field1;field2;field3
zorg.ch
#58105 by @ 01.12.2004 21:23 - nach oben -
Du hast glaub schon ein paar mal von der Branchensoftware erzÀhlt.
Ich kenn zum einen SAP was ja in gewisser weise auch eine Branchensoftware ist und zum andern kenn ich ein paar buchhaltungssoftgebastel von meinem Vater.
zorg.ch
#58112 by @ 01.12.2004 21:51 - nach oben -
Jo, Braso hab ich mehrmals erwaehnt, weil ich es so mag. :)
zorg.ch
#58092 by @ 01.12.2004 20:10 - nach oben -
HLZ. zum guten glĂŒck bekommt man bei OS-Software wenigstens die quellen mitgeliefert.