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

Master branch: Segmentation fault at startup #1329

Closed
psilhavy opened this issue Nov 19, 2014 · 18 comments
Closed

Master branch: Segmentation fault at startup #1329

psilhavy opened this issue Nov 19, 2014 · 18 comments
Labels
Milestone

Comments

@psilhavy
Copy link

linux 3.17.3 glibc-2.20 gcc 4.9.2

Program received signal SIGSEGV, Segmentation fault.
0xb7fe7286 in elf_machine_rel (reloc=0xb02a2bfc, skip_ifunc=<optimized out>, 
    reloc_addr_arg=<optimized out>, version=<optimized out>, sym=0xb02a23a0, 
    map=0x8433078) at ../sysdeps/i386/dl-machine.h:338
338           struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
(gdb) bt
#0  0xb7fe7286 in elf_machine_rel (reloc=0xb02a2bfc, 
    skip_ifunc=<optimized out>, reloc_addr_arg=<optimized out>, 
    version=<optimized out>, sym=0xb02a23a0, map=0x8433078)
    at ../sysdeps/i386/dl-machine.h:338
#1  elf_dynamic_do_Rel (skip_ifunc=<optimized out>, lazy=<optimized out>, 
    nrelative=<optimized out>, relsize=<optimized out>, 
    reladdr=<optimized out>, map=<optimized out>) at do-rel.h:137
#2  _dl_relocate_object (scope=0x844c8f0, reloc_mode=0, consider_profiling=0)
    at dl-reloc.c:264
#3  0xb7feef21 in dl_open_worker (a=0xbfffebcc) at dl-open.c:416
#4  0xb7feab05 in _dl_catch_error (objname=objname@entry=0xbfffebc4, 
    errstring=errstring@entry=0xbfffebc8, 
    mallocedp=mallocedp@entry=0xbfffebc3, operate=0xb7feebd0 <dl_open_worker>, 
    args=0xbfffebcc) at dl-error.c:187
#5  0xb7fee669 in _dl_open (file=0xb7ffdeb0 "/usr/lib/libasound.so.2", 
    mode=-2147483646, caller_dlopen=0xb70a0002 <snd_dlopen+285>, 
    nsid=<optimized out>, argc=1, argv=0xbffff234, env=0xbffff23c)
    at dl-open.c:650
#6  0xb64d6c85 in dlopen_doit (a=0xbfffed80) at dlopen.c:66
#7  0xb7feab05 in _dl_catch_error (objname=0x833ae6c, errstring=0x833ae70, 
    mallocedp=0x833ae68, operate=0xb64d6c10 <dlopen_doit>, args=0xbfffed80)
    at dl-error.c:187
#8  0xb64d7331 in _dlerror_run (
---Type <return> to continue, or q <return> to quit---
    operate=operate@entry=0xb64d6c10 <dlopen_doit>, args=args@entry=0xbfffed80)
    at dlerror.c:163
#9  0xb64d6d2e in __dlopen (file=0xb7ffdeb0 "/usr/lib/libasound.so.2", mode=2)
    at dlopen.c:87
#10 0xb70a0002 in snd_dlopen () from /usr/lib/libasound.so.2
#11 0xb7098ec1 in snd_config_hooks_call () from /usr/lib/libasound.so.2
#12 0xb7099166 in snd_config_hooks () from /usr/lib/libasound.so.2
#13 0xb709a22c in snd_config_update_r () from /usr/lib/libasound.so.2
#14 0xb709a2b5 in snd_config_update () from /usr/lib/libasound.so.2
#15 0xb70be2fe in snd_pcm_open () from /usr/lib/libasound.so.2
#16 0x080f8473 in AudioAlsa::AudioAlsa (this=0x8439350, 
    _success_ful=@0xbffff013: false, _mixer=0x849c700)
    at /usr/src/lmms/src/core/audio/AudioAlsa.cpp:55
#17 0x08125ee7 in Mixer::tryAudioDevices (this=0x849c700)
    at /usr/src/lmms/src/core/Mixer.cpp:745
#18 0x08126d6a in Mixer::initDevices (this=0x849c700)
    at /usr/src/lmms/src/core/Mixer.cpp:195
#19 0x0813c8da in engine::init (_has_gui=true)
    at /usr/src/lmms/src/core/engine.cpp:91
#20 0x080b5748 in main (argc=1, argv=0xbffff234)
    at /usr/src/lmms/src/core/main.cpp:440
(gdb) 
@tresf
Copy link
Member

tresf commented Nov 19, 2014

