Skip to Content

Hydrogen 0.9.4-svn731 crashing on ubuntu

10 replies [Last post]
ib1
Offline
Joined: 04/17/2010

Hydrogen 0.9.4-svn731 occasionally crashers on my system.I have ubuntu 8.10 intrepid and I'm using the jack audio driver.This has been happening since I began using the latest svn instead of the latest stable release.

I'm not sure which system log messages help so I'll just show what was written in the Kern.log

Kern.log

Jan 20 00:13:52 name-laptop kernel: [107407.556129] hydrogen[10380]: segfault at 24 ip 08063928 sp bf8cf618 error 4 in hydrogen[8048000+21f000]

.

wolke
wolke's picture
Offline
Joined: 03/30/2010

hiho,
>I'm not sure which system log messages help so I'll just show what was written in the Kern.log

maybe more helpful is gdb debug output.
small h2&gdb howto ;)
1. compile hydrogen with "scons debug=1"
2. install gdb. with "sudo apt-get install gdb"
after compiling hydrogen
3. run gdb in your hydrogen build directory with command "gdb hydrogen"
4. in gdb console type "run" and launch the debug output from gdb.
5. post the last relevant lines after your crash.

for more detailed gdb debug output read the gdb manual.

also important is an small description from your last actions or entries before h2 crashes. so we can try to reconstruct what happened.

wolke

mauser
Offline
Joined: 03/30/2010

Note:

If you run gdb and hydrogen crashes, it just might be displayed in the gdb error console and the program itself won't crash ( the main window doesn't disappear),.

ib1
Offline
Joined: 04/17/2010

ok thX I will install gdb shortly @ post the results I find here .

ib1
Offline
Joined: 04/17/2010

ok here are 2 of the gdb debug output for a hydrogen crash

crash happened whilst adjusting velocity in pattern editor, whilst hydrogen played in 'song mode'.Though I have not noticed a recurring trend of what I was doing when hydrogen crashed.

Crash no.1

