Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

each server crash #193

Closed
lukyrys opened this issue Jan 2, 2015 · 12 comments
Closed

each server crash #193

lukyrys opened this issue Jan 2, 2015 · 12 comments

Comments

@lukyrys
Copy link

lukyrys commented Jan 2, 2015

latest commit (d98f99b) on linux crashed. Compiled with and without 64bit support.. on windows run normally..
how to solve?

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Status]: Memory manager initialised: log/login-server.leaks


                   rAthena Development Team presents
                      ___   __  __
                _____/   | / /_/ /_  ___  ____  ____ _
               / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/
              / /  / ___ / /_/ / / /  __/ / / / /_/ /
             /_/  /_/  |_\__/_/ /_/\___/_/ /_/\__,_/

                     http://rathena.org/board/

[Warning]: You are running rAthena with root privileges, it is not necessary.
[Info]: Server supports up to '1024' concurrent connections.
[Info]: loginconfig: client_version_to_connect = 46
[02/Jan 15:00 L:][Info]: Finished reading conf/import/inter_conf.txt.
[02/Jan 15:00 L:][Info]: Finished reading conf/inter_athena.conf.
[02/Jan 15:00 L:][Info]: Finished reading conf/import/login_conf.txt.
[02/Jan 15:00 L:][Info]: Finished reading conf/login_athena.conf.
[02/Jan 15:00 L:][Info]: Done reading '23' messages in 'conf/msg_conf/login_msg.conf'.
[New Thread 0x7ffff5e79700 (LWP 19461)]
[Thread 0x7ffff5e79700 (LWP 19461) exited]
[02/Jan 15:00 L:][Info]: Ipban conection made

Program received signal SIGSEGV, Segmentation fault.
0x00000000004149bc in db_alloc ()
(gdb) bt full
#0  0x00000000004149bc in db_alloc ()
No symbol table info available.
#1  0x0000000000408d0a in do_init ()
No symbol table info available.
#2  0x0000000000404c25 in main ()
No symbol table info available.

EDIT - UPDATE after enable debug

Program received signal SIGSEGV, Segmentation fault.
db_alloc (file=file@entry=0x41fbdb "login.c", line=line@entry=837, type=type@entry=DB_INT, options=options@entry=DB_OPT_RELEASE_DATA, maxlen=maxlen@entry=4) at db.c:2445
2445                    db->ht[i] = NULL;
(gdb) full bt
Undefined command: "full".  Try "help".
(gdb) bt full
#0  db_alloc (file=file@entry=0x41fbdb "login.c", line=line@entry=837, type=type@entry=DB_INT, options=options@entry=DB_OPT_RELEASE_DATA, maxlen=maxlen@entry=4) at db.c:2445
        db = 0x7ffff621defc
        i = <optimized out>
        __FUNCTION__.4505 = "db_alloc"
#1  0x0000000000408d0a in do_init (argc=argc@entry=1, argv=argv@entry=0x7fffffffec38) at login.c:837
No locals.
#2  0x0000000000404c25 in main (argc=1, argv=0x7fffffffec38) at core.c:359
No locals.

Clean git clone makes same problem when i add my conf folder from running older revision..

EDIT2: crash occurs when i add to inter_athena.conf my login to log_db_* .. I can think of is this is not that I have a long password for mysql .. 30 chars

@cydh
Copy link
Contributor

cydh commented Jan 2, 2015

can u re-phrase this?

EDIT2: crash occurs when i add to inter_athena.conf my login to log_db_* .. I can think of is this is not that I have a long password for mysql .. 30 chars

@lukyrys
Copy link
Author

lukyrys commented Jan 2, 2015

When i add my log_db_* credentials (for mysql) i get a crash..
http://i.imgur.com/rH7fDZ2.png <- first fun is with default (bad) credentials and second is with my mysql credentials
char & map servers behave similarly

I was wondering if there's a problem in that I have long mysql password

@chriser-
Copy link

chriser- commented Jan 2, 2015

my password is very short because my user can only access the database from localhost, so that should not be the problem.
on windows, it seems to run fine (server does not crash), but somehow the server won't connect to my db ("unkown column bank_vault in field_list"), but the column is there... have to figure that out. maybe just a small typo somewhere else...

@chriser-
Copy link

chriser- commented Jan 2, 2015

i think i found the problem.
the "variable names" (let's call it like that :D) in inter_conf were changed, e.g: sql.db_hostname went to login_server_ip and so on... check that! :D
edit: that does not fix the linux crash problem :(

@lukyrys
Copy link
Author

lukyrys commented Jan 2, 2015

on windows i have a connect to database ok, linux not

@chriser-
Copy link

chriser- commented Jan 2, 2015

I found the problem:
In a075324 the optimization level of GCC was changed to O3 from O2. I changed it back to O2 and it works again.
This does not seem to be the correct way to fix this, because O3 should work without problems.
My proposal: revert to O2 and investigate if O3 is possible with rAthena.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

@lukyrys
Copy link
Author

lukyrys commented Jan 2, 2015

+1 yes when i rewrite configure with https://raw.githubusercontent.com/rathena/rathena/5a80fb108cd5eb8d089652a83e39f704c7f87eab/configure all working :)

@cydh
Copy link
Contributor

cydh commented Jan 3, 2015

summoning @lighta

@chriser-
Copy link

chriser- commented Jan 5, 2015

helping to summon @lighta

@marky291
Copy link
Contributor

marky291 commented Jan 5, 2015

Same issue on a clean trunk, no edits at all. This and unit.c array error. Works fine on windows however.

Let us all try summon @lighta

@lukyrys
Copy link
Author

lukyrys commented Jan 5, 2015

helping to spamming @lighta :D

@marky291
Copy link
Contributor

marky291 commented Jan 5, 2015

Lukeyrys, did you do anything over than what you mentioned above to temp fix it?

@aleos89 aleos89 closed this as completed in 5759f5f Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants