| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Thu Feb 28, 2008 3:12 pm Post subject: segfault |
|
|
Hello,
I am using icecast 2.3.1 in conjunction with ices 0.4.
the system is "Red Hat Linux release 7.2 (Enigma)"
Every few hours (it depends) the program segfault.
What can I do to fix it ?
If you need some more info, just ask
Thanks in advance.
here is the debug I have with GDB:
| Code: |
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 12296 (LWP 25229)]
0x0805fc7b in format_mp3_apply_settings (client=0x0, format=0x808cff8, mount=0x8073468) at format_mp3.c:202
202 char *metadata = httpp_getvar (client->parser, "icy-metaint");
(gdb) thread apply all bt
Thread 16 (Thread 14346 (LWP 25233)):
#0 0xb7c518c6 in sigsuspend () from /lib/libc.so.6
#1 0xb7d7d861 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2 0xb7d7f7d7 in __pthread_alt_lock () from /lib/libpthread.so.0
#3 0xb7d7bc3e in pthread_mutex_lock () from /lib/libpthread.so.0
#4 0xb7c9dd34 in free () from /lib/libc.so.6
#5 0x0806024a in format_mp3_free_plugin (self=0x808cff8) at format_mp3.c:417
#6 0x0805481a in source_clear_source (source=0x808b888) at source.c:227
#7 0x08055c07 in source_shutdown (source=0x808b888) at source.c:851
#8 0x08055aeb in source_main (source=0x808b888) at source.c:810
#9 0x08056988 in source_client_thread (arg=0x808b888) at source.c:1205
#10 0x08065ddd in _start_routine (arg=0x808e3c0) at thread.c:655
#11 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 15 (Thread 13321 (LWP 25231)):
#0 0xb7c518c6 in sigsuspend () from /lib/libc.so.6
#1 0xb7d7d861 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2 0xb7d7f7d7 in __pthread_alt_lock () from /lib/libpthread.so.0
#3 0xb7d7bc3e in pthread_mutex_lock () from /lib/libpthread.so.0
#4 0xb7c9dd34 in free () from /lib/libc.so.6
#5 0x08058f4b in refbuf_release (self=0x80ce990) at refbuf.c:80
#6 0x08054868 in source_clear_source (source=0x8081e28) at source.c:238
#7 0x08055c07 in source_shutdown (source=0x8081e28) at source.c:851
#8 0x08055aeb in source_main (source=0x8081e28) at source.c:810
#9 0x08056988 in source_client_thread (arg=0x8081e28) at source.c:1205
#10 0x08065ddd in _start_routine (arg=0x8086200) at thread.c:655
#11 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 14 (Thread 12296 (LWP 25229)):
#0 0x0805fc7b in format_mp3_apply_settings (client=0x0, format=0x808cff8, mount=0x8073468) at format_mp3.c:202
#1 0x080565c3 in source_apply_mount (source=0x808b888, mountinfo=0x8073468) at source.c:1133
#2 0x08056632 in source_update_settings (config=0x8070ce0, source=0x808b888, mountinfo=0x8073468) at source.c:1153
#3 0x08056efc in source_recheck_mounts () at source.c:1359
#4 0x0805699e in source_client_thread (arg=0x807bc58) at source.c:1208
#5 0x08065ddd in _start_routine (arg=0x80773a0) at thread.c:655
#6 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 13 (Thread 11270 (LWP 25227)):
#0 0xb7c518c6 in sigsuspend () from /lib/libc.so.6
#1 0xb7d7d861 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2 0xb7d7f7d7 in __pthread_alt_lock () from /lib/libpthread.so.0
#3 0xb7d7bc3e in pthread_mutex_lock () from /lib/libpthread.so.0
#4 0xb7c9dd34 in free () from /lib/libc.so.6
#5 0x08052a4e in util_dict_free (dict=0x8080ec0) at util.c:503
#6 0x080548ff in source_clear_source (source=0x80827f0) at source.c:252
#7 0x08055c07 in source_shutdown (source=0x80827f0) at source.c:851
#8 0x08055aeb in source_main (source=0x80827f0) at source.c:810
#9 0x08056988 in source_client_thread (arg=0x80827f0) at source.c:1205
#10 0x08065ddd in _start_routine (arg=0x8080c28) at thread.c:655
#11 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 12 (Thread 10251 (LWP 24974)):
#0 0xb7cd4271 in nanosleep () from /lib/libc.so.6
#1 0xb7d8018e in nanosleep () from /lib/libpthread.so.0
#2 0x08065ce6 in thread_sleep (len=250000) at thread.c:615
#3 0x08054ee4 in get_next_buffer (source=0x807c8a8) at source.c:451
#4 0x080555fb in source_main (source=0x807c8a8) at source.c:660
#5 0x08056988 in source_client_thread (arg=0x807c8a8) at source.c:1205
#6 0x08056e1f in source_fallback_file (arg=0x807c4c8) at source.c:1329
#7 0x08065ddd in _start_routine (arg=0x807c510) at thread.c:655
#8 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 8 (Thread 6151 (LWP 24970)):
#0 0xb7cd4271 in nanosleep () from /lib/libc.so.6
#1 0xb7d8018e in nanosleep () from /lib/libpthread.so.0
#2 0x08065ce6 in thread_sleep (len=50000) at thread.c:615
#3 0x08051c81 in _handle_connection (arg=0x0) at connection.c:1055
#4 0x08065ddd in _start_routine (arg=0xb7a00460) at thread.c:655
#5 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 6 (Thread 4101 (LWP 24968)):
#0 0xb7cd4271 in nanosleep () from /lib/libc.so.6
#1 0xb7d8018e in nanosleep () from /lib/libpthread.so.0
#2 0x08065ce6 in thread_sleep (len=150000) at thread.c:615
#3 0x080613d9 in auth_run_thread (arg=0x0) at auth.c:214
#4 0x08065ddd in _start_routine (arg=0xb7a00460) at thread.c:655
#5 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 5 (Thread 3076 (LWP 24967)):
#0 0xb7cd4271 in nanosleep () from /lib/libc.so.6
#1 0xb7d8018e in nanosleep () from /lib/libpthread.so.0
#2 0x08065ce6 in thread_sleep (len=1000000) at thread.c:615
#3 0x080541a9 in _slave_thread (arg=0x0) at slave.c:622
#4 0x08065ddd in _start_routine (arg=0x807b980) at thread.c:655
#5 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 4 (Thread 2051 (LWP 24966)):
#0 0xb7cfe540 in poll () from /lib/libc.so.6
#1 0x08059d31 in fserve_client_waiting () at fserve.c:143
#2 0x08059e49 in wait_for_fds () at fserve.c:228
#3 0x08059e95 in fserv_thread_function (arg=0x0) at fserve.c:240
#4 0x08065ddd in _start_routine (arg=0x807b980) at thread.c:655
#5 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 3 (Thread 1026 (LWP 24965)):
#0 0xb7cd4271 in nanosleep () from /lib/libc.so.6
#1 0xb7d8018e in nanosleep () from /lib/libpthread.so.0
#2 0x08065ce6 in thread_sleep (len=300000) at thread.c:615
#3 0x08058081 in _stats_thread (arg=0x0) at stats.c:605
#4 0x08065ddd in _start_routine (arg=0x8074d68) at thread.c:655
#5 0xb7d7ad77 in pthread_start_thread () from /lib/libpthread.so.0
Thread 2 (Thread 2049 (LWP 24964)):
#0 0xb7cfe540 in poll () from /lib/libc.so.6
#1 0xb7d7aada in __pthread_manager () from /lib/libpthread.so.0
#2 0xb7d7b5a1 in __pthread_manager_event () from /lib/libpthread.so.0
Thread 1 (Thread 1024 (LWP 24955)):
#0 0xb7cfe540 in poll () from /lib/libc.so.6
#1 0x08050070 in wait_for_serversock (timeout=100) at connection.c:177
#2 0x08050274 in _accept_connection () at connection.c:255
#3 0x080507b1 in connection_accept_loop () at connection.c:428
#4 0x0804f24f in _server_proc () at main.c:353
#5 0x0804f79d in main (argc=3, argv=0xbf908c04) at main.c:535
#6 0xb7c40748 in __libc_start_main () from /lib/libc.so.6
0x0805fc7b 202 char *metadata = httpp_getvar (client->parser, "icy-metaint");
|
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Feb 28, 2008 3:28 pm Post subject: |
|
|
Can you try the trunk code, just to make sure the problem is not occurring there.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Feb 28, 2008 3:49 pm Post subject: |
|
|
I've just compiled today's trunk and it doesn't start :
| Code: |
Starting program: /usr/src/icecast-trunk/./src/icecast -c /root/ice/icecast.xml
[New Thread 1024 (LWP 8898)]
Server startup failed. Exiting
|
Is there something I can do to have more info about the failure ? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Feb 28, 2008 4:03 pm Post subject: |
|
|
the error log is one place, but if that is empty then send the xml to me (you can blank out passwords) and I'll check what can be done.
karl. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|