@psilhavy, is this from source or from a repository? (if a repo, which one?) What OS?

We have received word that KXStudio may be packaging an unstable release. Any information you can provide will be of assistance to properly categorize this bug.

@tresf tresf added this to the 1.1.0 milestone Nov 19, 2014
@tresf tresf added the bug label Nov 19, 2014
@psilhavy
Copy link
Author

from repository , master branch IIRC cloned today. linux 3.17.3 glibc-2.20 gcc 4.9.2:/usr/src/lmms# git statusOn branch masterYour branch is up-to-date with 'origin/master'. -- Petr Silhavy 

@tresf
Copy link
Member

tresf commented Nov 19, 2014

master branch IIRC cloned today

Ok, master is unstable and the versioning in the title is misleading in the bug report as it conflicts with our soon to be released stable.

I'll fix the title and change the milestone.

@tresf tresf modified the milestones: 1.2.0, 1.1.0 Nov 19, 2014
@tresf tresf changed the title 1.0.96 Segmentation fault at startup, 1.0.3 ok Master branch: Segmentation fault at startup Nov 19, 2014
@psilhavy
Copy link
Author

Just for fun I cloned stable-1.1 and the crash is nearby the same

/usr/src/lmms# git status
On branch stable-1.1
Your branch is up-to-date with 'origin/stable-1.1'.

Program received signal SIGSEGV, Segmentation fault.
0xb7fe7286 in elf_machine_rel (reloc=0xb39debfc, skip_ifunc=<optimized out>, 
    reloc_addr_arg=<optimized out>, version=<optimized out>, sym=0xb39de3a0, 
    map=0x8491dd8) at ../sysdeps/i386/dl-machine.h:338
338           struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
(gdb) bt
#0  0xb7fe7286 in elf_machine_rel (reloc=0xb39debfc, 
    skip_ifunc=<optimized out>, reloc_addr_arg=<optimized out>, 
    version=<optimized out>, sym=0xb39de3a0, map=0x8491dd8)
    at ../sysdeps/i386/dl-machine.h:338
#1  elf_dynamic_do_Rel (skip_ifunc=<optimized out>, lazy=<optimized out>, 
    nrelative=<optimized out>, relsize=<optimized out>, 
    reladdr=<optimized out>, map=<optimized out>) at do-rel.h:137
#2  _dl_relocate_object (scope=0x8421548, reloc_mode=0, consider_profiling=0)
    at dl-reloc.c:264
#3  0xb7feef21 in dl_open_worker (a=0xbfffeb9c) at dl-open.c:416
#4  0xb7feab05 in _dl_catch_error (objname=objname@entry=0xbfffeb94, 
    errstring=errstring@entry=0xbfffeb98, 
    mallocedp=mallocedp@entry=0xbfffeb93, operate=0xb7feebd0 <dl_open_worker>, 
    args=0xbfffeb9c) at dl-error.c:187
#5  0xb7fee669 in _dl_open (file=0xb74242a0 "/usr/lib/libasound.so.2", 
    mode=-2147483646, caller_dlopen=0xb705e002 <snd_dlopen+285>, 
    nsid=<optimized out>, argc=1, argv=0xbffff204, env=0xbffff20c)
    at dl-open.c:650
#6  0xb68ddc85 in dlopen_doit (a=0xbfffed50) at dlopen.c:66
#7  0xb7feab05 in _dl_catch_error (objname=0x82fc924, errstring=0x82fc928, 
    mallocedp=0x82fc920, operate=0xb68ddc10 <dlopen_doit>, args=0xbfffed50)
    at dl-error.c:187
#8  0xb68de331 in _dlerror_run (
---Type <return> to continue, or q <return> to quit--- 
    operate=operate@entry=0xb68ddc10 <dlopen_doit>, args=args@entry=0xbfffed50)
    at dlerror.c:163
#9  0xb68ddd2e in __dlopen (file=0xb74242a0 "/usr/lib/libasound.so.2", mode=2)
    at dlopen.c:87
#10 0xb705e002 in snd_dlopen () from /usr/lib/libasound.so.2
#11 0xb7056ec1 in snd_config_hooks_call () from /usr/lib/libasound.so.2
#12 0xb7057166 in snd_config_hooks () from /usr/lib/libasound.so.2
#13 0xb705822c in snd_config_update_r () from /usr/lib/libasound.so.2
#14 0xb70582b5 in snd_config_update () from /usr/lib/libasound.so.2
#15 0xb707c2fe in snd_pcm_open () from /usr/lib/libasound.so.2
#16 0x080ee193 in AudioAlsa::AudioAlsa (this=0x83f9640, 
    _success_ful=@0xbfffefe3: false, _mixer=0x840f058)
    at /usr/src/lmms/src/core/audio/AudioAlsa.cpp:55
