Bug 269620 - sysutils/brasero: scsi-cam.c:173:brasero_device_handle_open: assertion failed: (path != NULL)
Summary: sysutils/brasero: scsi-cam.c:173:brasero_device_handle_open: assertion failed...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 13:51 UTC by Paul Dufresne
Modified: 2023-02-20 03:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Dufresne 2023-02-17 13:51:19 UTC
Installed from pkg on 13.2 (prerelease).

paul@dufresnep:~ $ brasero &
paul@dufresnep:~ $ **
ERROR:scsi-cam.c:173:brasero_device_handle_open: assertion failed: (path != NULL)
Bail out! ERROR:scsi-cam.c:173:brasero_device_handle_open: assertion failed: (path != NULL)

hang there, no window appears
Comment 1 Paul Dufresne 2023-02-17 13:59:28 UTC
Pressing enter:
[1]   Abort trap (core dumped) brasero
paul@dufresnep:~ $ 


paul@dufresnep:/usr/home/paul $ pkg info brasero
brasero-3.12.3_2
Name           : brasero
Version        : 3.12.3_2
Installed on   : Fri Feb 17 08:43:34 2023 EST
Origin         : sysutils/brasero
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Comment 2 Paul Dufresne 2023-02-17 14:02:00 UTC
tail dmesg:
(cd0:ahcich2:0:0:0): Info: 0
(cd0:ahcich2:0:0:0): Command Specific Info: 0x2800000c
(cd0:ahcich2:0:0:0): Error 22, Unretryable error
(cd0:ahcich2:0:0:0): cddone: got error 0x16 back
(cd0:ahcich2:0:0:0): READ(10). CDB: 28 00 00 00 00 00 00 00 01 00 
(cd0:ahcich2:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich2:0:0:0): SCSI status: Check Condition
(cd0:ahcich2:0:0:0): SCSI sense: ILLEGAL REQUEST asc:21,0 (Logical block address out of range)
(cd0:ahcich2:0:0:0): Info: 0
(cd0:ahcich2:0:0:0): Command Specific Info: 0x2800000c
(cd0:ahcich2:0:0:0): Error 22, Unretryable error
(cd0:ahcich2:0:0:0): cddone: got error 0x16 back
pid 2469 (brasero), jid 0, uid 1001: exited on signal 6 (core dumped)
paul@dufresnep:/usr/ports/sysutils/brasero $
Comment 3 Paul Dufresne 2023-02-17 14:08:00 UTC
probably not usefull...
pkg install gdb
gdb
(gdb) core brasero.core
[New LWP 102965]
[New LWP 103056]
[New LWP 103057]
[New LWP 103058]
Core was generated by `brasero'.
Program terminated with signal SIGABRT, Aborted.
Sent by thr_kill() from pid 2469 and user 1001.
#0  0x000000083747cbba in ?? ()
[Current thread is 1 (LWP 102965)]
(gdb) bt
#0  0x000000083747cbba in ?? ()
#1  0x00000008373f5644 in ?? ()
#2  0x0000000000019235 in ?? ()
#3  0x734c6a1c409f8036 in ?? ()
#4  0x00000008210c1504 in ?? ()
#5  0x0000000834da4290 in ?? ()
#6  0x00000008210c1520 in ?? ()
#7  0x00000008374a69b9 in ?? ()
#8  0x0000000000000006 in ?? ()
#9  0xfffffffffffffff2 in ?? ()
#10 0xffffffdf00000060 in ?? ()
#11 0xffffffffffffffff in ?? ()
#12 0x00000008ffffffff in ?? ()
#13 0x000000085b29db00 in ?? ()
#14 0x00000008210c1580 in ?? ()
#15 0x0000000834d70ab6 in ?? ()
#16 0x0000003000333731 in ?? ()
#17 0x00000008210c1590 in ?? ()
#18 0x00000008210c1480 in ?? ()
#19 0x000000085948aaa0 in ?? ()
#20 0x734c6a1c409f8036 in ?? ()
#21 0x000000085943ad60 in ?? ()
#22 0x0000000823557c21 in ?? ()
--Type <RET> for more, q to quit, c to continue without paging--c
#23 0x0000000000000000 in ?? ()
(gdb) 
but I tried.
Comment 4 Paul Dufresne 2023-02-17 18:33:45 UTC
With:
paul@dufresnep:~ $ cat /etc/make.conf 
WITH_DEBUG=YES
DEBUG_FLAGS= -g -O0
paul@dufresnep:~ $ 

I got:
(gdb) run
Starting program: /usr/ports/sysutils/brasero/work/stage/usr/local/bin/brasero 
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
[New LWP 103434 of process 40376]
[New LWP 103435 of process 40376]
[New LWP 103436 of process 40376]
**
ERROR:scsi-cam.c:173:brasero_device_handle_open: assertion failed: (path != NULL)
Bail out! ERROR:scsi-cam.c:173:brasero_device_handle_open: assertion failed: (path != NULL)

Thread 1 received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 40376 and user 1001.
0x0000000801c72bba in thr_kill () from /lib/libc.so.7
(gdb) bt
#0  0x0000000801c72bba in thr_kill () at /lib/libc.so.7
#1  0x0000000801beb644 in raise () at /lib/libc.so.7
#2  0x0000000801c9c9b9 in abort () at /lib/libc.so.7
#3  0x0000000801ad9ab6 in  () at /usr/local/lib/libglib-2.0.so.0
#4  0x0000000801ad9b1e in g_assertion_message_expr ()
    at /usr/local/lib/libglib-2.0.so.0
#5  0x00000008002de67e in  () at /usr/local/lib/libbrasero-media3.so.1
#6  0x00000008002ce2ff in  () at /usr/local/lib/libbrasero-media3.so.1
#7  0x00000008002cdc7f in  () at /usr/local/lib/libbrasero-media3.so.1
#8  0x00000008019b8a24 in g_type_create_instance ()
    at /usr/local/lib/libgobject-2.0.so.0
#9  0x00000008019a2dd3 in  () at /usr/local/lib/libgobject-2.0.so.0
#10 0x00000008019a2294 in g_object_new () at /usr/local/lib/libgobject-2.0.so.0
#11 0x00000008002cda30 in brasero_medium_monitor_get_default ()
    at /usr/local/lib/libbrasero-media3.so.1
#12 0x00000008002cd3b0 in brasero_media_library_start ()
    at /usr/local/lib/libbrasero-media3.so.1
#13 0x00000008003283db in brasero_burn_library_start ()
    at /usr/local/lib/libbrasero-burn3.so.1
#14 0x000000000022aca6 in main (argc=1, argv=0x7fffffffe8b0) at main.c:119
(gdb) 

It still feels incomplete to me... not sure what to add/to with this.
Comment 5 Paul Dufresne 2023-02-17 18:42:30 UTC
Sorry... had brasero installed, and it was using the installed by pkg.

I "pkg remove brasero" ... did make install... and now:
(gdb) run
Starting program: /usr/local/bin/brasero 
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
[New LWP 103513 of process 40716]
[New LWP 103514 of process 40716]
[New LWP 103515 of process 40716]
**
ERROR:scsi-cam.c:173:brasero_device_handle_open: assertion failed: (path != NULL)
Bail out! ERROR:scsi-cam.c:173:brasero_device_handle_open: assertion failed: (path != NULL)

Thread 1 received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 40716 and user 1001.
0x0000000801c80bba in thr_kill () from /lib/libc.so.7
(gdb) bt
#0  0x0000000801c80bba in thr_kill () at /lib/libc.so.7
#1  0x0000000801bf9644 in raise () at /lib/libc.so.7
#2  0x0000000801caa9b9 in abort () at /lib/libc.so.7
#3  0x0000000801ad9ab6 in  () at /usr/local/lib/libglib-2.0.so.0
#4  0x0000000801ad9b1e in g_assertion_message_expr () at /usr/local/lib/libglib-2.0.so.0
#5  0x00000008002e798d in brasero_device_handle_open (path=0x0, exclusive=0, code=0x7fffffffe584)
    at scsi-cam.c:173
#6  0x00000008002cfea6 in brasero_medium_monitor_is_drive (monitor=0x803846aa0, device=0x0)
    at brasero-medium-monitor.c:377
#7  0x00000008002cfd81 in brasero_medium_monitor_drive_new (self=0x803846aa0, device=0x0, gdrive=0x80375cd00)
    at brasero-medium-monitor.c:397
#8  0x00000008002cf482 in brasero_medium_monitor_init (object=0x803846aa0) at brasero-medium-monitor.c:668
#9  0x00000008019b8a24 in g_type_create_instance () at /usr/local/lib/libgobject-2.0.so.0
#10 0x00000008019a2dd3 in  () at /usr/local/lib/libgobject-2.0.so.0
#11 0x00000008019a2294 in g_object_new () at /usr/local/lib/libgobject-2.0.so.0
#12 0x00000008002cf345 in brasero_medium_monitor_get_default () at brasero-medium-monitor.c:864
#13 0x00000008002ce755 in brasero_media_library_start () at brasero-media.c:558
#14 0x0000000800335153 in brasero_burn_library_start (argc=0x7fffffffe8c4, argv=0x7fffffffe8b8)
    at burn-basics.c:263
#15 0x000000000022aca6 in main (argc=1, argv=0x7fffffffe930) at main.c:119
(gdb) 


which seems to be what I was expecting.
Comment 6 Paul Dufresne 2023-02-17 18:57:47 UTC
If I log out...

login as root in a terminal window...

startx &

and at # prompt type: "brasero"

brasero's window appears.

Guess I need to add myself to some groups... was searching a cdrom group but I had not found one in the past.

Will try to read more...
Comment 7 Paul Dufresne 2023-02-17 19:06:32 UTC
https://forums.freebsd.org/threads/the-truth-please-why-are-cd-dvd-drives-not-usable-are-permissions-issues-a-freebsd-response-to-security-risks.88004/post-598165

suggest I need to:
To enable custom devfs.rules add your localrule in /etc/rc.conf using
sysrc devfs_system_ruleset="localrules"

Then create /etc/devfs.rules containing the following:
Code:

[localrules=10]
add path 'cd*' mode 660 group operator
add path 'pass*' mode 660 group operator
add path 'xpt*' mode 660 group operator


Then add your user to the operator group
pw group mod operator -m [username]
Comment 8 Daniel Engberg freebsd_committer freebsd_triage 2023-02-17 20:09:53 UTC
While I dont have a solution, what type of disc are you trying to burn? Another solution might be generating an iso image and use cdrdao which should work.
Comment 9 Paul Dufresne 2023-02-17 22:52:11 UTC
At first, I have tried to write my iso file with brasero (running startx started from root user)... but it was not seeing my DVD as an empty DVD (saying I needed to replace the media).

So I finally "cdrecord myfile.iso" on the # prompt and it worked.

But I mainly searching to make things easier for newcomers.
Comment 10 Paul Dufresne 2023-02-18 00:25:53 UTC
I have applied the configuration described in comment #7, it seems to help with a user in operator group with cdrecord, but not with brasero.

Guess, I will need to compare values between root user and my user in operator group using dbg.
Comment 11 Paul Dufresne 2023-02-20 03:18:03 UTC
Strange, brasero works now (both in XFCE and Gnome) as a normal user (except now I am in wheel group... but don't know if it is related).

paul@dufresnep:~ $ pkg info brasero
brasero-3.12.3_2
Name           : brasero
Version        : 3.12.3_2
Installed on   : Fri Feb 17 13:39:05 2023 EST
Origin         : sysutils/brasero
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : sysutils multimedia gnome audio
Licenses       : 
Maintainer     : gnome@FreeBSD.org
WWW            : https://projects.gnome.org/brasero/
Comment        : CD/DVD mastering tool for the GNOME desktop
Options        :
	LIBBURNIA      : off
	NAUTILUS       : on
Shared Libs required:

So same version... but installed later than before.

I have upgraded the system since, with "portmaster -a".

So ... if the problem returns, I'll try to give infos.