After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 101678 - [0.6.1 candidate] "gnome-sound-recorder -r" segfaults without a filename.
[0.6.1 candidate] "gnome-sound-recorder -r" segfaults without a filename.
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.6.0
Other other
: High critical
: 0.3.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 107158 107404 111061 111174 111301 111652 112018 113634 114714 114981 115707 115850 116747 118703 119703 119741 120555 120748 120795 120978 122273 123112 126105 126275 128627 128860 140177 145735 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-12-20 12:47 UTC by 9915104t
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2


Attachments
Here's a patch for 0.6 I cooked up without access to a compiler. Could somebody please test this? (1.31 KB, patch)
2003-03-31 14:57 UTC, Benjamin Otte (Company)
none Details | Review
more important fix - invalid use of g_error in gst_init (387 bytes, patch)
2003-04-04 15:49 UTC, Benjamin Otte (Company)
none Details | Review

Description 9915104t 2002-12-20 12:47:25 UTC
Package: gnome-media
Severity: normal
Version: 2.1.0
Synopsis: "gnome-sound-recorder -r" segfaults without a filename.
Bugzilla-Product: gnome-media
Bugzilla-Component: Gnome-Sound-Recorder

Description:
"gnome-sound-recorder -r" segfaults without a filename.
Same with -f



Debugging Information:

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 3066)]

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
0x408be269 in wait4 () from /lib/libc.so.6

Thread 1 (Thread 16384 (LWP 3066))

  • #0 wait4
    from /lib/libc.so.6
  • #1 sys_sigabbrev
    from /lib/libc.so.6
  • #2 waitpid
    from /lib/libpthread.so.0
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 __pthread_sighandler
    from /lib/libpthread.so.0
  • #5 sigaction
    from /lib/libc.so.6
  • #6 __libc_start_main
    from /lib/libc.so.6
  • #0 wait4
    from /lib/libc.so.6
  • #0 wait4
    from /lib/libc.so.6
  • #1 sys_sigabbrev
    from /lib/libc.so.6
  • #2 waitpid
    from /lib/libpthread.so.0
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 __pthread_sighandler
    from /lib/libpthread.so.0
  • #5 sigaction
    from /lib/libc.so.6
  • #6 __libc_start_main
    from /lib/libc.so.6
  • #0 ??




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-12-20 07:47 -------

The original reporter (9915104t@yku.kobe-u.ac.jp) of this bug does not have an account here.
Reassigning to the exporter, unknown@bugzilla.gnome.org.
Reassigning to the default owner of the component, bugs@prettypeople.org.

Comment 1 Balamurali Viswanathan 2002-12-20 13:07:03 UTC
I am attaching one more stack trace for the same problem, the source
taken from the head

  • #0 g_logv
    at gmessages.c line 477
  • #0 g_logv
    at gmessages.c line 477
  • #1 g_log
    at gmessages.c line 500
  • #2 gst_init
    at gst.c line 167
  • #3 main
    at gnome-recorder.c line 172
  • #4 __libc_start_main
    at ../sysdeps/generic/libc-start.c line 129


Thanks
Comment 2 Alex Duggan 2002-12-20 15:21:55 UTC
Adding keyword and changing priority
Comment 3 Iain 2003-03-28 13:48:57 UTC
There is no -r argument.
I think this is GStreamer aborting because there is no -r argument,
which I think it should just quit rather than abort.

Assigning to GStreamer
Comment 4 Benjamin Otte (Company) 2003-03-31 14:57:09 UTC
Created attachment 15338 [details] [review]
Here's a patch for 0.6 I cooked up without access to a compiler. Could somebody please test this?
Comment 5 Benjamin Otte (Company) 2003-04-04 15:49:10 UTC
Created attachment 15473 [details] [review]
more important fix - invalid use of g_error in gst_init
Comment 6 Ronald Bultje 2003-04-04 18:03:39 UTC
We should never use exit() inside a library. Just return or use
g_error() or so. Imo, using g_error here is fine.
Comment 7 Benjamin Otte (Company) 2003-04-04 21:33:01 UTC
1) gst_init parses command line parameters.

2) gst_init only returns if it could initialize safely (currently that
includes parsing all command line parameters). That's according to the
docs.