#17 0x08113bdf in Mixer::tryAudioDevices (this=0x840f058)
    at /usr/src/lmms/src/core/Mixer.cpp:728
#18 0x08114a2a in Mixer::initDevices (this=0x840f058)
    at /usr/src/lmms/src/core/Mixer.cpp:192
#19 0x0812d44a in engine::init (_has_gui=true)
    at /usr/src/lmms/src/core/engine.cpp:91
#20 0x080b2203 in main (argc=1, argv=0xbffff204)
    at /usr/src/lmms/src/core/main.cpp:434

@diizy
Copy link
Contributor

diizy commented Nov 20, 2014

On 11/20/2014 10:45 AM, psilhavy wrote:

Just for fun I cloned stable-1.1 and the crash is nearby the same

Looks like something to do with ALSA... try another backend maybe

@psilhavy
Copy link
Author

cmake -DWANT_ALSA=OFF .... result is 
Program received signal SIGSEGV, Segmentation fault.
0xb7fe7286 in elf_machine_rel (reloc=0xb39debfc, skip_ifunc=<optimized out>, 
    reloc_addr_arg=<optimized out>, version=<optimized out>, sym=0xb39de3a0, 
    map=0x8414448) at ../sysdeps/i386/dl-machine.h:338
338           struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
(gdb) bt
#0  0xb7fe7286 in elf_machine_rel (reloc=0xb39debfc, 
    skip_ifunc=<optimized out>, reloc_addr_arg=<optimized out>, 
    version=<optimized out>, sym=0xb39de3a0, map=0x8414448)
    at ../sysdeps/i386/dl-machine.h:338
#1  elf_dynamic_do_Rel (skip_ifunc=<optimized out>, lazy=<optimized out>, 
    nrelative=<optimized out>, relsize=<optimized out>, 
    reladdr=<optimized out>, map=<optimized out>) at do-rel.h:137
#2  _dl_relocate_object (scope=0x837edf8, reloc_mode=0, consider_profiling=0)
    at dl-reloc.c:264
#3  0xb7feef21 in dl_open_worker (a=0xbfffe50c) at dl-open.c:416
#4  0xb7feab05 in _dl_catch_error (objname=objname@entry=0xbfffe504, 
    errstring=errstring@entry=0xbfffe508, 
    mallocedp=mallocedp@entry=0xbfffe503, operate=0xb7feebd0 <dl_open_worker>, 
    args=0xbfffe50c) at dl-error.c:187
#5  0xb7fee669 in _dl_open (file=0xb7424820 "/usr/lib/libasound.so.2", 
    mode=-2147483646, caller_dlopen=0xb6f78002 <snd_dlopen+285>, 
    nsid=<optimized out>, argc=1, argv=0xbffff204, env=0xbffff20c)
    at dl-open.c:650
#6  0xb68ddc85 in dlopen_doit (a=0xbfffe6c0) at dlopen.c:66
#7  0xb7feab05 in _dl_catch_error (objname=0x82ee7fc, errstring=0x82ee800, 
    mallocedp=0x82ee7f8, operate=0xb68ddc10 <dlopen_doit>, args=0xbfffe6c0)
    at dl-error.c:187
#8  0xb68de331 in _dlerror_run (
---Type <return> to continue, or q <return> to quit---
    operate=operate@entry=0xb68ddc10 <dlopen_doit>, args=args@entry=0xbfffe6c0)
    at dlerror.c:163
#9  0xb68ddd2e in __dlopen (file=0xb7424820 "/usr/lib/libasound.so.2", mode=2)
    at dlopen.c:87
#10 0xb6f78002 in snd_dlopen () from /usr/lib/libasound.so.2
#11 0xb6f70ec1 in snd_config_hooks_call () from /usr/lib/libasound.so.2
#12 0xb6f71166 in snd_config_hooks () from /usr/lib/libasound.so.2
#13 0xb6f7222c in snd_config_update_r () from /usr/lib/libasound.so.2
#14 0xb6f722b5 in snd_config_update () from /usr/lib/libasound.so.2
#15 0xb6f7fcc9 in snd_ctl_open () from /usr/lib/libasound.so.2
#16 0xb705d243 in BuildDeviceList (alsaApi=alsaApi@entry=0x868c958)
    at src/hostapi/alsa/pa_linux_alsa.c:1207