*** stack smashing detected ***: /usr/src/hydrogen/hydrogen terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb6f79558]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb6f79510]
/usr/src/hydrogen/hydrogen[0x80a9f75]
/usr/src/hydrogen/hydrogen[0x80d1f4f]
======= Memory map: ========
08048000-08250000 r-xp 00000000 08:01 1861952 /usr/src/hydrogen/hydrogen
08250000-08251000 r--p 00207000 08:01 1861952 /usr/src/hydrogen/hydrogen
08251000-0825b000 rw-p 00208000 08:01 1861952 /usr/src/hydrogen/hydrogen
09277000-0e991000 rw-p 09277000 00:00 0 [heap]
b1823000-b1b5f000 rw-p b1823000 00:00 0
b1cfd000-b1cfe000 ---p b1cfd000 00:00 0
b1cfe000-b24fe000 rw-p b1cfe000 00:00 0
b24fe000-b24ff000 ---p b24fe000 00:00 0
b24ff000-b2cff000 rw-p b24ff000 00:00 0
b2cff000-b2d00000 ---p b2cff000 00:00 0
b2d00000-b3500000 rw-p b2d00000 00:00 0
b3500000-b3600000 rw-p b3500000 00:00 0
b3f00000-b4000000 rw-p b3f00000 00:00 0
b4011000-b4015000 r-xp 00000000 08:01 1762664 /lib/tls/i686/cmov/libnss_dns-2.8.90.so
b4015000-b4016000 r--p 00003000 08:01 1762664 /lib/tls/i686/cmov/libnss_dns-2.8.90.so
b4016000-b4017000 rw-p 00004000 08:01 1762664 /lib/tls/i686/cmov/libnss_dns-2.8.90.so
b4017000-b4019000 r-xp 00000000 08:01 1744988 /lib/libnss_mdns4_minimal.so.2
b4019000-b401a000 rw-p 00001000 08:01 1744988 /lib/libnss_mdns4_minimal.so.2
b401a000-b4029000 r-xp 00000000 08:01 1745016 /lib/libresolv-2.8.90.so
b4029000-b402a000 r--p 0000e000 08:01 1745016 /lib/libresolv-2.8.90.so
b402a000-b402b000 rw-p 0000f000 08:01 1745016 /lib/libresolv-2.8.90.so
b402b000-b402d000 rw-p b402b000 00:00 0
b4043000-b4044000 r--p 00000000 08:01 2085149 /usr/share/locale-langpack/en_GB/LC_MESSAGES/libc.mo
b4045000-b4059000 r--p 00000000 08:01 1951560 /usr/share/fonts/type1/gsfonts/n019003l.pfb
b4059000-b405a000 ---p b4059000 00:00 0
b405a000-b485a000 rw-p b405a000 00:00 0
b485a000-b485b000 ---p b485a000 00:00 0
b485b000-b505b000 rw-p b485b000 00:00 0
b505b000-b515b000 rw-s 00000000 00:09 3375123 /SYSV00000000 (deleted)
b515b000-b525b000 rw-s 00000000 00:09 3342354 /SYSV00000000 (deleted)
b525b000-b5294000 rw-s 00000000 00:09 3309584 /SYSV00000000 (deleted)
b5294000-b5296000 rw-s 00000000 00:09 557073 /SYSV00282929 (deleted)
b5296000-b5297000 r-xp 00000000 08:01 2130490 /usr/lib/ladspa/zm1_1428.so
b5297000-b5298000 r--p 00000000 08:01 2130490 /usr/lib/ladspa/zm1_1428.so
b
b52e4000-b52e5000 rw-p 00002000 08:01 2130238 /usr/lib/ladspa/tap_pitch.so
b52e5000-b52e6000 rw-p b52e5000 00:00 0
b52e6000-b52e8000 r-xp 00000000 08:01 2130237 /usr/lib/ladspa/tap_pinknoise.so
b52e8000-b52e9000 rw-p 00001000 08:01 2130237 /usr/lib/ladspa/tap_pinknoise.so
b52e9000-b52eb000 r-xp 00000000 08:01 2130236 /usr/lib/ladspa/tap_limiter.so
b52eb000-b52ec000 rw-p 00001000 08:01 2130236 /usr/lib/ladspa/tap_limiter.so
b52ec000-b52f2000 r-xp 00000000 08:01 2130235 /usr/lib/ladspa/tap_eqbw.so
b52f2000-b52f3000 rw-p 00005000 08:01 2130235 /usr/lib/ladspa/tap_eqbw.so
b52f3000-b52f8000 r-xp 00000000 08:01 2130234 /usr/lib/ladspa/tap_eq.so
b52f8000-b52f9000 rw-p 00004000 08:01 2130234 /usr/lib/ladspa/tap_eq.so
b52f9000-b52fc000 r-xp 00000000 08:01 2130233 /usr/lib/ladspa/tap_echo.so
b52fc000-b52fd000 rw-p 00002000 08:01 2130233 /usr/lib/ladspa/tap_echo.so
b52fd000-b5302000 r-xp 00000000 08:01 2130232 /usr/lib/ladspa/tap_dynamics_st.so
b5302000-b5303000 rw-p 00004000 08:01 2130232 /usr/lib/ladspa/tap_dynamics_st.so
b5303000-b5306000 r-xp 00000000 08:01 2130231 /usr/lib/ladspa/tap_dynamics_m.so
b5306000-b5307000 rw-p 00003000 08:01 2130231 /usr/lib/ladspa/tap_dynamics_m.so
b5307000-b530a000 r-xp 00000000 08:01 2130230 /usr/lib/ladspa/tap_doubler.so
b530a000-b530b000 rw-p 00002000 08:01 2130230 /usr/lib/ladspa/tap_doubler.so
b530b000-b530d000 r-xp 00000000 08:01 2130229 /usr/lib/ladspa/tap_deesser.so
b530d000-b530e000 rw-p 00002000 08:01 2130229 /usr/lib/ladspa/tap_deesser.so
b530e000-b5316000 rw-p b530e000 00:00 0
b5316000-b5319000 r-xp 00000000 08:01 2130228 /usr/lib/ladspa/tap_chorusflanger.so
b5319000-b531a000 rw-p 00002000 08:01 2130228 /usr/lib/ladspa/tap_chorusflanger.so
b531a000-b531b000 rw-p b531a000 00:00 0
b531b000-b531d000 r-xp 00000000 08:01 2130227 /usr/lib/ladspa/tap_autopan.so
b531d000-b531e000 rw-p 00001000 08:01 2130227 /usr/lib/ladspa/tap_autopan.so
b531e000-b531f000 rw-p b531e000 00:00 0
b531f000-b5321000 r-xp 00000000 08:01 2130284 /u
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb63db710 (LWP 1119)]
0xb7f78430 in __kernel_vsyscall ()
(gdb)