3) g_error is "A convenience function/macro to log an error message.
Error messages are always fatal, resulting in a call to abort() to
terminate the application. This function will result in a core dump;
don't use it for errors you expect. Using this function indicates a
bug in your program, i.e. an assertion failure."
And no, I don't want a SIGSEGV when somebody passed a wrong argument
to a gst program.
Comment 8 Ronald Bultje 2003-04-05 08:11:48 UTC
But then you're saying that we should use g_error() (it is exactly
what we want here if something goes fatally wrong in gst_init() when
it shouldn't return) but that gst_init() shouldn't use g_error() on a
bad commandline parameter, and that's not something inside gst_init(),
but in the popt callbacks, right?
Comment 9 Ronald Bultje 2003-04-06 14:36:51 UTC
OK, second one committed to HEAD, marking as 0.6.1 candidate here.
Comment 10 Ronald Bultje 2003-04-07 17:00:08 UTC
Applied to 0.6.x CVS.
Comment 11 Gregory Leblanc 2003-05-02 20:49:05 UTC
*** Bug 111652 has been marked as a duplicate of this bug. ***
Comment 12 Gregory Leblanc 2003-05-02 20:51:36 UTC
*** Bug 112018 has been marked as a duplicate of this bug. ***
Comment 13 Gregory Leblanc 2003-05-02 20:51:58 UTC
*** Bug 107404 has been marked as a duplicate of this bug. ***
Comment 14 Gregory Leblanc 2003-05-02 20:52:13 UTC
*** Bug 111061 has been marked as a duplicate of this bug. ***
Comment 15 Gregory Leblanc 2003-05-02 20:52:15 UTC
*** Bug 111174 has been marked as a duplicate of this bug. ***
Comment 16 Gregory Leblanc 2003-05-02 20:52:19 UTC
*** Bug 111301 has been marked as a duplicate of this bug. ***
Comment 17 Gregory Leblanc 2003-05-02 20:52:23 UTC
*** Bug 107158 has been marked as a duplicate of this bug. ***
Comment 18 Dan Siemon 2003-05-25 01:45:34 UTC
*** Bug 113634 has been marked as a duplicate of this bug. ***
Comment 19 Elijah Newren 2003-06-09 02:58:42 UTC
*** Bug 114714 has been marked as a duplicate of this bug. ***
Comment 20 Elijah Newren 2003-06-12 05:05:54 UTC
*** Bug 114981 has been marked as a duplicate of this bug. ***
Comment 21 Elijah Newren 2003-07-04 21:43:44 UTC
*** Bug 115850 has been marked as a duplicate of this bug. ***
Comment 22 Elijah Newren 2003-07-04 21:46:15 UTC
*** Bug 115707 has been marked as a duplicate of this bug. ***
Comment 23 Elijah Newren 2003-07-05 14:34:12 UTC
*** Bug 116747 has been marked as a duplicate of this bug. ***
Comment 24 Elijah Newren 2003-07-31 18:18:10 UTC
*** Bug 118703 has been marked as a duplicate of this bug. ***
Comment 25 Elijah Newren 2003-08-13 01:08:06 UTC
*** Bug 119703 has been marked as a duplicate of this bug. ***
Comment 26 Elijah Newren 2003-08-13 01:08:17 UTC
*** Bug 119741 has been marked as a duplicate of this bug. ***
Comment 27 Elijah Newren 2003-08-25 02:15:03 UTC
*** Bug 120555 has been marked as a duplicate of this bug. ***
Comment 28 Elijah Newren 2003-08-26 19:55:19 UTC
*** Bug 120748 has been marked as a duplicate of this bug. ***
Comment 29 Elijah Newren 2003-08-27 20:14:35 UTC
*** Bug 120795 has been marked as a duplicate of this bug. ***
Comment 30 Andrew Sobala 2003-08-29 11:56:24 UTC
*** Bug 120978 has been marked as a duplicate of this bug. ***
Comment 31 Olav Vitters 2003-11-05 16:21:41 UTC
*** Bug 126275 has been marked as a duplicate of this bug. ***
Comment 32 Olav Vitters 2003-11-06 22:37:23 UTC
*** Bug 122273 has been marked as a duplicate of this bug. ***
Comment 33 Elijah Newren 2003-12-09 03:20:30 UTC
*** Bug 128860 has been marked as a duplicate of this bug. ***
Comment 34 Elijah Newren 2003-12-09 03:20:43 UTC
*** Bug 128627 has been marked as a duplicate of this bug. ***
Comment 35 Elijah Newren 2003-12-09 03:21:01 UTC
*** Bug 123112 has been marked as a duplicate of this bug. ***
Comment 36 Elijah Newren 2004-02-17 17:48:48 UTC
*** Bug 126105 has been marked as a duplicate of this bug. ***
Comment 37 Elijah Newren 2004-11-08 19:42:35 UTC
*** Bug 140177 has been marked as a duplicate of this bug. ***
Comment 38 Elijah Newren 2004-11-08 19:42:44 UTC
*** Bug 145735 has been marked as a duplicate of this bug. ***