#17 0xb70626a8 in PaAlsa_Initialize (hostApi=0x87b28a0, hostApiIndex=0)
    at src/hostapi/alsa/pa_linux_alsa.c:753
#18 0xb705602a in InitializeHostApis () at src/common/pa_front.c:187
#19 Pa_Initialize () at src/common/pa_front.c:335
#20 0x080ead05 in AudioPortAudio::setupWidget::setupWidget (this=0x87b0110, 
    _parent=0x87ac1f8)
    at /usr/src/lmms-stable-1.1/src/core/audio/AudioPortAudio.cpp:420
#21 0x08165fde in setupDialog::setupDialog (this=0xbfffef84, 
    _tab_to_open=setupDialog::AudioSettings)
    at /usr/src/lmms-stable-1.1/src/gui/setup_dialog.cpp:593
#22 0x0815c9eb in MainWindow::finalize (this=0x81c3821)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/lmms-stable-1.1/src/gui/MainWindow.cpp:529
#23 0x08123d02 in engine::init (_has_gui=true)
    at /usr/src/lmms-stable-1.1/src/core/engine.cpp:104
#24 0x080aedb3 in main (argc=1, argv=0xbffff204)
    at /usr/src/lmms-stable-1.1/src/core/main.cpp:434
(gdb) q

cmake -DWANT_ALSA=OFF -DWANT_PORTAUDIO=OFF -DWANT_PULSEAUDIO=OFF ..
=> no problem

@Sti2nd
Copy link
Contributor

Sti2nd commented Nov 22, 2014

Now I understand why some issues is connected to 10+ other issues.

@tresf
Copy link
Member

tresf commented Nov 22, 2014

Now I understand why some issues is connected to 10+ other issues.

For those that may be confused... Stian's comment is in response to the #1 #2 auto-issue-tagging. This is a tremendously helpful GitHub feature, but it can cause linking of unrelated bugs when the logs are copied and pasted without formatting.

Unfortunately, there's no easy way to fix it retroactively. We just need to be more careful to "preview" before submitting a new bug report. In this case, the stack trace should have been in a code box, or moved to an external gist file.

@soycamo
Copy link

soycamo commented Dec 16, 2014

On version 1.0.99 for Mac OS X, I get this:

Process:         launchd [60736]
Path:            /Users/USER/LMMS.app/Contents/MacOS/LMMS
Identifier:      net.sourceforge.lmms
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  launchd [6127]

Date/Time:       2014-12-15 20:45:38.509 -0800
OS Version:      Mac OS X 10.7.5 (11G63)
Report Version:  9

Crashed Thread:  Unknown

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff5fc01028

Backtrace not available

Unknown thread crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000055  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x0000000000000000
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip: 0x00007fff5fc01028  rfl: 0x0000000000010203  cr2: 0x00007fff5fc01028
Logical CPU: 1

Binary images description not available


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 14673
    thread_create: 0
    thread_set_state: 0

@tresf
Copy link
Member

tresf commented Dec 16, 2014

@soycamo which distro? We currently build on Mavericks and test on Mavericks and Yosemite.

@soycamo
Copy link

soycamo commented Dec 16, 2014

Lion, which is 10.7 as seen above. I don't own a machine that will run Mavericks, currently.

@eagles051387
Copy link

How old is this machine? @tres would him bumping to 10.8 if its possible
help at all?

On Tue, Dec 16, 2014 at 6:21 AM, Cameron [email protected] wrote:

Lion, which is 10.7 as seen above. I don't own a machine that will run
Mavericks, currently.


Reply to this email directly or view it on GitHub
#1329 (comment).

Jonathan Aquilina

@tresf
Copy link
Member

tresf commented Dec 16, 2014

@soycamo Please see #1270.

@tresf
Copy link
Member

tresf commented Dec 16, 2014

@tres would him bumping to 10.8 if its possible help at all?

We can continue this discussion in the appropriate thread, #1270.

@badosu
Copy link
Contributor

badosu commented Dec 26, 2014

Was this issue fixed?

Since #1270 looks like a duplicate and was closed we may be able to close this one as well.

@tresf
Copy link
Member

tresf commented Dec 26, 2014

@badosu it appears that way, but the fix in 1270 was for Apple only. 👍

@psilhavy
Copy link
Author

psilhavy commented Jan 1, 2015

Since version 1.1.0 ( branch stable-1.1, last commit 62df768) bug disappears .

@tresf
Copy link
Member

tresf commented Jan 1, 2015

👍

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

No branches or pull requests

7 participants