Originally posted by [b]Jishin[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2683
It's been already a while since the charserver started having SIGSEGV with memset of pets.
Those crashes are really troublesome as they happen randomly and with no specific character and/or pet.
I wasn't able up till now to reproduce this, but I finally tried on a clean svn without mods and it happened again.
I truncated the pet db and cleaned every egg on the server a week ago, so this was the first time it crashed with the clean svn.
Also, the only thing I kept is having 12 char slots.
So here it is and following there are the backtraces of what happened:
CODE
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7f676d0 (LWP 21926)]
0x08062b4e in mapif_create_pet (fd=11, account_id=20004289, char_id=155574,
pet_class=1188, pet_lv=32, pet_egg_id=9025, pet_equip=0, intimate=250,
hungry=100, rename_flag=0 '\', incuvate=1 '�1',
pet_name=0xb7a93038 "Bon Gun") at int_pet.c:186
186 memset(pet_pt, 0, sizeof(struct s_pet));
(gdb) bt
#0 0x08062b4e in mapif_create_pet (fd=11, account_id=20004289,
char_id=155574, pet_class=1188, pet_lv=32, pet_egg_id=9025, pet_equip=0,
intimate=250, hungry=100, rename_flag=0 '\', incuvate=1 '�1',
pet_name=0xb7a93038 "Bon Gun") at int_pet.c:186
#1 0x08062d03 in mapif_parse_CreatePet (fd=11) at int_pet.c:275
#2 0x08062d55 in inter_pet_parse_frommap (fd=13) at int_pet.c:301
#3 0x080592d3 in inter_parse_frommap (fd=11) at inter.c:720
#4 0x08055485 in parse_frommap (fd=11) at char.c:2806
#5 0x08069b00 in do_sockets (next=1000) at socket.c:743
#6 0x08068586 in main (argc=1, argv=0xbf9b2a74) at core.c:254
CODE
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7f1e6d0 (LWP 7920)]
mapif_load_pet (fd=12, account_id=20004289, char_id=155574, pet_id=14)
at int_pet.c:222
222 memset(pet_pt, 0, sizeof(struct s_pet));
(gdb) bt
#0 mapif_load_pet (fd=12, account_id=20004289, char_id=155574, pet_id=14)
at int_pet.c:222
#1 0x080627f3 in mapif_parse_LoadPet (fd=12) at int_pet.c:282
#2 0x08062d68 in inter_pet_parse_frommap (fd=13) at int_pet.c:302
#3 0x080592d3 in inter_parse_frommap (fd=12) at inter.c:720
#4 0x08055485 in parse_frommap (fd=12) at char.c:2806
#5 0x08069b00 in do_sockets (next=1000) at socket.c:743
#6 0x08068586 in main (argc=1, argv=0xbfd7ae44) at core.c:254
CODE
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7f5b6d0 (LWP 28327)]
mapif_load_pet (fd=11, account_id=20004289, char_id=155574, pet_id=14)
at int_pet.c:222
222 memset(pet_pt, 0, sizeof(struct s_pet));
(gdb) bt
#0 mapif_load_pet (fd=11, account_id=20004289, char_id=155574, pet_id=14)
at int_pet.c:222
#1 0x080627f3 in mapif_parse_LoadPet (fd=11) at int_pet.c:282
#2 0x08062d68 in inter_pet_parse_frommap (fd=13) at int_pet.c:302
#3 0x080592d3 in inter_parse_frommap (fd=11) at inter.c:720
#4 0x08055485 in parse_frommap (fd=11) at char.c:2806
#5 0x08069b00 in do_sockets (next=1000) at socket.c:743
#6 0x08068586 in main (argc=1, argv=0xbff3b804) at core.c:254
This post has been edited by Jishin: Jan 20 2009, 08:39 AM