I left out some of the middle code because the amount of text was too much for one post
-----------------------------------------------------------------------------

ib1
Offline
Joined: 04/17/2010

crash no.2

activity when crashed - editing in song editor

) int H2Core::audioEngine_process(uint32_t, void*)
(I) CPULoadQWidget XRunEvent [xRunEvent]
(I) CPULoadQWidget XRunEvent [xRunEvent]
(E) Sampler __render_note Note pos in the future?? Current frames: 3492720, note frame pos: 3704400
(E) Sampler __render_note Note pos in the future?? Current frames: 3492720, note frame pos: 3704400
(E) Sampler __render_note Note pos in the future?? Current frames: 3492720, note frame pos: 3704400
(E) Sampler __render_note Note pos in the future?? Current frames: 3492720, note frame pos: 3744090
(E) Sampler __render_note Note pos in the future?? Current frames: 3492720, note frame pos: 3750705
(W) SongEditor mousePressEvent editor-pressed
(W) SongEditor mousePressEvent editor-pressed
(E) Sampler __render_note Note pos in the future?? Current frames: 3175200, note frame pos: 3810240
(E) Sampler __render_note Note pos in the future?? Current frames: 3175200, note frame pos: 3810240
(E) Sampler __render_note Note pos in the future?? Current frames: 3175200, note frame pos: 3810240
(E) Sampler __render_note Note pos in the future?? Current frames: 3175200, note frame pos: 3849930

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb63b5710 (LWP 25764)]
0x081ca9a1 in H2Core::PatternList::index_of (this=0xaad6350,
pattern=0xb16aa520) at libs/hydrogen/src/pattern.cpp:243
243 if ( *i == pattern ) return r;
(gdb)

hope that helps & let me know if you want any more gdb debug outputs.Though like i wrote, hydrogen only occasionally crashers, though once it crashed twice in under a few minutes of one another .

ib1
Offline
Joined: 04/17/2010

hello user to devs user to devs? is the above gdb output info of any use or not?

wolke
wolke's picture
Offline
Joined: 03/30/2010

sorry,
thank you for your detailed bug report. i found a new bug and write a ticket for this bug. i am a little bit unsure, but i think its the same bug you have called crash no. 2.
but i can not reproduce crash no 1 here.

ib1
Offline
Joined: 04/17/2010

ok no worrys .

I've nearly finsihed the current song I'm working on which has had the

Crash no.1

*** stack smashing detected ***

happen quite a few times now.

Anyway before I begin a new song I'll compile the latest svn & see how hydrogen performs ,

wolke
wolke's picture
Offline
Joined: 03/30/2010

hiho,
imo, crash no 2 is fixed. try rev 760. also i have add some small improvements into the 'new pattern' and 'pattern copy' function.
please report if i am wrong with crash no 2.

ib1
Offline
Joined: 04/17/2010

ok nice one :-)

If i have any consistent crashers with rev 760 onwards I will post the relevant gdb debug output here .

Thanks for the fix!